/* ==========================================================================
   Game Plan Money — Shared Design System
   Extracted from homepage v16
   ========================================================================== */

/* CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  --teal-deep:    #0d4a47;
  --teal-bright:  #1a7a6e;
  --green-accent: #3ecf8e;
  --green-light:  #5de0a4;
  --off-white:    #f5f3ee;
  --warm-white:   #faf9f6;
  --dark:         #0a1a18;
  --text-body:    #2c3e35;
  --text-muted:   #6b7f77;
  --border:       rgba(13,74,71,0.12);
}

/* BASE RESET
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text-body);
  overflow-x: hidden;
}

/* NAVIGATION
   ========================================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 44px; height: 44px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 17px;
  color: var(--teal-deep); line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links li { margin: 0; padding: 0; display: flex; align-items: center; }
.nav-links li a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--text-body); transition: color 0.2s;
  display: flex; align-items: center; line-height: normal;
}
.nav-links li a:hover { color: var(--teal-deep); }
.nav-cta {
  background: var(--teal-deep) !important;
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-size: 13px !important; font-weight: 600 !important;
  letter-spacing: 0.03em;
}
.nav-cta:hover { background: var(--teal-bright) !important; }
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--teal-deep); border-radius: 2px; transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column;
  background: white; border-top: 1px solid rgba(0,0,0,0.07);
  padding: 16px 20px 20px; list-style: none; margin: 0;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.nav-mobile li:last-child { border-bottom: none; padding-top: 14px; }
.nav-mobile li a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--text-body); display: block;
}
.nav-mobile .nav-cta { display: inline-block; text-align: center; }

/* FOOTER
   ========================================================================== */
footer {
  background: var(--teal-deep);
  padding: 40px 80px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: white;
}
.footer-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.footer-links li { margin: 0; padding: 0; display: flex; align-items: center; }
.footer-links li a {
  color: rgba(255,255,255,0.46); text-decoration: none;
  font-size: 13px; transition: color 0.2s;
}
.footer-links li a:hover { color: white; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* SECTION UTILITIES
   ========================================================================== */
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.label-line { width: 28px; height: 2px; background: var(--green-accent); flex-shrink: 0; }
.label-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-bright);
}
.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 700; color: var(--teal-deep); line-height: 1.15;
  margin-bottom: 18px;
}
.section-headline em { font-style: italic; color: var(--teal-bright); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow-line { width: 30px; height: 2px; background: var(--green-accent); flex-shrink: 0; }
.eyebrow-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-accent);
}

/* BUTTONS
   ========================================================================== */
.btn-primary {
  background: var(--green-accent); color: var(--dark);
  padding: 15px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(62,207,142,0.3);
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.8);
  padding: 15px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: white; }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  padding: 15px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: white; }
.btn-teal {
  background: var(--teal-deep); color: white;
  padding: 15px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-teal:hover { background: var(--teal-bright); transform: translateY(-1px); }

/* POST / PAGE CONTENT AREA
   ========================================================================== */
.content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}
.content-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; color: var(--teal-deep); line-height: 1.1;
  margin-bottom: 24px;
}
.content-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700; color: var(--teal-deep); line-height: 1.2;
  margin: 48px 0 16px;
}
.content-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700; color: var(--teal-deep);
  margin: 36px 0 12px;
}
.content-wrap p {
  font-size: 17px; line-height: 1.82; color: var(--text-body);
  font-weight: 300; margin-bottom: 20px;
}
.content-wrap strong { font-weight: 600; color: var(--teal-deep); }
.content-wrap a { color: var(--teal-bright); text-decoration: underline; }
.content-wrap a:hover { color: var(--teal-deep); }
.content-wrap ul, .content-wrap ol {
  font-size: 17px; line-height: 1.82; color: var(--text-body);
  font-weight: 300; margin: 0 0 20px 24px;
}
.content-wrap li { margin-bottom: 8px; }
.content-wrap blockquote {
  border-left: 3px solid var(--green-accent);
  padding: 12px 24px;
  margin: 32px 0;
  background: rgba(62,207,142,0.05);
  border-radius: 0 8px 8px 0;
}
.content-wrap blockquote p {
  font-style: italic; color: var(--teal-deep);
  font-size: 18px; margin-bottom: 0;
}
.content-wrap img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(13,74,71,0.12);
  margin: 32px 0;
}
.content-wrap hr {
  border: none; border-top: 1px solid var(--border);
  margin: 48px 0;
}
.content-wrap code {
  font-family: 'DM Mono', monospace;
  font-size: 13px; background: rgba(13,74,71,0.06);
  padding: 2px 6px; border-radius: 4px; color: var(--teal-deep);
}
.content-wrap pre {
  background: var(--dark); border-radius: 10px;
  padding: 24px; margin: 32px 0; overflow-x: auto;
}
.content-wrap pre code {
  background: none; color: var(--green-accent);
  font-size: 14px; padding: 0;
}

/* PAGE TITLE BLOCK (static pages)
   ========================================================================== */
