/*
Theme Name: xBot Theme
Theme URI: https://playwithxbot.com
Author: xBot Team
Description: Tema oficial do xBot — automação para Xbox Cloud Gaming.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: xbot-theme
*/

/* ════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
════════════════════════════════════════════════════════════════ */
:root {
  --bg:         #0f0f0f;
  --surface:    #1a1a1a;
  --card:       #1e1e1e;
  --card-hover: #232323;
  --border:     #2d2d2d;
  --border-lt:  #3d3d3d;
  --green:      #52b043;
  --green-dk:   #107c10;
  --green-lt:   #5ecb54;
  --green-dim:  #2a5c24;
  --text:       #ffffff;
  --muted:      #aaaaaa;
  --dim:        #666666;
  --red:        #c42b1c;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.7);
  --glow:       0 0 24px rgba(82,176,67,.25);

  --transition: .2s ease;

  --container:  1200px;
  --gap:        24px;

  --header-h:   64px;
}

/* ════════════════════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-lt); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar             { width: 8px; height: 8px; }
::-webkit-scrollbar-track       { background: var(--bg); }
::-webkit-scrollbar-thumb       { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ════════════════════════════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════════════════════════════ */
h1,h2,h3,h4,h5,h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--muted); line-height: 1.75; }

.section-tag {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green-lt);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title   { color: var(--text); margin-bottom: 12px; }
.section-sub     { color: var(--muted); max-width: 600px; font-size: 1.05rem; }
.section-header  { margin-bottom: 56px; }

.text-center { text-align: center; }
.text-green  { color: var(--green); }

/* ════════════════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}
.section--sm { padding: 64px 0; }
.section--lg { padding: 128px 0; }

/* ════════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-lt);
  color: #fff;
  box-shadow: var(--glow);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover {
  background: rgba(82,176,67,.1);
  color: var(--green-lt);
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--card-hover);
  border-color: var(--border-lt);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ════════════════════════════════════════════════════════════════
   HEADER / NAVIGATION
════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(15,15,15,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(15,15,15,.95);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.site-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo:hover { color: var(--green-lt); }
.site-logo span { color: var(--text); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.current { color: var(--text); background: rgba(255,255,255,.06); }

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--muted);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.mobile-nav .btn { margin-top: 8px; justify-content: center; }

/* Body offset for fixed header */
body { padding-top: var(--header-h); }

/* ════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Background grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(82,176,67,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,176,67,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* Radial glow center */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(82,176,67,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
}
.hero-tag.hl { border-color: var(--green-dim); color: var(--green-lt); }

.hero-title {
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--dim);
}
.hero-note svg { display: inline; vertical-align: middle; margin-right: 4px; }

/* App mockup placeholder */
.hero-visual {
  position: relative;
}
.app-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow);
  aspect-ratio: 16/10;
}
.mockup-bar {
  height: 40px;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #c42b1c; }
.mockup-dot:nth-child(2) { background: #f7cc00; }
.mockup-dot:nth-child(3) { background: var(--green); }
.mockup-title-bar {
  flex: 1;
  height: 20px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 16px;
}
.mockup-body {
  display: flex;
  height: calc(100% - 40px);
}
.mockup-sidebar {
  width: 180px;
  border-right: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-item {
  height: 28px;
  background: var(--card);
  border-radius: 4px;
}
.mockup-item.active { background: var(--green-dk); }
.mockup-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-row {
  height: 14px;
  background: var(--card);
  border-radius: 3px;
}
.mockup-row.short { width: 60%; }
.mockup-row.med   { width: 80%; }
.mockup-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.mockup-btn {
  height: 32px;
  flex: 1;
  background: var(--green-dk);
  border-radius: 4px;
}
.mockup-btn.ghost { background: var(--card); }

/* ════════════════════════════════════════════════════════════════
   FEATURES
════════════════════════════════════════════════════════════════ */
.section-features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px; height: 48px;
  background: var(--green-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.875rem;
  line-height: 1.65;
}
.feature-badge {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green-lt);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 10px;
}

/* ════════════════════════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════════════════════════ */
.howitworks-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
/* Connecting line */
.howitworks-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--green-dim), var(--green-dim));
  border-top: 2px dashed var(--green-dim);
}

.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-dk);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: var(--glow);
}
.step h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}
.step p { font-size: 0.875rem; }

/* ════════════════════════════════════════════════════════════════
   PRICING
════════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: flex;
  gap: var(--gap);
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  width: 280px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: var(--green);
  box-shadow: var(--glow);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.pricing-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 4px;
}
.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.pricing-amount.free { font-size: 2rem; color: var(--green); }
.pricing-period {
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 8px;
}
.pricing-save {
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 24px;
}
.pricing-save s { color: var(--dim); margin-right: 4px; }

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-features li.disabled {
  color: var(--dim);
  text-decoration: line-through;
}
.pricing-features li.disabled::before { content: '✕'; color: var(--dim); }

/* ════════════════════════════════════════════════════════════════
   FAQ
════════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--green-dim); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--green-lt); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 400;
  color: var(--green);
  transition: transform .3s, background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--green-dim); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════════════════════════ */
