@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700&family=Fira+Code:wght@300;400&display=swap');

:root {
  --bg-primary: #0a0d12;
  --bg-secondary: #0f1420;
  --bg-card: #131928;
  --accent-primary: #00e5ff;
  --accent-secondary: #ff3d6b;
  --accent-green: #00ff88;
  --text-primary: #e8eaf0;
  --text-secondary: #8892a4;
  --text-muted: #4a5568;
  --border: rgba(0,229,255,0.12);
  --glow: 0 0 20px rgba(0,229,255,0.3);
  --glow-red: 0 0 20px rgba(255,61,107,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Background grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,13,18,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

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

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: var(--glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--accent-secondary); }

nav { display: flex; gap: 0.2rem; }

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--accent-primary);
  background: rgba(0,229,255,0.06);
}

.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--accent-primary); border-radius: 2px; transition: all 0.3s; }

/* HERO */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255,61,107,0.06) 0%, transparent 50%),
    var(--bg-primary);
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--accent-primary);
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(0,229,255,0); }
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}

.hero h1 .line-cyan { color: var(--accent-primary); text-shadow: var(--glow); }
.hero h1 .line-red { color: var(--accent-secondary); text-shadow: var(--glow-red); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #000;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,229,255,0.3);
}

.btn-primary:hover { background: #33eaff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,229,255,0.4); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.btn-secondary:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: rgba(0,229,255,0.05); }

/* STATS BAR */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* MAIN CONTENT */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section { padding: 5rem 0; }

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title span { color: var(--accent-primary); }

.section-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 3rem; }

/* CATEGORIES GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0,229,255,0.04));
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); box-shadow: var(--glow); }
.cat-card:hover::before { opacity: 1; }

.cat-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.cat-name { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.cat-count { font-size: 0.8rem; color: var(--text-muted); font-family: 'Fira Code', monospace; }

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.article-card:hover { transform: translateY(-5px); border-color: rgba(0,229,255,0.4); box-shadow: 0 12px 40px rgba(0,0,0,0.4), var(--glow); }

.article-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #131928 0%, #1a2035 100%);
  position: relative;
}

.article-card-img-placeholder {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #131928, #1a2035);
}

.article-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }

.article-cat-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: 'Fira Code', monospace;
  color: var(--accent-primary);
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.article-card:hover h3 { color: var(--accent-primary); }

.article-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }

.article-card-footer {
  padding: 0.8rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}

.read-more {
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ARTICLE PAGE */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.article-main { min-width: 0; }

.article-header { margin-bottom: 2rem; }

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

.article-meta .tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--accent-primary);
}

.article-meta .date { font-size: 0.85rem; color: var(--text-muted); font-family: 'Fira Code', monospace; }

.article-main h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.article-main .intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.article-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}

.article-img-placeholder {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #131928, #1a2035);
}

.article-body h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-body p { margin-bottom: 1.2rem; color: var(--text-secondary); line-height: 1.8; }

.article-body ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.article-body ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.article-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* TABLE */
.game-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

.game-table th {
  background: rgba(0,229,255,0.1);
  color: var(--accent-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.game-table td {
  padding: 11px 16px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.game-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.game-table tr:hover td { background: rgba(0,229,255,0.04); }

/* SIDEBAR */
.sidebar { position: sticky; top: 90px; height: fit-content; }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-article {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-article:last-child { border-bottom: none; }
.sidebar-article:hover .sidebar-article-title { color: var(--accent-primary); }

.sidebar-article-icon { font-size: 1.5rem; flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-radius: 8px; }
.sidebar-article-title { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.3; transition: color 0.2s; }

/* CATEGORY TAGS */
.cat-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cat-tag {
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.cat-tag:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

/* BREADCRUMB */
.breadcrumb {
  padding: 1.2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  position: relative;
  z-index: 1;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb span { color: var(--accent-primary); }

/* FOOTER */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo { font-size: 1.5rem; margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.footer-col h5 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}

.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-primary); }

/* POLICY PAGES */
.policy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

.policy-content h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.policy-content .date { color: var(--text-muted); font-family: 'Fira Code', monospace; font-size: 0.85rem; margin-bottom: 2rem; }

.policy-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.8rem;
}

.policy-content p { color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.8; }
.policy-content ul { margin: 0.5rem 0 1.2rem 1.5rem; color: var(--text-secondary); line-height: 1.8; }

/* CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* PAGE HERO */
.page-hero {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,229,255,0.07) 0%, transparent 60%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.page-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ADSENSE PLACEHOLDER */
.ad-banner {
  background: var(--bg-card);
  border: 1px dashed rgba(0,229,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  margin: 2rem 0;
}

.ad-banner.leaderboard { height: 90px; }
.ad-banner.rectangle { height: 250px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(10,13,18,0.98); padding: 1rem; border-bottom: 1px solid var(--border); }
  nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .stats-inner { gap: 2rem; }
  .hero h1 { font-size: 2.5rem; }
}