.page-title-block {
  max-width: 760px; margin: 0 auto;
  padding: 112px 40px 24px;
}
.page-title-block .post-title {
  margin-bottom: 0;
}
.page-feature-image {
  margin-top: 24px;
}
.page-feature-image img {
  width: 100%; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(13,74,71,0.14);
  display: block;
}
/* When title is shown, content sits close beneath it */
.content-wrap--after-title {
  padding-top: 32px;
}
/* When no title, content clears the fixed nav on its own */
.content-wrap--no-title {
  padding-top: 96px;
}

/* POST META / HEADER
   ========================================================================== */
.post-header {
  max-width: 760px; margin: 0 auto;
  padding: 120px 40px 0;
}
.post-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-bright);
  border: 1px solid rgba(26,122,110,0.3);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 20px;
}
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900; color: var(--teal-deep); line-height: 1.1;
  margin-bottom: 20px;
}
.post-excerpt {
  font-size: 19px; font-weight: 300; line-height: 1.65;
  color: var(--text-muted); margin-bottom: 28px;
}
.post-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--text-muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.post-meta-dot { width: 4px; height: 4px; background: var(--green-accent); border-radius: 50%; }
.post-feature-image {
  width: 100%; max-width: 900px; margin: 0 auto 0;
  display: block;
}
.post-feature-image img {
  width: 100%; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(13,74,71,0.14);
  display: block;
}

/* BLOG INDEX — CARD GRID
   ========================================================================== */
.blog-header {
  background: var(--teal-deep);
  padding: 120px 80px 64px;
  text-align: center;
}
.blog-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 900; color: white; line-height: 1.1;
  margin-bottom: 16px;
}
.blog-header p {
  font-size: 18px; color: rgba(255,255,255,0.6);
  font-weight: 300; max-width: 500px; margin: 0 auto;
}
.blog-grid-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 72px 80px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: white; border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden; transition: all 0.3s;
  display: flex; flex-direction: column;
  text-decoration: none;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(13,74,71,0.1);
}
.post-card-image {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
}
.post-card-image-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-bright));
  display: flex; align-items: center; justify-content: center;
}
.post-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post-card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 10px;
}
.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--teal-deep);
  line-height: 1.3; margin-bottom: 12px;
}
.post-card-excerpt {
  font-size: 14px; line-height: 1.7; color: var(--text-muted);
  font-weight: 300; margin-bottom: 20px; flex: 1;
}
.post-card-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 16px;
}

/* PAGINATION
   ========================================================================== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 48px 80px;
  border-top: 1px solid var(--border);
}
.pagination a, .pagination span {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; padding: 8px 16px;
  border-radius: 6px; transition: all 0.2s;
}
.pagination a:hover { background: var(--off-white); color: var(--teal-deep); }
.pagination .current {
  background: var(--teal-deep); color: white;
}

/* KOENIG EDITOR — required Ghost editor classes
   ========================================================================== */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 40px);
  margin-right: calc(50% - 50vw + 40px);
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.kg-image { max-width: 100%; }
.kg-image-card { margin: 32px 0; }
.kg-image-card img { border-radius: 12px; width: 100%; }
.kg-gallery-card { margin: 32px 0; }
.kg-gallery-container { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-gallery-image img { display: block; width: 100%; border-radius: 8px; }
.kg-video-card { margin: 32px 0; }
.kg-video-card video { width: 100%; border-radius: 12px; }
.kg-embed-card { margin: 32px 0; }
.kg-bookmark-card { margin: 32px 0; }
.kg-bookmark-container {
  display: flex; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; text-decoration: none;
  color: var(--text-body); transition: box-shadow 0.2s;
}
.kg-bookmark-container:hover { box-shadow: 0 8px 24px rgba(13,74,71,0.1); }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-weight: 600; color: var(--teal-deep); margin-bottom: 6px; }
.kg-bookmark-description { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card {
  margin: 32px 0; padding: 20px 24px;
  border-radius: 10px; display: flex; gap: 16px;
  background: rgba(62,207,142,0.07); border: 1px solid rgba(62,207,142,0.2);
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text { font-size: 16px; line-height: 1.7; color: var(--text-body); }
.kg-toggle-card { margin: 32px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.kg-toggle-heading-text { font-weight: 600; padding: 16px 20px; cursor: pointer; }
.kg-toggle-content { padding: 0 20px 16px; font-size: 15px; line-height: 1.7; }
.kg-divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.kg-button-card { margin: 32px 0; text-align: center; }
.kg-button-card a {
  display: inline-flex; background: var(--teal-deep); color: white;
  padding: 14px 28px; border-radius: 6px; font-weight: 600;
  font-size: 15px; text-decoration: none; transition: background 0.2s;
}
.kg-button-card a:hover { background: var(--teal-bright); }

/* ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 14px 32px; }
  footer { padding: 40px 32px; }
  .blog-header { padding: 120px 32px 48px; }
  .blog-grid-wrap { padding: 48px 32px; }
  .post-header, .content-wrap { padding-left: 32px; padding-right: 32px; }
  .post-feature-image { padding: 0 32px; }
}
@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  footer { padding: 32px 20px; }
  .blog-header { padding: 100px 20px 40px; }
  .blog-grid-wrap { padding: 32px 20px; }
  .post-header { padding: 100px 20px 0; }
  .content-wrap { padding: 32px 20px 60px; }
  .post-feature-image { padding: 0 20px; }
}
