/* ============================================
   8-Bit RAGE — Brand Stylesheet
   Colors: Deep Purple #1a0a2e | Red #e53935
   Orange #ff8c00 | Gold #ffd700
   ============================================ */

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

:root {
  --purple-dark: #1a0a2e;
  --purple-mid: #2d1050;
  --red: #e53935;
  --red-glow: #ff5252;
  --orange: #ff8c00;
  --gold: #ffd700;
  --white: #f5f0ff;
  --gray: #9e9ab8;
  --bg-dark: #0d041a;
  --bg-card: #15082a;
  --pixel-font: 'Press Start 2P', monospace;
  --body-font: 'Inter', system-ui, sans-serif;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--body-font);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

a { color: var(--red-glow); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

img { max-width: 100%; height: auto; }

.pixel-font { font-family: var(--pixel-font); letter-spacing: 0.05em; }

/* --- HEADER --- */
.site-header {
  background: rgba(13, 4, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--purple-mid);
  position: sticky; top: 0; z-index: 100;
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 16px; }
.logo { font-family: var(--pixel-font); font-size: 1.1rem; display: flex; gap: 4px; align-items: baseline; }
.logo-8bit { color: var(--white); }
.logo-rage { background: var(--red); color: var(--white); padding: 2px 6px; }
.main-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.main-nav a { color: var(--gray); font-size: 0.9rem; font-weight: 600; }
.main-nav a:hover { color: var(--orange); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 60px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, var(--purple-mid) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(229, 57, 53, 0.15) 0%, transparent 50%),
              linear-gradient(180deg, var(--bg-dark) 0%, #1a0a2e 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

/* Mascot Emoji */
.hero-mascot { margin-bottom: 10px; }
.angry-emoji {
  width: 100px; height: 120px;
  position: relative;
  margin: 0 auto;
}
.emoji-face {
  width: 80px; height: 80px;
  background: var(--red);
  border-radius: 50%;
  position: absolute; bottom: 0; left: 10px;
  box-shadow: 0 0 30px rgba(229,57,53,0.5);
}
.emoji-eyebrow {
  width: 28px; height: 6px;
  background: #000;
  position: absolute; top: 20px;
  border-radius: 3px;
  transform: rotate(-15deg);
}
.emoji-eyebrow.left { left: 8px; }
.emoji-eyebrow.right { right: 8px; transform: rotate(15deg); }
.emoji-mouth {
  width: 36px; height: 18px;
  border: 3px solid #000;
  border-top: none;
  border-radius: 0 0 20px 20px;
  position: absolute; bottom: 18px; left: 22px;
  background: #600;
  overflow: hidden;
}
.emoji-mouth::after {
  content: '';
  position: absolute; top: 0; left: 4px;
  width: 28px; height: 3px;
  background: #fff;
  border-radius: 0 0 4px 4px;
}
.emoji-flames {
  position: absolute; top: 0; left: 15px;
  width: 70px; height: 45px;
}
.flame {
  position: absolute; bottom: 0;
  width: 14px;
  background: linear-gradient(to top, var(--red), var(--orange), var(--gold));
  border-radius: 8px 8px 2px 2px;
  animation: flicker 0.3s ease-in-out infinite alternate;
}
.flame.f1 { height: 30px; left: 10px; animation-delay: 0s; }
.flame.f2 { height: 40px; left: 24px; animation-delay: 0.1s; }
.flame.f3 { height: 35px; left: 38px; animation-delay: 0.2s; }
.flame.f4 { height: 28px; left: 50px; animation-delay: 0.15s; }
@keyframes flicker {
  0% { transform: scaleY(1) scaleX(1); opacity: 0.9; }
  100% { transform: scaleY(1.15) scaleX(0.9); opacity: 1; }
}

.hero-title { font-size: 2rem; color: var(--white); line-height: 1.4; }
.hero-title .block { display: block; }
.hero-title .rage-box { display: inline-block; background: var(--red); padding: 4px 14px; margin-top: 6px; }

.hero-tagline { font-size: 1.15rem; color: var(--gray); max-width: 500px; }
.hero-tagline strong { color: var(--orange); }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--body-font); font-size: 1rem; font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-youtube { background: var(--red); color: #fff; box-shadow: 0 4px 15px rgba(229,57,53,0.4); }
.btn-youtube:hover { background: var(--red-glow); transform: translateY(-1px); color: #fff; }
.btn-subscribe { background: var(--orange); color: #000; box-shadow: 0 4px 15px rgba(255,140,0,0.4); }
.btn-subscribe:hover { background: var(--gold); transform: translateY(-1px); color: #000; }
.btn-outline { background: transparent; border: 2px solid var(--red); color: var(--red-glow); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-icon { font-size: 1.1rem; }

.hero-socials { display: flex; gap: 16px; margin-top: 10px; }
.social-link { color: var(--gray); font-weight: 600; font-size: 0.85rem; padding: 8px 16px; border: 1px solid var(--purple-mid); border-radius: 6px; transition: all 0.2s; }
.social-link:hover { border-color: var(--orange); color: var(--orange); }

/* --- SECTIONS --- */
.section { padding: 80px 0; }
.section:nth-child(even) { background: rgba(21, 8, 42, 0.5); }
.section-title { font-size: 1.3rem; text-align: center; margin-bottom: 12px; color: var(--orange); }
.section-sub { text-align: center; color: var(--gray); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- VIDEO GRID --- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-mid);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--red); }
.video-card a { color: var(--white); text-decoration: none; }
.video-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--purple-mid);
  display: flex; align-items: center; justify-content: center;
}
.video-card h3 { padding: 16px; font-size: 0.95rem; font-weight: 600; }
.video-card .video-meta { padding: 0 16px 16px; font-size: 0.8rem; color: var(--gray); }

/* --- BLOG GRID --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-mid);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--red); }
.blog-date { font-size: 0.8rem; color: var(--orange); margin-bottom: 8px; font-weight: 600; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--white); }
.blog-card h3 a:hover { color: var(--orange); }
.blog-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 12px; }
.read-more { font-weight: 700; font-size: 0.9rem; }

/* --- GEAR --- */
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.gear-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-mid);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s;
}
.gear-card:hover { transform: translateY(-4px); }
.gear-icon { font-size: 2.5rem; margin-bottom: 16px; }
.gear-card h3 { font-size: 1rem; margin-bottom: 8px; }
.gear-card p { color: var(--gray); font-size: 0.85rem; margin-bottom: 16px; }

