/* MixKhazana — shared stylesheet (vanilla, mobile-first, no frameworks) */
:root {
  --bg: #0b130e;
  --surface: #121c15;
  --surface-2: #182619;
  --gold: #f2c230;
  --gold-deep: #c9971a;
  --gold-soft: #ffe9a8;
  --green: #1f7a4d;
  --green-bright: #35b56f;
  --text: #f2f5f1;
  --muted: #a7bcab;
  --border: #2a3a2e;
  --danger: #e05252;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 14, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.logo { font-size: 1.45rem; font-weight: 800; letter-spacing: .3px; color: var(--text); }
.logo .coin { color: var(--gold); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted); padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { color: var(--gold-soft); background: var(--surface-2); text-decoration: none; }
.main-nav a.active { color: #1a1206; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }

/* ---------- Header search (injected by main.js) ---------- */
.mk-header-search { display: flex; align-items: center; gap: 0; }
.mk-header-search input[type="search"] {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px 0 0 999px; padding: 8px 14px; font-size: .9rem; width: 170px;
  outline: none;
}
.mk-header-search input[type="search"]:focus { border-color: var(--gold-deep); }
.mk-header-search button {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); border: none;
  border-radius: 0 999px 999px 0; padding: 8px 13px; font-size: .9rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 64px 18px 48px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(242, 194, 48, .12), transparent 70%);
}
.hero .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 6px 16px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.15; font-weight: 800; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1206; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold-deep); }
.btn-green { background: linear-gradient(135deg, var(--green-bright), var(--green)); color: #fff; }
.btn-small { padding: 9px 18px; font-size: .9rem; }

/* ---------- Sections & cards ---------- */
.section { padding: 44px 0; }
.section-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.section-title .gold { color: var(--gold); }
.section-sub { color: var(--muted); margin-bottom: 24px; max-width: 680px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-deep); }
.card-icon { font-size: 2.4rem; margin-bottom: 10px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card-link { font-weight: 700; }
.featured-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

/* ---------- Ad placeholders ---------- */
.ad-slot {
  border: 1.5px dashed var(--gold-deep); border-radius: var(--radius);
  background: rgba(242, 194, 48, .04); color: var(--muted);
  text-align: center; padding: 26px 12px; margin: 28px 0; font-size: .85rem; letter-spacing: 1px;
}
.ad-slot span { display: block; font-size: .72rem; text-transform: uppercase; opacity: .7; }

/* ---------- Forms / calculators ---------- */
.calc-wrap { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 7px; }
.form-group .hint { font-size: .82rem; color: var(--muted); font-weight: 400; display: block; margin-top: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 1rem;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 194, 48, .18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-box {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-deep); border-radius: var(--radius);
  padding: 22px; margin-top: 22px; display: none;
}
.result-box.show { display: block; }
.result-box h3 { color: var(--gold); margin-bottom: 12px; }
.result-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.result-row:last-child { border-bottom: none; }
.result-row .val { font-weight: 800; color: var(--gold-soft); }
.badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.badge-good { background: rgba(53, 181, 111, .18); color: var(--green-bright); border: 1px solid var(--green); }
.badge-warn { background: rgba(242, 194, 48, .15); color: var(--gold); border: 1px solid var(--gold-deep); }
.badge-bad { background: rgba(224, 82, 82, .15); color: var(--danger); border: 1px solid var(--danger); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 18px 0 6px; }
.breadcrumb a { color: var(--gold); }

/* ---------- Games ---------- */
.game-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 18px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 20px; text-align: center; min-width: 96px; }
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.stat .lbl { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.game-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 480px; margin: 0 auto; }
.mem-card {
  aspect-ratio: 1; border-radius: 12px; cursor: pointer; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); transition: transform .18s ease; user-select: none;
}
.mem-card:hover { border-color: var(--gold-deep); }
.mem-card .face { display: none; }
.mem-card.flipped .face, .mem-card.matched .face { display: block; }
.mem-card.flipped { background: var(--surface-2); border-color: var(--gold); transform: scale(1.03); }
.mem-card.matched { background: rgba(31, 122, 77, .25); border-color: var(--green-bright); cursor: default; }
.mem-card .back { color: var(--gold-deep); }
.mem-card.flipped .back { display: none; }
.game-controls { text-align: center; margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.win-banner {
  text-align: center; background: rgba(242, 194, 48, .1); border: 1px solid var(--gold-deep);
  border-radius: var(--radius); padding: 20px; margin: 20px auto; max-width: 480px; display: none;
}
.win-banner.show { display: block; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video-embed { position: relative; aspect-ratio: 9 / 14; max-height: 480px; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .vc-body { padding: 14px 16px; }
.video-card h3 { font-size: 1rem; margin-bottom: 4px; }
.video-card p { font-size: .85rem; color: var(--muted); }
.channel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }

/* ---------- Blog / articles ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.25; margin: 10px 0 8px; }
.article .meta { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.article h2 { font-size: 1.35rem; color: var(--gold); margin: 30px 0 12px; }
.article h3 { font-size: 1.1rem; margin: 22px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article th { background: var(--surface-2); color: var(--gold); }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.faq h3 { font-size: 1rem; margin: 12px 0 6px; color: var(--gold-soft); }
.faq h3:first-child { margin-top: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.toc strong { display: block; margin-bottom: 8px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.post-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); margin-bottom: 12px; }

/* ---------- Share ---------- */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.share-row .lbl { font-weight: 700; color: var(--gold-soft); }
.share-btn { display: inline-block; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: #fff; border: none; cursor: pointer; }
.share-btn:hover { text-decoration: none; opacity: .9; }
.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }
.share-btn.x { background: #111; border: 1px solid var(--border); }
.share-btn.copy { background: var(--gold-deep); color: #1a1206; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: 30px 24px; text-align: center; margin: 36px 0; }
.newsletter h2 { margin-bottom: 8px; }
.newsletter p { color: var(--muted); margin-bottom: 18px; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter input { flex: 1; min-width: 200px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1rem; }
.newsletter .ok { color: var(--green-bright); font-weight: 700; margin-top: 12px; display: none; }
.newsletter .ok.show { display: block; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--gold); color: #1a1206; font-weight: 700; padding: 12px 24px; border-radius: 999px;
  transition: transform .25s ease; z-index: 100; box-shadow: var(--shadow); opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 50px; background: #080d0a; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 36px 18px 18px; }
.footer-inner h4 { color: var(--gold); margin-bottom: 10px; font-size: 1rem; }
.footer-inner p { color: var(--muted); font-size: .9rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.copyright { text-align: center; color: var(--muted); font-size: .82rem; padding: 16px; border-top: 1px solid var(--border); }

/* ---------- Misc ---------- */
.page-head { padding: 40px 18px 10px; text-align: center; }
.page-head h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 10px; }
.page-head h1 .gold { color: var(--gold); }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.note { background: rgba(242, 194, 48, .07); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; font-size: .95rem; }
.center { text-align: center; }
.mt-2 { margin-top: 12px; } .mt-4 { margin-top: 28px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .game-board { gap: 8px; }
  .mem-card { font-size: 1.6rem; }
  .header-inner { justify-content: center; }
  .mk-header-search { order: 3; width: 100%; justify-content: center; margin-top: 4px; }
  .mk-header-search input[type="search"] { width: 100%; max-width: 320px; }
  .hero { padding: 44px 18px 34px; }
  .main-nav { justify-content: center; }
  .main-nav a { font-size: .85rem; padding: 7px 11px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .share-row { justify-content: center; }
  .newsletter form input[type="email"] { width: 100%; }
}