.section-cta {
  background: linear-gradient(135deg, var(--green-dk) 0%, #0a5508 100%);
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.section-cta .container { position: relative; z-index: 1; }
.section-cta h2 { color: #fff; }
.section-cta p  { color: rgba(255,255,255,.75); }
.cta-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.btn-white {
  background: #fff;
  color: var(--green-dk);
  font-weight: 800;
}
.btn-white:hover { background: #f0f0f0; color: var(--green-dk); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ════════════════════════════════════════════════════════════════
   BLOG — INDEX (lista de artigos)
════════════════════════════════════════════════════════════════ */
.blog-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 48px;
  text-align: center;
}
.blog-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.blog-hero p  { max-width: 500px; margin: 0 auto 28px; }

.blog-search {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.blog-search:focus-within { border-color: var(--green); }
.blog-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.9rem;
  outline: none;
}
.blog-search input::placeholder { color: var(--dim); }
.blog-search button {
  background: var(--green);
  border: none;
  color: #fff;
  padding: 12px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}
.blog-search button:hover { background: var(--green-lt); }

/* Category pills */
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.blog-cat {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.blog-cat:hover,
.blog-cat.current-cat { background: var(--green); border-color: var(--green); color: #fff; }

/* Articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 56px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-lt);
}

.article-thumb {
  aspect-ratio: 16/9;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.04); }

/* Placeholder quando não tem imagem */
.article-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--surface), var(--card));
}

.article-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
  margin-bottom: 8px;
}

.article-card h2,
.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
.article-card h2 a,
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h2 a:hover,
.article-card h3 a:hover { color: var(--green); }

.article-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--dim);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.article-meta a {
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}
.article-meta a:hover { color: var(--green-lt); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
}
.pagination a:hover,
.pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════
   BLOG — SINGLE POST
════════════════════════════════════════════════════════════════ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.post-header { margin-bottom: 36px; }
.post-cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}
.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  margin-bottom: 16px;
}
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--dim);
}
.post-meta-row span { display: flex; align-items: center; gap: 4px; }

.post-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/8;
  background: var(--card);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Post content typography */
.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}
.post-content h2 {
  font-size: 1.6rem;
  color: var(--text);
  margin: 40px 0 16px;
}
.post-content h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 32px 0 12px;
}
.post-content p { margin-bottom: 20px; }
.post-content ul,
.post-content ol {
  margin: 0 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { color: var(--muted); }
.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.post-content code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85em;
  color: var(--green-lt);
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
.post-content pre {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}
.post-content a { color: var(--green); }
.post-content strong { color: var(--text); font-weight: 700; }
.post-content img { border-radius: var(--radius); margin: 16px 0; }
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--transition);
}
.post-tag:hover { border-color: var(--green); color: var(--green); }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar-cats { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition);
}
.sidebar-cats a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-cats a span { color: var(--dim); }

.recent-posts { display: flex; flex-direction: column; gap: 12px; }
.recent-post a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color var(--transition);
}
.recent-post a:hover { color: var(--green); }
.recent-post-date { font-size: 0.72rem; color: var(--dim); margin-top: 2px; }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ════════════════════════════════════════════════════════════════
   GENERIC PAGE (page.php)
════════════════════════════════════════════════════════════════ */
.page-header-simple {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
}
.page-header-simple h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.page-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 0 96px;
}
.page-content h2 { font-size: 1.5rem; color: var(--text); margin: 36px 0 12px; }
.page-content h3 { font-size: 1.15rem; color: var(--text); margin: 24px 0 8px; }
.page-content p  { color: var(--muted); margin-bottom: 16px; line-height: 1.8; }
.page-content ul { list-style: disc; margin: 0 0 16px 24px; }
.page-content ul li { color: var(--muted); margin-bottom: 6px; }
.page-content a  { color: var(--green); }
.page-content strong { color: var(--text); }
.page-content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ════════════════════════════════════════════════════════════════
   404 PAGE
════════════════════════════════════════════════════════════════ */
.page-404 {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-404 .code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--green-dim);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h1 { font-size: 2rem; margin-bottom: 12px; }
.page-404 p  { max-width: 400px; margin: 0 auto 32px; }

/* ════════════════════════════════════════════════════════════════
   ACCOUNT PAGE
════════════════════════════════════════════════════════════════ */
.account-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  padding: 56px 0 96px;
}
.account-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
}
.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover,
.account-nav a.active {
  background: rgba(82,176,67,.08);
  color: var(--green);
}
.account-panel { display: flex; flex-direction: column; gap: 20px; }
.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.account-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dim);
  color: var(--green-lt);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}
.tier-badge.free { background: var(--border); color: var(--muted); }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--dim); }
.footer-bottom a { color: var(--dim); text-decoration: underline; }
.footer-bottom a:hover { color: var(--muted); }

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS (scroll-triggered)
════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner        { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual       { order: -1; max-width: 480px; margin: 0 auto; }
  .hero-sub          { max-width: 100%; }
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .post-layout       { grid-template-columns: 1fr; }
  .sidebar           { position: static; }
  .account-grid      { grid-template-columns: 1fr; }
  .account-nav       { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .section     { padding: 64px 0; }
  .section--lg { padding: 80px 0; }

  .site-nav, .nav-cta { display: none; }
  .nav-toggle         { display: flex; }

  .features-grid     { grid-template-columns: 1fr; }
  .howitworks-steps  { grid-template-columns: 1fr; }
  .howitworks-steps::before { display: none; }
  .pricing-grid      { flex-direction: column; align-items: center; }
  .pricing-card      { width: 100%; max-width: 360px; }
  .articles-grid     { grid-template-columns: 1fr; }
  .related-grid      { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom     { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ════════════════════════════════════════════════════════════════
   WORDPRESS ALIGNMENT CLASSES (editor)
════════════════════════════════════════════════════════════════ */
.aligncenter { display: block; margin: 0 auto; }
.alignright  { float: right; margin: 0 0 16px 24px; }
.alignleft   { float: left;  margin: 0 24px 16px 0; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 0.78rem; color: var(--dim); text-align: center; margin-top: 6px; }
