/* ═══════════════════════════════════════════
   PRODUCTION BETS — Custom Ghost Theme
   Colors: Black #0a0a0a / Red #cc0000 / White
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --red: #cc0000;
  --red-dark: #8b0000;
  --red-glow: rgba(204, 0, 0, 0.3);
  --white: #ffffff;
  --gray-100: #f0f0f0;
  --gray-300: #cccccc;
  --gray-500: #888888;
  --gray-700: #444444;
  --gray-900: #1a1a1a;
  --gold: #FFD700;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background: var(--bg-primary);
  color: var(--gray-300);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: all 0.2s; }
a:hover { color: #ff3333; }

/* ── HEADER / NAV ───────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(204, 0, 0, 0.2);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-logo span { color: var(--red); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--red-glow);
}
.mobile-menu-btn { display: none; }

/* ── HERO ────────────────────────────────── */

.hero {
  padding: 160px 2rem 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--red), #ff4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: 16px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--red-glow);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  display: inline-block;
  border: 2px solid var(--gray-700);
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── STATS BAR ───────────────────────────── */

.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 2rem;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
}
.stat-number span { color: var(--red); }
.stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ── FEATURES ────────────────────────────── */

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.feature-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; }

/* ── PRICING / COMPARISON ────────────────── */

.pricing {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
}

.price-card.vip {
  border-color: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price-card h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin: 1rem 0;
}
.price-amount span { font-size: 1rem; color: var(--gray-500); font-weight: 400; }

.price-features { list-style: none; margin: 1.5rem 0; }
.price-features li {
  padding: 8px 0;
  color: var(--gray-300);
  font-size: 0.95rem;
  border-bottom: 1px solid #1a1a1a;
}
.price-features li:last-child { border: none; }

/* ── SUBSCRIBE SECTION ───────────────────── */

.subscribe-section {
  background: var(--bg-secondary);
  padding: 80px 2rem;
  text-align: center;
  border-top: 1px solid #222;
}

.subscribe-form {
  max-width: 500px;
  margin: 2rem auto 0;
  display: flex;
  gap: 0.75rem;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  border: 2px solid #333;
  background: var(--bg-primary);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input[type="email"]:focus { border-color: var(--red); }
.subscribe-form input[type="email"]::placeholder { color: var(--gray-700); }

.subscribe-form button {
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.subscribe-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--red-glow);
}

/* ── POSTS / BLOG ────────────────────────── */

.posts-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s;
  display: block;
}
.post-card:hover {
  border-color: var(--red);
  transform: translateX(4px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.post-tag {
  background: var(--red);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-date {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.post-card h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-excerpt {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── POST CARDS WITH FEATURED IMAGES ────── */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.posts-grid .post-card-featured:first-child {
  grid-column: 1 / -1;
}

.post-card-featured {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: block;
}

.post-card-featured:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(204, 0, 0, 0.15);
}

.post-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.posts-grid .post-card-featured:first-child .post-image {
  height: 280px;
}

.post-image-placeholder {
  background: linear-gradient(135deg, #1a1a2e, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.post-tag-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-card-content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.post-card-featured .post-date {
  color: var(--gray-500);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.post-card-featured h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.posts-grid .post-card-featured:first-child h3 {
  font-size: 1.4rem;
}

.post-card-featured .post-excerpt {
  color: var(--gray-500);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-image,
  .posts-grid .post-card-featured:first-child .post-image {
    height: 180px;
  }
}

/* ── SINGLE POST ─────────────────────────── */

.post-content {
  max-width: 750px;
  margin: 0 auto;
  padding: 140px 2rem 80px;
}

.post-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-content .post-body {
  color: var(--gray-300);
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content .post-body h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.post-content .post-body h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.post-content .post-body p { margin-bottom: 1.25rem; }
.post-content .post-body strong { color: var(--white); }
.post-content .post-body ul, .post-content .post-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.post-content .post-body li { margin-bottom: 0.5rem; }

.post-content .post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}
.post-content .post-body th {
  background: var(--red-dark);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-content .post-body td {
  padding: 10px 16px;
  border-bottom: 1px solid #222;
}

/* ── FOOTER ──────────────────────────────── */

.site-footer {
  border-top: 1px solid #222;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--gray-500); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

.footer-copy { color: var(--gray-700); font-size: 0.8rem; }

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-sub { font-size: 1rem; }
  .hero { padding: 130px 1.5rem 60px; }
  .stats-inner { gap: 1.5rem; }
  .stat-number { font-size: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .nav-links { 
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid #222;
    padding: 1rem 1.5rem;
    gap: 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid #222; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-inner { position: relative; }
  .mobile-menu-btn { 
    display: flex !important; 
    background: none; border: none; cursor: pointer; 
    flex-direction: column; gap: 5px; padding: 8px;
  }
  .mobile-menu-btn span {
    display: block; width: 24px; height: 2px; background: var(--gray-300);
    transition: transform 0.3s, opacity 0.3s;
  }
  .mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .features-grid { grid-template-columns: 1fr; }
  .post-content h1 { font-size: 1.8rem; }
}

/* ── GHOST CONTENT WIDTH CLASSES ──────────── */

.kg-width-wide {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.kg-width-full img,
.kg-width-wide img {
  width: 100%;
}

/* ── GHOST PORTAL OVERRIDES ──────────────── */

.gh-portal-triggerbtn-iframe {
  bottom: 24px !important;
  right: 24px !important;
}
