/* Saed Hassunah — Static Site Core
   Unified header/footer + shared tokens
   (Pages may still include their own page-specific CSS.)
*/

:root{
  --bg0:#070A12;
  --bg1:#0B1020;
  --card:#0E1630;
  --card2:#0B1430;
  --text:#EAF0FF;
  --muted:#A8B3D6;
  --line:rgba(255,255,255,.10);
  --primary:#2b3087;
  --secondary:#00aaad;
  --accent:#00ebeb;
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius:18px;
  --max:1180px;
  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --sans:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color-scheme: dark light;
}

html[data-theme="light"]{
  --bg0:#f6f8ff;
  --bg1:#ffffff;
  --card:#ffffff;
  --card2:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(2,6,23,.10);
  --shadow:0 16px 50px rgba(2,6,23,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(43,48,135,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(0,170,173,.22), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  line-height:1.65;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px}

/* ===== Header (Sticky Glass + shrink) ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg1), transparent 35%);
  border-bottom: 1px solid var(--line);
  transition: padding .18s ease, background .18s ease;
}
.site-header .nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
  transition: padding .18s ease;
}
.site-header.is-compact .nav{ padding: 10px 0; }

.brand{display:flex; align-items:center; gap:12px; min-width: 240px;}
.logoWrap{display:flex; align-items:center; justify-content:flex-start; flex:0 0 auto; max-width: 190px;}
.logoImg{
  height: 34px !important;
  width: auto !important;
  max-width: 170px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  display: none;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
}
html[data-theme="dark"] .logoImg.logoDark{ display:block; }
html[data-theme="light"] .logoImg.logoLight{ display:block; }

.brand h1{font-size: 14px; margin:0; line-height: 1.2; font-weight: 900;}
.brand p{margin:2px 0 0; font-size: 12px; color: var(--muted);}

nav ul{
  display:flex; align-items:center; gap: 14px;
  list-style:none; margin:0; padding:0;
  flex-wrap:wrap; justify-content:center;
}
nav a{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  transition: .18s ease;
  position: relative;
}
nav a:hover{
  color: var(--text);
  background: color-mix(in oklab, var(--card), transparent 25%);
}

/* Active link underline + color */
nav a.is-active{
  color: var(--text);
  background: color-mix(in oklab, var(--card), transparent 25%);
}
nav a.is-active:after{
  content:"";
  position:absolute;
  inset-inline-start: 10px;
  inset-inline-end: 10px;
  bottom: -10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent), transparent 35%), transparent);
  opacity: .95;
}

/* Home icon link */
.homeIcon{
  display:inline-flex; align-items:center; justify-content:center;
  width: 36px; height: 36px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card), transparent 10%);
  transition: .18s ease;
}
.homeIcon:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.homeIcon svg{ width: 16px; height: 16px; fill: currentColor; color: var(--text); opacity:.92; }

.controls{
  display:flex; align-items:center; gap: 10px;
  min-width: 240px; justify-content:flex-end; flex-wrap:wrap;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 8px;
  padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card), transparent 8%);
  color: var(--text);
  font-size: 13px; font-weight: 650;
  transition: .18s ease;
  cursor: pointer; user-select:none;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active{ transform: translateY(0); box-shadow:none; }

.btn.primary{
  border-color: color-mix(in oklab, var(--primary), white 10%);
  background: linear-gradient(135deg, rgba(43,48,135,.98), rgba(0,170,173,.80));
  color: #fff;
}

/* ===== Footer (one line) ===== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 18px 0 18px;
  margin-top: 26px;
}
.footline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: 13px;
}
.footLeft{ display:flex; align-items:center; gap: 10px; flex-wrap:wrap; }
.footEmail{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}
.social{ display:flex; gap: 8px; align-items:center; }
.iconBtn{
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card), transparent 10%);
  display:grid; place-items:center;
  transition: .18s ease;
}
.iconBtn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--secondary), white 70%);
}
.iconBtn svg{ width: 16px; height: 16px; fill: currentColor; color: var(--text); opacity: .92; }

/* small */
@media (max-width: 980px){
  .brand{ min-width: auto; }
  .controls{ min-width: auto; }
}


/* Disabled placeholder links kept visible until the real file is uploaded */
.btn[aria-disabled="true"], a[aria-disabled="true"]{opacity:.62;cursor:not-allowed;pointer-events:auto;}
