/* ============================================
   Widgety — Features page styles
   ============================================ */

.feature-block {
  padding: 100px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-block.reverse .feature-row { direction: rtl; }
.feature-block.reverse .feature-row > * { direction: inherit; }
html[dir="rtl"] .feature-block.reverse .feature-row { direction: ltr; }
html[dir="rtl"] .feature-block.reverse .feature-row > * { direction: rtl; }

.feature-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  font-family: var(--font-ar);
}
body.lang-en .feature-num { font-family: var(--font-en); }

.feature-text h2 { margin-bottom: 16px; }
.feature-text .tag { margin-bottom: 16px; }
.feature-text .lead { margin-bottom: 32px; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-list svg {
  width: 22px; height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(200, 168, 75, 0.12);
  box-sizing: content-box;
}
.feature-list strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-list .dim {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.feature-visual-lg {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 600px;
}
.feature-visual-lg::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,0.18), transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.feature-visual-lg .iphone {
  position: relative;
  z-index: 1;
  --w: 290px;
}

/* Notification mock */
.notif-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 6px;
}
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--gold-gradient);
  display: grid; place-items: center;
}
.notif-icon .logo-mark {
  width: auto; height: auto;
  background: none;
  color: #1a1408;
  box-shadow: none;
  font-size: 18px;
}
.notif-title { font-size: 13px; font-weight: 600; }
.notif-sub { font-size: 11px; color: var(--text-dim); }

/* AI Imam screen */
.ai-screen {
  background: linear-gradient(180deg, #0a0f0c 0%, #050505 100%);
}
.ai-chat-full {
  padding: 60px 16px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ai-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 16px;
}
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.chat-list .chat-bubble {
  font-size: 13px;
}
.ayah-quote {
  font-family: 'Noto Naskh Arabic', var(--font-ar);
  font-size: 18px;
  line-height: 1.8;
  color: var(--gold-bright);
  text-align: center;
  padding: 12px;
  margin-top: 8px;
  background: rgba(200,168,75,0.08);
  border-radius: 10px;
  border: 1px solid rgba(200,168,75,0.18);
}

@media (max-width: 980px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-visual-lg { min-height: 500px; }
  .feature-block { padding: 60px 0; }
}

/* ============== 9 Widgets grid ============== */
.widgets-9 { padding: 100px 0; }
.feature-num.center { text-align: center; }
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.w9-card {
  background: linear-gradient(160deg, #0d0d0d, #050505);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: border-color .2s, transform .2s;
}
.w9-card:hover {
  border-color: rgba(200,168,75,0.3);
  transform: translateY(-2px);
}
.w9-card .iphone {
  --w: 200px;
}
.w9-card .widget {
  width: 100%;
  max-width: 220px;
}
.w9-card .widget-hijri.large { padding: 18px; }
.w9-card .widget-double-date { padding: 18px; }
.w9-card .widget-countdown { padding: 18px; }
.w9-card .widget-clock { padding: 18px; }
.w9-name {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.w9-name strong { display: block; font-size: 16px; margin-bottom: 4px; }
.w9-name span { font-size: 12px; font-family: var(--font-en); letter-spacing: 0.02em; }

@media (max-width: 980px) {
  .widgets-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .widgets-grid { grid-template-columns: 1fr; }
}

/* ============== Ramadan Mode ============== */
.ramadan-section { padding: 100px 0; }
.ramadan-card {
  background: linear-gradient(160deg, #1a1408, #0a0805);
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ramadan-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top right, rgba(200,168,75,0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(120,80,200,0.1), transparent 50%);
  pointer-events: none;
}
.ramadan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23E5CB76' stroke-width='0.5' opacity='0.4'><path d='M60 6 L78 24 L96 24 L96 42 L114 60 L96 78 L96 96 L78 96 L60 114 L42 96 L24 96 L24 78 L6 60 L24 42 L24 24 L42 24 Z'/></g></svg>");
  background-size: 180px 180px;
  opacity: 0.1;
  pointer-events: none;
}
.ramadan-content { position: relative; z-index: 1; }
.ramadan-content h2 { margin: 14px 0 16px; }
.ramadan-content .lead { margin-bottom: 36px; }

.ramadan-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.r-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.r-feature-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.25);
  display: grid; place-items: center;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.r-feature-icon svg { width: 20px; height: 20px; }
.r-feature strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.r-feature .dim { font-size: 13px; }

.ramadan-phones {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.iphone.small { --w: 200px; }
.iphone.small .iphone-notch { width: 28%; height: 18px; top: 9px; }
.ramadan-day { transform: rotate(-4deg) translateY(-12px); }
.ramadan-night { transform: rotate(4deg) translateY(12px); }

@media (max-width: 980px) {
  .ramadan-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  .iphone.small { --w: 150px; }
}

/* ============== Themes ============== */
.themes-section { padding: 100px 0; }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.theme-swatch {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .2s, border-color .2s;
}
.theme-swatch:hover { transform: translateY(-2px); border-color: var(--gold); }
.theme-preview {
  height: 100px;
  border-radius: 12px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.theme-preview::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.3);
}
.theme-preview::after {
  content: "";
  position: absolute;
  bottom: 18px; right: 18px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
}
.theme-onyx .theme-preview { background: linear-gradient(160deg, #1a1a1a, #0a0a0a); }
.theme-noir .theme-preview { background: linear-gradient(160deg, #1f1810, #0d0a06); }
.theme-pearl .theme-preview { background: linear-gradient(160deg, #f6f0e5, #e8dfca); }
.theme-mint .theme-preview { background: linear-gradient(160deg, #d8ebe1, #a8d4be); }
.theme-sand .theme-preview { background: linear-gradient(160deg, #ebd9b8, #d4b888); }
.theme-rose .theme-preview { background: linear-gradient(160deg, #f0d4d2, #d6a8a4); }
.theme-lavender .theme-preview { background: linear-gradient(160deg, #e3dbef, #b8a4d4); }
.theme-saffron .theme-preview { background: linear-gradient(160deg, #f3d99a, #d8a648); }
.theme-emerald .theme-preview { background: linear-gradient(160deg, #c4e0d2, #6fab90); }
.theme-ivory .theme-preview { background: linear-gradient(160deg, #faf6ec, #efe5cb); }
.theme-azure .theme-preview { background: linear-gradient(160deg, #cde0f0, #8ab2d4); }

.theme-name { display: flex; flex-direction: column; gap: 2px; }
.theme-name strong { font-size: 15px; font-weight: 700; font-family: var(--font-en); }
.theme-name .dim { font-size: 12px; }

@media (max-width: 880px) {
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
}
