/*
Theme Name: GameScoreCraft
Theme URI: https://gamescorecraft.com
Author: GameScoreCraft
Description: Editorial theme for the GameScoreCraft game-music education site. Navy + gold, card grids, article layout with sidebar, AdSense-ready ad slots.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gamescorecraft
*/
/* GameScoreCraft — editorial design system */
:root {
  --ink: #141a26;
  --ink-soft: #3d4657;
  --ink-faint: #6b7484;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e6e2d8;
  --navy: #101828;
  --navy-2: #1a2438;
  --gold: #e8a020;
  --gold-soft: #f7c860;
  --gold-tint: #fdf3e0;
  --teal: #2a9d8f;
  --radius: 14px;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #0b5cad; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; letter-spacing: .2px; }
.brand-name em { color: var(--gold); font-style: normal; }
.brand-tag { font-size: .72rem; color: #9aa7bd; text-transform: uppercase; letter-spacing: 1.5px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a {
  color: #cfd8e6; font-size: .92rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; display: block;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: var(--navy-2); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid #33415c; color: #fff;
  border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16223c 55%, #1d2c4d 100%);
  color: #fff; padding: 72px 0 64px;
}
.hero-kicker {
  color: var(--gold); text-transform: uppercase; letter-spacing: 2.5px;
  font-size: .78rem; font-weight: 700; margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.15; max-width: 760px; margin-bottom: 18px;
}
.hero p { color: #c3cede; font-size: 1.12rem; max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 700; font-size: .98rem; border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); text-decoration: none; }
.btn-ghost { border-color: #3b4a68; color: #dfe6f2; }
.btn-ghost:hover { border-color: var(--gold); color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: #f3f0e8; }
.section-head { margin-bottom: 34px; max-width: 720px; }
.section-kicker {
  color: var(--teal); text-transform: uppercase; letter-spacing: 2px;
  font-size: .75rem; font-weight: 800; margin-bottom: 8px;
}
.section-head h2 { font-family: var(--font-head); font-size: 1.9rem; line-height: 1.25; }
.section-head p { color: var(--ink-soft); margin-top: 10px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,24,40,.09); }
.card-cat {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--teal);
}
.card h3 { font-family: var(--font-head); font-size: 1.28rem; line-height: 1.35; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: #0b5cad; }
.card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card-meta { font-size: .8rem; color: var(--ink-faint); display: flex; gap: 12px; }
.card-link { font-weight: 700; font-size: .92rem; color: #0b5cad; }

.pillar-card {
  background: var(--navy); color: #fff; border: none;
}
.pillar-card .card-cat { color: var(--gold); }
.pillar-card h3 a { color: #fff; }
.pillar-card p { color: #c3cede; }
.pillar-card .card-link { color: var(--gold-soft); }

/* ---------- Topic tiles ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: left;
}
.topic:hover { border-color: var(--gold); text-decoration: none; }
.topic-icon { font-size: 1.6rem; margin-bottom: 10px; }
.topic h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; font-family: var(--font-head); }
.topic p { font-size: .85rem; color: var(--ink-faint); }

/* ---------- Article page ---------- */
.article-hero {
  background: var(--navy); color: #fff; padding: 46px 0 40px;
  border-bottom: 3px solid var(--gold);
}
.breadcrumbs { font-size: .82rem; color: #8fa0bb; margin-bottom: 16px; }
.breadcrumbs a { color: #b9c6da; }
.article-hero h1 {
  font-family: var(--font-head); font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.22; max-width: 800px;
}
.article-meta { margin-top: 16px; font-size: .85rem; color: #8fa0bb; display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta .cat-pill {
  background: var(--gold); color: var(--navy); font-weight: 800;
  padding: 3px 12px; border-radius: 999px; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px;
}
.article-wrap { display: grid; grid-template-columns: minmax(0, 740px) 300px; gap: 48px; padding: 48px 0 64px; }
.article-body { font-size: 1.05rem; }
.article-body h2 {
  font-family: var(--font-head); font-size: 1.55rem; margin: 40px 0 14px; line-height: 1.3;
}
.article-body h3 { font-size: 1.18rem; margin: 28px 0 10px; color: var(--navy); }
.article-body p { margin-bottom: 16px; color: #26303f; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; color: #26303f; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy); }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: .92rem;
  background: var(--card);
}
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--navy); color: #fff; font-size: .85rem; }
.article-body tr:nth-child(even) td { background: #f6f4ee; }
.callout {
  background: var(--gold-tint); border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0;
}
.callout p { margin: 0; }
.key-takeaways {
  background: #eef4f2; border: 1px solid #cfe0db; border-radius: var(--radius);
  padding: 22px 26px; margin: 26px 0;
}
.key-takeaways h2 { margin-top: 0 !important; font-size: 1.2rem !important; }

/* Sidebar */
.sidebar-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 24px;
}
.sidebar-box h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 12px; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: 10px; font-size: .92rem; }
.toc-box a { color: var(--ink-soft); }
.toc-box a:hover { color: #0b5cad; }

/* Ad slots (replaced by real AdSense units after approval) */
.ad-slot {
  background: #f0ede4; border: 1px dashed #c9c2ae; border-radius: 10px;
  color: #9a917b; font-size: .75rem; letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; margin: 30px 0; text-align: center; padding: 10px;
}
.sidebar-box .ad-slot { min-height: 250px; margin: 0; }

/* Newsletter */
.newsletter {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 40px; text-align: center;
}
.newsletter h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 10px; }
.newsletter p { color: #c3cede; max-width: 520px; margin: 0 auto 22px; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter input {
  flex: 1; padding: 13px 16px; border-radius: 10px; border: 1px solid #33415c;
  background: var(--navy-2); color: #fff; font-size: .95rem;
}
.newsletter-note { font-size: .78rem; color: #8fa0bb; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9aa7bd; padding: 48px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: .88rem; }
.site-footer a { color: #9aa7bd; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand p { font-size: .88rem; max-width: 300px; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid #223052; padding-top: 20px; font-size: .8rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* Category page */
.category-hero { background: var(--navy); color: #fff; padding: 44px 0 38px; border-bottom: 3px solid var(--gold); }
.category-hero h1 { font-family: var(--font-head); font-size: 2.1rem; }
.category-hero p { color: #c3cede; max-width: 640px; margin-top: 10px; }

/* Static page (about/privacy) */
.static-body { max-width: 760px; padding: 44px 0 60px; }
.static-body h1 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 18px; }
.static-body h2 { font-family: var(--font-head); font-size: 1.35rem; margin: 30px 0 10px; }
.static-body p, .static-body li { color: #26303f; margin-bottom: 14px; }
.static-body ul { margin-left: 22px; }

/* Responsive */
@media (max-width: 960px) {
  .card-grid, .card-grid.two { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid, .card-grid.two, .topic-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 67px; left: 0; right: 0; background: var(--navy); padding: 10px 18px 18px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .newsletter form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Learning path steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; position: relative;
}
.step:hover { border-color: var(--gold); text-decoration: none; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); }
.step p { font-size: .87rem; color: var(--ink-faint); flex: 1; }

/* ---------- Gear / affiliate ---------- */
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gear-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gear-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,24,40,.09); }
.gear-icon { font-size: 2rem; }
.gear-card h3 { font-family: var(--font-head); font-size: 1.2rem; }
.gear-card p { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.btn-ghost-dark {
  border: 2px solid var(--navy); color: var(--navy); text-align: center;
  padding: 11px 20px; font-size: .92rem;
}
.btn-ghost-dark:hover { background: var(--navy); color: var(--gold-soft); text-decoration: none; }
.aff-note { margin-top: 20px; font-size: .8rem; color: var(--ink-faint); }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px;
}
.trust-item h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; }
.trust-item p { font-size: .86rem; color: var(--ink-faint); }

/* In-article affiliate gear box */
.gear-box {
  background: var(--gold-tint); border: 1px solid #ecd9ae; border-radius: var(--radius);
  padding: 24px 28px; margin: 34px 0;
}
.gear-box h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 12px; }
.gear-box ul { margin: 0 0 12px 20px; }
.gear-box li { margin-bottom: 8px; font-size: .95rem; }
.gear-box-note { font-size: .8rem; color: var(--ink-faint); margin: 0 !important; }

@media (max-width: 960px) {
  .steps-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gear-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps-grid, .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- Featured images & improved hero ---------- */
.article-featured {
  margin: 0 0 28px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16,24,40,.10);
}
.article-featured img { display: block; width: 100%; height: auto; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid #2b3a58; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); }
.hero-stat span { font-size: .8rem; color: #9aa7bd; }

.card-img { margin: -26px -26px 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-img img { display: block; width: 100%; height: 170px; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.pillar-card .card-img img { height: 190px; }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; }
.faq-item h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}