/* --- SUBSCRIBE --- */
.subscribe-section { padding: 60px 0 100px; }
.subscribe-card {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-dark));
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(229,57,53,0.15);
}
.subscribe-card h2 { font-size: 1.1rem; margin-bottom: 12px; color: var(--orange); }
.subscribe-card p { color: var(--gray); margin-bottom: 24px; font-size: 0.95rem; }
.subscribe-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--purple-mid);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--body-font);
  font-size: 1rem;
}
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--orange); }
.subscribe-success { padding: 20px; }
.subscribe-success .success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.subscribe-success h3 { color: #4caf50; margin-bottom: 8px; }
.subscribe-success p { color: var(--gray); }

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--purple-mid);
  padding: 50px 0 30px;
  text-align: center;
}
.footer-brand { font-family: var(--pixel-font); font-size: 0.9rem; margin-bottom: 8px; }
.footer-tagline { color: var(--gray); font-size: 0.85rem; margin-bottom: 20px; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: var(--gray); font-size: 0.85rem; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { color: #555; font-size: 0.75rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 40px 0 60px; }
  .hero-title { font-size: 1.5rem; }
  .hero-tagline { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .section { padding: 50px 0; }
  .video-grid, .blog-grid, .gear-grid { grid-template-columns: 1fr; }
  .subscribe-card { padding: 30px 20px; }
  .site-header .container { justify-content: center; }
}

/* --- BLOG POST PAGE --- */
.blog-post { max-width: 750px; margin: 60px auto; padding: 0 24px; }
.blog-post h1 { font-family: var(--pixel-font); font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.blog-post .post-date { color: var(--orange); font-weight: 600; margin-bottom: 30px; }
.blog-post h2 { font-family: var(--pixel-font); font-size: 0.95rem; color: var(--orange); margin: 40px 0 16px; }
.blog-post p { margin-bottom: 18px; color: var(--white); }
.blog-post ul, .blog-post ol { margin: 16px 0 24px 24px; }
.blog-post li { margin-bottom: 8px; }
.blog-post blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(229,57,53,0.08);
  border-radius: 0 8px 8px 0;
  color: var(--gray);
  font-style: italic;
}
.blog-post img { border-radius: 12px; margin: 24px 0; }

/* About page */
.about-page { max-width: 750px; margin: 60px auto; padding: 0 24px; }
.about-page h1 { font-family: var(--pixel-font); font-size: 1.5rem; color: var(--white); margin-bottom: 24px; }
.about-page p { margin-bottom: 18px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin: 40px 0; }
.about-kid { background: var(--bg-card); border: 1px solid var(--purple-mid); border-radius: 12px; padding: 24px; text-align: center; }
.about-kid .kid-icon { font-size: 2rem; margin-bottom: 8px; }
.about-kid h3 { font-size: 0.95rem; color: var(--orange); margin-bottom: 4px; }
.about-kid p { font-size: 0.8rem; color: var(--gray); }
