/* =========================================================
   سعادتي (SADTIAPP) — Shared stylesheet
   Design tokens extracted from the live reference screenshots
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* --- Core palette (sampled from reference) --- */
  --bg:            #030f0a;   /* page background, near-black deep green */
  --bg-soft:       #05170f;   /* slightly raised panels */
  --card-bg:       #04140d;   /* card fill */
  --card-border:   rgba(96, 224, 178, 0.14);
  --card-border-strong: rgba(96, 224, 178, 0.30);

  --mint:          #4fd9ac;   /* primary brand accent */
  --mint-strong:   #38b490;   /* gradient end / hover */
  --mint-soft:     rgba(79, 217, 172, 0.12);
  --mint-line:     rgba(79, 217, 172, 0.35);

  --gold:          #c9ad70;   /* logo & app-art accent only */
  --gold-soft:     rgba(201, 173, 112, 0.14);

  --amber:         #e2b64d;   /* "requires internet" warning dot */

  --text-hi:       #f4f8f6;   /* headings / high-emphasis */
  --text-body:     #c7d3ce;   /* paragraph text */
  --text-mute:     #7f9089;   /* captions, meta */

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --container: 1180px;
  --font-ar: 'Tajawal', 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-ar);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before{
  /* faint geometric pattern wash, matches reference texture */
  content:"";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(79,217,172,0.05), transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(201,173,112,0.04), transparent 35%);
  pointer-events: none;
  z-index: 0;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(3, 15, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.site-header .container{
  display:flex; align-items:center; justify-content: space-between;
  height: 84px;
}
.menu-btn{
  background:none; border:none; color: var(--text-hi);
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  border-radius: var(--radius-sm);
}
.menu-btn:hover{ background: rgba(255,255,255,0.05); }

.brand{ display:flex; align-items:center; gap:10px; }
.brand-text{ text-align: right; }
.brand-text .ar{
  display:block; font-weight:800; font-size: 1.5rem; color: var(--gold);
  letter-spacing: 0;
}
.brand-text .en{
  display:block; font-family: var(--font-en); font-size: 0.6rem;
  letter-spacing: 4px; color: rgba(201,173,112,0.7); margin-top:2px;
}
.brand-moon{ width:46px; height:46px; flex-shrink:0; }

/* slide-in nav panel (matches screenshot menu) */
.nav-panel{
  position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
  background: var(--bg);
  border-inline-start: 1px solid rgba(255,255,255,0.06);
  transform: translateX(-100%);
  transition: transform .35s ease;
  z-index: 100;
  padding: 24px;
}
[dir="rtl"] .nav-panel{ transform: translateX(100%); }
.nav-panel.open{ transform: translateX(0); }
.nav-panel .nav-top{ display:flex; justify-content: space-between; align-items:center; margin-bottom: 40px; }
.nav-panel .close-btn{ background:none;border:none;color:var(--text-hi); width:40px;height:40px; }
.nav-panel a{
  display:block; padding: 16px 18px; margin-bottom: 10px;
  border-radius: var(--radius-md); color: var(--text-hi); font-weight:700; font-size:1.05rem;
}
.nav-panel a.active{
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint-strong) 100%);
  color:#04140d;
}
.nav-panel a:not(.active):hover{ background: rgba(255,255,255,0.05); }
.nav-backdrop{
  position: fixed; inset:0; background: rgba(0,0,0,0.5);
  opacity:0; pointer-events:none; transition: opacity .3s ease; z-index: 90;
}
.nav-backdrop.open{ opacity:1; pointer-events:auto; }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 15px 30px; border-radius: var(--radius-pill);
  font-weight:700; font-size: 0.98rem; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint-strong) 100%);
  color: #04140d;
  box-shadow: 0 10px 30px -12px rgba(79,217,172,0.55);
}
.btn-outline{
  background: transparent; border-color: var(--mint-line); color: var(--mint);
}
.btn-outline:hover{ background: var(--mint-soft); }

/* ---------------- Section basics ---------------- */
section{ padding: 72px 0; position: relative; z-index:1; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--card-border-strong);
  color: var(--mint); font-weight:700; font-size: 0.85rem;
  margin-bottom: 22px;
}
.eyebrow::before{
  content:""; width:6px; height:6px; border-radius:50%; background: var(--mint);
}
h1,h2,h3,h4{ color: var(--text-hi); margin:0; font-weight: 800; }
h1{ font-size: clamp(2rem, 4vw, 3rem); line-height:1.3; }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); line-height:1.35; }
h3{ font-size: 1.15rem; }
.section-lead{ color: var(--text-body); font-size: 1.05rem; max-width: 640px; margin-top: 14px; }
.accent{ color: var(--mint); }
.accent-gold{ color: var(--gold); }

