/* ============================================================
   NatCooking — shared design system
   Tokens, reset, header/nav, banner frame, footer+social,
   button/card/pill/chip primitives, ad-slot, container utilities.
   Loaded on every page, before the page-specific stylesheet.
   ============================================================ */

:root{
  /* Surfaces */
  --bg:#070816;
  --surface:#0f1633;
  --surface-2:#0b1129;

  /* Text */
  --text:#f2e2c7;
  --muted:#c9b99e;

  /* Brand accents */
  --brand:#f3a63a;
  --brand-2:#7b6be0;
  --accent-blue:#2959bd;

  /* Lines / elevation */
  --border:rgba(242,226,199,.12);
  --border-strong:rgba(242,226,199,.18);
  --shadow-sm: 0 10px 20px rgba(0,0,0,.22);
  --shadow:    0 12px 30px rgba(0,0,0,.42);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.45);

  /* Radius scale */
  --radius-sm:14px;
  --radius:18px;
  --radius-pill:999px;

  /* Spacing scale */
  --space-1:4px;  --space-2:8px;  --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-7:32px; --space-8:48px;

  /* Fonts */
  --font-display:"Baloo 2", ui-rounded, system-ui, sans-serif;
  --font-body:"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
              Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";

  /* Layout */
  --max:1100px;
}

*{ box-sizing:border-box; }
/* min-height, not height — a fixed height caps the box at one viewport
   tall, which breaks position:sticky (header, .video-wrap) on any page
   long enough to scroll past that point. */
html,body{ min-height:100%; }

body{
  margin:0;
  font-family: var(--font-body);
  color:var(--text);
  background:
    radial-gradient(1400px 900px at 20% 10%,
      rgba(123,107,224,.28) 0%, rgba(123,107,224,.12) 45%,
      rgba(123,107,224,.05) 65%, rgba(123,107,224,0) 88%),
    radial-gradient(1300px 900px at 85% 22%,
      rgba(41,89,189,.20) 0%, rgba(41,89,189,.09) 48%,
      rgba(41,89,189,.04) 68%, rgba(41,89,189,0) 90%),
    radial-gradient(1200px 900px at 55% 95%,
      rgba(243,166,58,.12) 0%, rgba(243,166,58,.06) 52%,
      rgba(243,166,58,.03) 70%, rgba(243,166,58,0) 92%),
    linear-gradient(to bottom,
      rgba(123,107,224,.05) 0%, rgba(41,89,189,.04) 35%,
      rgba(243,166,58,.035) 70%, rgba(0,0,0,0) 100%),
    var(--bg);
  background-attachment: fixed;
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

h1,h2,h3,.title,.brand,.platform,.logo{
  font-family: var(--font-display);
}

.container{ width:min(100%, var(--max)); margin:0 auto; padding:0 18px; }

/* ---------- Header / nav ---------- */
header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(7,8,22,.90), rgba(7,8,22,.60));
  border-bottom: 1px solid var(--border);
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px 0;
}
.logo{
  width:38px; height:38px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  display:grid;
  place-items:center;
  color:#0b0b0b;
  font-weight:700;
  border: 1px solid rgba(242,226,199,.18);
}
nav{
  display:flex;
  align-items:center;
  gap:26px;
}
.navlink{
  color:var(--muted);
  font-weight:700;
  font-size:16px;
  padding:10px 16px;
  border-radius:var(--radius-sm);
  transition: all .2s ease;
}
.navlink:hover{
  color:var(--text);
  background: rgba(242,226,199,.08);
  transform: translateY(-1px);
  text-decoration:none;
}
.navlink.is-active{
  color:var(--text);
  background: rgba(242,226,199,.10);
  border: 1px solid var(--border-strong);
}

.actions{ display:flex; gap:10px; align-items:center; }

/* ---------- Buttons ---------- */
.btn{
  border: 1px solid var(--border);
  background: rgba(242,226,199,.05);
  color: var(--text);
  padding:10px 12px;
  border-radius:var(--radius-sm);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.btn:hover{ background: rgba(242,226,199,.09); }
.btn.primary{
  border-color: rgba(0,0,0,.15);
  background: linear-gradient(135deg, var(--brand), #ffd78a);
  color:#141414;
}

/* ---------- Banner ---------- */
.site-banner{
  width:100%;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.20);
}
.site-banner .container{ padding-top: 10px; padding-bottom: 10px; }
.banner-frame{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  background:#000;
  box-shadow: var(--shadow-sm);
}
.banner-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 600px){
  .banner-frame img{ height:110px; }
}

/* ---------- Cards / pills / chips ---------- */
.card{
  border:1px solid var(--border);
  background: rgba(242,226,199,.045);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(242,226,199,.07);
  border-color: var(--border-strong);
}

.pill{
  font-size:12px;
  font-weight:700;
  color:#141414;
  background: linear-gradient(135deg, var(--brand), #ffd78a);
  padding:6px 10px;
  border-radius: var(--radius-pill);
  white-space:nowrap;
}
.chip{
  border:1px solid var(--border);
  background: rgba(242,226,199,.04);
  color: var(--muted);
  padding:6px 10px;
  border-radius: var(--radius-pill);
  font-size:12px;
  font-weight:700;
}

/* ---------- Sections ---------- */
section{ padding: 18px 0; }
.sectionHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin: 6px 0 12px;
  flex-wrap:wrap;
}
.sectionHead h2{
  margin:0;
  font-size:20px;
  font-weight:600;
  letter-spacing:-.2px;
}
.sectionHead p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  max-width: 64ch;
  font-weight:600;
}

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

/* ---------- Notice ---------- */
.notice{
  border:1px solid rgba(243,166,58,.35);
  background: rgba(243,166,58,.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  margin: 14px 0 0;
  display:none;
  font-weight:600;
}
.notice code{
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight:700;
}

/* ---------- Ads ---------- */
.ad-slot{
  grid-column: 1 / -1;
  border:1px solid var(--border);
  background: rgba(242,226,199,.035);
  border-radius: var(--radius);
  padding: 14px;
  text-align:center;
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}
.ad-slot .ad-label{
  display:block;
  font-size:11px;
  letter-spacing:.14em;
  color: rgba(201,185,158,.85);
  font-weight:700;
  margin-bottom:10px;
  text-transform: uppercase;
}
.ad-slot ins.adsbygoogle{
  display:block;
  width:100%;
  min-height: 250px;
}
@media (max-width: 620px){
  .ad-slot ins.adsbygoogle{ min-height: 160px; }
}

/* ---------- Footer ---------- */
footer{
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight:600;
}
.footerRow{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.footerBrand{ font-weight:600; color:var(--text); font-family:var(--font-display); font-size:16px; }

.socialRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.socialPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border);
  background: rgba(242,226,199,.05);
  color:var(--muted);
  padding:8px 12px;
  border-radius: var(--radius-pill);
  font-size:12px;
  font-weight:700;
  transition: all .15s ease;
}
.socialPill svg{ width:14px; height:14px; fill:currentColor; flex:0 0 auto; display:block; }
.socialPill:hover{
  color:var(--text);
  background: rgba(242,226,199,.09);
  border-color: var(--border-strong);
  text-decoration:none;
}

/* ---------- Skeleton loading ---------- */
.skeleton{ position:relative; overflow:hidden; }
.skeleton::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-60%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer{
  0%{ transform: translateX(-60%); }
  100%{ transform: translateX(60%); }
}
