/* SmartBoot shared site chrome
   Use this on homepage, contact, legal, subscribe, and similar static pages.
   Suggested path: /var/www/smartboot/assets/site-shared.css
*/

:root{
  --bg:#0a1733;
  --bg2:#102142;
  --card:#152445;
  --card-2:#18294d;
  --text:#f3f7ff;
  --muted:#b8c6e2;
  --border:rgba(255,255,255,.13);
  --line:rgba(255,255,255,.10);
  --acc:#3b82f6;
  --acc2:#2563eb;
  --success:#22c55e;
  --danger:#ef4444;
  --shadow:0 22px 54px rgba(0,0,0,.28);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 650px at 22% 8%, rgba(96,165,250,.20), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{color:inherit;text-decoration:none}

.site-wrap{
  max-width:1120px;
  margin:0 auto;
  padding:38px 18px 60px;
}

/* ===== Header / nav ===== */
.topbar{margin-bottom:26px}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.brand{
  font-weight:900;
  letter-spacing:.3px;
  font-size:18px;
}

.menu,
.lang{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.nav-btn,
.pill,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.035);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.nav-btn:hover,
.pill:hover,
.btn.secondary:hover{
  background:rgba(255,255,255,.065);
  border-color:rgba(255,255,255,.16);
}

.pill.active{
  background:rgba(59,130,246,.22);
  border-color:rgba(59,130,246,.42);
}

.btn.primary{
  background:linear-gradient(180deg, rgba(94,154,255,1), rgba(58,121,241,1));
  border-color:transparent;
  color:#fff;
}

.btn.primary:hover{filter:brightness(1.05)}
.btn.secondary{background:rgba(255,255,255,.02)}

/* ===== Panels / cards ===== */
.hero-panel,
.section-card,
.subcard,
.site-card{
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.hero-panel{
  padding:26px 24px;
  margin-bottom:14px;
}

.section-card{
  padding:20px;
  margin-top:14px;
}

.subcard,
.site-card{
  padding:18px;
  border-radius:20px;
}

.hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.045);
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}

.page-title{
  margin:0;
  font-size:clamp(32px,4vw,48px);
  line-height:1.08;
  letter-spacing:-.3px;
}

.lead{
  margin:10px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.75;
  max-width:900px;
}

.small{
  font-size:13px;
  color:var(--muted);
  font-weight:800;
}

/* ===== Common content blocks ===== */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.grid-2-wide{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:14px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.kvs{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:10px 12px;
  margin-top:10px;
}

.kvs div{
  padding:10px 0;
  border-bottom:1px solid var(--line);
}

.kvs .k{
  color:var(--muted);
  font-weight:700;
}

label{
  display:block;
  font-size:13px;
  color:var(--muted);
  font-weight:800;
  margin:12px 0 6px;
}

input,
textarea,
select{
  width:100%;
  box-sizing:border-box;
  background:rgba(255,255,255,.055);
  border:1px solid var(--border);
  color:var(--text);
  padding:13px 14px;
  border-radius:14px;
  outline:none;
}

input:focus,
textarea:focus,
select:focus{
  border-color:rgba(59,130,246,.42);
  box-shadow:0 0 0 3px rgba(96,165,250,.16);
}

textarea{
  min-height:140px;
  resize:vertical;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.note{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.rule{
  margin-bottom:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}

.rule:last-of-type{
  border-bottom:none;
  padding-bottom:0;
}

.secTitle{
  font-weight:900;
  margin-bottom:6px;
  font-size:16px;
}

.ruleBody{
  color:var(--muted);
  line-height:1.75;
}

.updated{
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

/* ===== Footer ===== */
.site-footer{
  margin-top:52px;
  color:var(--muted);
  font-size:13px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* ===== RTL ===== */
html[dir="rtl"] body{
  font-family:system-ui,"Noto Kufi Arabic","Segoe UI",Tahoma,Arial,sans-serif;
}

html[dir="rtl"] .site-wrap{
  direction:rtl;
}

html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .menu,
html[dir="rtl"] .lang,
html[dir="rtl"] .hero-top{
  flex-direction:row-reverse;
}

html[dir="rtl"] .lead,
html[dir="rtl"] .small,
html[dir="rtl"] label,
html[dir="rtl"] .note,
html[dir="rtl"] .rule,
html[dir="rtl"] .updated{
  text-align:right;
}

html[dir="rtl"] .kvs{
  grid-template-columns:1fr 160px;
}

html[dir="rtl"] .kvs .k{
  text-align:right;
}

html[dir="rtl"] .kvs .v{
  text-align:left;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .grid-3{grid-template-columns:1fr}
  .grid-2,
  .grid-2-wide{grid-template-columns:1fr}
}

@media (max-width: 700px){
  .nav-btn,
  .pill,
  .btn{
    min-height:42px;
    padding:0 14px;
    border-radius:12px;
  }

  .hero-panel,
  .section-card,
  .subcard,
  .site-card{
    border-radius:20px;
  }

  .kvs{
    grid-template-columns:1fr;
  }

  html[dir="rtl"] .kvs{
    grid-template-columns:1fr;
  }

  html[dir="rtl"] .kvs .v{
    text-align:right;
  }
}