/* ---------------- Hero ---------------- */
.hero{ padding-top: 56px; text-align:center; }
.hero .eyebrow{ }
.hero h1{ margin: 0 auto 20px; max-width: 760px; }
.hero .section-lead{ margin: 18px auto 34px; max-width: 640px; text-align:center; }
.hero-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom: 48px; }

/* ---------------- App showcase panel ---------------- */
.showcase{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.showcase img{ border-radius: var(--radius-md); width:100%; }
.showcase-tags{
  margin-top: 22px; text-align:center; color: var(--gold);
  font-weight:700; font-size: 1.05rem;
}
.showcase-chip{
  margin-top: 20px; display:flex; align-items:center; justify-content:space-between;
  background: var(--bg-soft); border:1px solid var(--card-border);
  border-radius: var(--radius-md); padding: 14px 18px;
}
.showcase-chip .name{ font-weight:800; color: var(--text-hi); }
.showcase-chip .desc{ color: var(--text-mute); font-size: 0.85rem; margin-top:2px; }
.showcase-chip img{ width:44px; height:44px; border-radius:10px; }

/* ---------------- Stat strip ---------------- */
.stat-strip{
  display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top: 28px;
}
.stat-card{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-md); padding: 22px; text-align:center;
}
.stat-card .num{ color: var(--mint); font-weight:800; font-size:1.35rem; font-family: var(--font-en); }
.stat-card .label{ color: var(--text-mute); font-size:0.85rem; margin-top:6px; }

/* ---------------- Feature grid ---------------- */
.feature-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:20px; margin-top: 40px; }
.feature-card{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 28px; transition: border-color .2s ease;
}
.feature-card:hover{ border-color: var(--card-border-strong); }
.icon-badge{
  width:52px; height:52px; border-radius: var(--radius-sm);
  background: var(--mint-soft); border:1px solid var(--mint-line);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  color: var(--mint);
}
.feature-card h3{ margin-bottom:8px; }
.feature-card p{ color: var(--text-body); margin:0; font-size:0.95rem; }
.feature-card .eyebrow-mini{ display:block; color: var(--text-mute); font-size:0.8rem; margin-top:-4px; margin-bottom:10px; }

/* detail list used across app-detail sections */
.detail-list{ margin-top: 14px; }
.detail-list li{
  display:flex; align-items:flex-start; gap:12px; padding: 12px 0;
  color: var(--text-body); border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-size: 0.98rem;
}
.detail-list li:last-child{ border-bottom:none; }
.detail-list li::before{
  content:""; width:8px; height:8px; border-radius:50%; background: var(--mint);
  margin-top:8px; flex-shrink:0;
}
.detail-list.amber li::before{ background: var(--amber); }
.detail-list b{ color: var(--text-hi); }

/* ---------------- Works-offline section ---------------- */
.offline-panel{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 30px; margin-bottom: 20px;
}
.offline-panel .panel-title{
  display:flex; align-items:center; gap:10px; color: var(--mint);
  font-weight:800; font-size:1.1rem; margin-bottom: 16px;
}
.offline-panel.warn .panel-title{ color: var(--amber); }
.offline-panel .panel-title::before{ content:""; width:8px;height:8px;border-radius:50%; background: currentColor; }

.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }

/* ---------------- Pills row (used for prayer sources) ---------------- */
.pill-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top: 26px; }
.pill{
  display:flex; align-items:center; gap:10px;
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-pill); padding: 14px 22px; font-weight:700; color: var(--text-hi);
}
.pill::before{ content:""; width:7px;height:7px;border-radius:50%; background: var(--mint); }
.pill span.mute{ color: var(--text-mute); font-weight:500; }

/* ---------------- Permission grid ---------------- */
.perm-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:18px; margin-top: 34px; }
.perm-card{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 26px;
}
.perm-card h3{ margin-bottom:6px; font-size:1.05rem; }
.perm-card p{ color: var(--text-body); font-size:0.92rem; margin:0; }

/* ---------------- Blog / news ---------------- */
.news-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:22px; margin-top: 40px; }
.news-card{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow:hidden;
}
.news-card .thumb{
  height: 150px; display:flex; align-items:center; justify-content:center;
  background: radial-gradient(circle at 50% 0%, rgba(79,217,172,0.18), transparent 70%);
  color: var(--mint); font-size: 2.2rem;
}
.news-card .body{ padding: 22px; }
.news-card .meta{ color: var(--text-mute); font-size:0.8rem; margin-bottom:8px; }
.news-card h3{ margin-bottom:10px; font-size:1.1rem; }
.news-card p{ color: var(--text-body); font-size:0.92rem; margin:0 0 14px; }
.news-card .read-more{ color: var(--mint); font-weight:700; font-size:0.9rem; }
.news-card.featured .thumb{ color: var(--gold); background: radial-gradient(circle at 50% 0%, rgba(201,173,112,0.18), transparent 70%); }

