/* ==========================================================================
   Gamerframe — Dark Cyberpunk Theme
   Single stylesheet for all pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg: #0a0a0a;
  --surface: #111118;
  --border: #1a1a2e;
  --text: #ffffff;
  --muted: #888888;
  --primary: #00ff55;
  --accent: #ff9500;
  --info: #22ccee;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00cc44;
}

/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */
::selection {
  background: rgba(0, 255, 85, 0.30);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
}

a, a:visited, a:active {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  z-index: 1000;
  padding: 20px 30px;
}

.nav-logo {
  font-family: var(--font-mono);
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 85, 0.25);
  font-size: 16px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 15px 30px;
  gap: 15px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-mobile a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 80px 30px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.75);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(42px, 8vw, 72px);
  letter-spacing: 8px;
  margin-bottom: 15px;
  color: var(--text);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.hero-title .highlight {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 255, 85, 0.5), 0 0 60px rgba(0, 255, 85, 0.2);
}

.hero-tagline {
  font-family: var(--font-mono);
  color: var(--primary);
  opacity: 1;
  letter-spacing: 6px;
  font-size: clamp(14px, 2vw, 18px);
  text-shadow: 0 0 15px rgba(0, 255, 85, 0.4), 0 0 40px rgba(0, 255, 85, 0.15);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
}

.btn-primary {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-primary:hover {
  background: rgba(0, 255, 85, 0.15);
  box-shadow: 0 0 20px rgba(0, 255, 85, 0.2);
  transform: translateY(-2px);
}

.btn-accent {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-accent:hover {
  background: rgba(255, 149, 0, 0.15);
  box-shadow: 0 0 20px rgba(255, 149, 0, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid #333;
  color: var(--muted);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--accent);
  color: var(--bg);
  font-weight: bold;
  border: none;
}

.btn-solid:hover {
  background: #ffab33;
  box-shadow: 0 0 25px rgba(255, 149, 0, 0.3);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Featured Grid
   -------------------------------------------------------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(26, 26, 46, 0.15);
  border-top: 1px solid var(--border);
}

.featured-item {
  background: var(--bg);
  padding: clamp(25px, 3vw, 40px);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-item:hover {
  transform: translateY(-2px);
}

.featured-item.glow-green:hover {
  background: rgba(0, 255, 85, 0.05);
  box-shadow: inset 0 0 30px rgba(0, 255, 85, 0.08), 0 0 20px rgba(0, 255, 85, 0.1);
}

.featured-item.glow-orange:hover {
  background: rgba(255, 149, 0, 0.05);
  box-shadow: inset 0 0 30px rgba(255, 149, 0, 0.08), 0 0 20px rgba(255, 149, 0, 0.1);
}

.featured-item.glow-blue:hover {
  background: rgba(34, 204, 238, 0.05);
  box-shadow: inset 0 0 30px rgba(34, 204, 238, 0.08), 0 0 20px rgba(34, 204, 238, 0.1);
}

.featured-icon {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.featured-title {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text);
  margin-bottom: 8px;
}

.featured-desc {
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--muted);
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Content Pages
   -------------------------------------------------------------------------- */
.page-header {
  padding: 40px 30px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-mono);
  letter-spacing: 4px;
  font-size: clamp(24px, 4vw, 36px);
}

.page-header .subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 85, 0.5);
}

.card-image {
  aspect-ratio: 16 / 9;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.card-title-link {
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color 0.3s, text-shadow 0.3s;
}

.card-title-link:visited {
  color: var(--text) !important;
}

.card-title-link:hover {
  color: var(--primary) !important;
  text-shadow: 0 0 15px rgba(0, 255, 85, 0.3);
}

.card-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(255, 149, 0, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 149, 0, 0.3);
}

.badge-primary {
  background: rgba(0, 255, 85, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 85, 0.3);
}

/* --------------------------------------------------------------------------
   Blog Post
   -------------------------------------------------------------------------- */
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 30px;
  line-height: 1.8;
  font-size: 18px;
}

.post-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-mono);
  color: var(--primary);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.post-content a,
.post-content a:visited,
.post-content a:active {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--primary);
  text-decoration: none;
}

.post-content code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  color: var(--muted);
  margin: 1.5em 0;
}

.post-content img {
  max-width: 100%;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Ad Slot
   -------------------------------------------------------------------------- */
.ad-slot {
  margin: 30px 0;
  padding: 20px;
  text-align: center;
  min-height: 90px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 15px 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: #555;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-info    { color: var(--info); }
.text-muted   { color: var(--muted); }

.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}