/* ---------------- FAQ accordion ---------------- */
.faq-list{ margin-top: 40px; display:flex; flex-direction:column; gap:14px; }
.faq-item{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-md); overflow:hidden;
}
.faq-q{
  width:100%; background:none; border:none; color: var(--text-hi);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 20px 22px; font-weight:700; font-size:1rem; text-align: inherit;
}
.faq-icon{
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  background: var(--mint-soft); border:1px solid var(--mint-line); color: var(--mint);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem; transition: transform .25s ease;
}
.faq-item.open .faq-icon{ transform: rotate(45deg); background: var(--mint); color:#04140d; }
.faq-a{
  max-height:0; overflow:hidden; transition: max-height .3s ease;
  color: var(--text-body); font-size: 0.95rem;
}
.faq-item.open .faq-a{ max-height: 400px; }
.faq-a-inner{ padding: 0 22px 22px; }

/* ---------------- Contact / simple card ---------------- */
.contact-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:18px; margin-top:34px; }
.contact-card{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 26px; display:flex; align-items:center; gap:16px;
}
.contact-card .icon-badge{ margin-bottom:0; flex-shrink:0; }
.contact-card a, .contact-card span{ color: var(--text-hi); font-weight:700; }
.contact-card .label{ color: var(--text-mute); font-size:0.82rem; display:block; margin-bottom:4px; font-weight:500; }

/* ---------------- Privacy toggle ---------------- */
.lang-toggle{
  display:inline-flex; background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-pill); padding: 4px; margin: 26px 0 8px;
}
.lang-toggle button{
  border:none; background:none; padding: 10px 26px; border-radius: var(--radius-pill);
  font-weight:700; color: var(--text-mute); font-family: inherit;
}
.lang-toggle button.active{
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint-strong) 100%); color:#04140d;
}
.policy-panel{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 36px; margin-top: 30px;
}
.policy-panel h2{ font-size: 1.2rem; color: var(--mint); margin-bottom: 12px; margin-top: 30px; }
.policy-panel h2:first-child{ margin-top:0; }
.policy-panel p{ color: var(--text-body); margin: 0 0 14px; }
.policy-panel ul{ margin: 10px 0 18px; }
.policy-panel ul li{
  color: var(--text-body); padding: 8px 0 8px 0; display:flex; gap:10px; align-items:flex-start;
}
.policy-panel ul li::before{ content:""; width:7px;height:7px;border-radius:50%; background: var(--mint); margin-top:9px; flex-shrink:0; }
.policy-panel b{ color: var(--text-hi); }
.updated-chip{
  display:inline-block; border:1px solid var(--card-border-strong); color: var(--gold);
  padding: 8px 16px; border-radius: var(--radius-pill); font-size:0.82rem; font-weight:700;
}
[data-lang-block]{ display:none; }
[data-lang-block].active{ display:block; }
.lang-en [data-lang-block] { font-family: var(--font-en); }

/* ---------------- Footer ---------------- */
.site-footer{ border-top:1px solid rgba(255,255,255,0.06); padding: 44px 0 26px; margin-top: 40px; }
.footer-top{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:28px; }
.footer-nav{ display:flex; gap:24px; flex-wrap:wrap; }
.footer-nav a{ color: var(--text-body); font-size:0.92rem; }
.footer-nav a:hover{ color: var(--mint); }
.footer-meta{ text-align: end; color: var(--text-mute); font-size:0.88rem; line-height:1.9; }
.footer-meta b{ color: var(--text-hi); }
.footer-bottom{
  margin-top: 30px; padding-top: 22px; border-top:1px solid rgba(255,255,255,0.05);
  text-align:center; color: var(--text-mute); font-size:0.82rem;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px){
  .feature-grid, .two-col, .perm-grid, .news-grid, .contact-grid{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: 1fr 1fr; }
  .stat-strip .stat-card:last-child{ grid-column: span 2; }
  .footer-top{ flex-direction: column; text-align:center; }
  .footer-meta{ text-align:center; }
}
@media (max-width: 480px){
  .stat-strip{ grid-template-columns: 1fr; }
  .stat-strip .stat-card:last-child{ grid-column: span 1; }
}
