/* ==========================================
   ShootZone — Free Online Shooting Games
   Complete Responsive Stylesheet
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #0a0e17;
  --bg2: #0d1220;
  --card-bg: #111827;
  --card-bg2: #1a2332;
  --primary: #00ff88;
  --primary-dark: #00cc6a;
  --secondary: #ff4444;
  --accent: #00bfff;
  --accent2: #ffd700;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #334155;
  --light: #f1f5f9;
  --shadow: rgba(0, 255, 136, 0.1);
  --shadow-red: rgba(255, 68, 68, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

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

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg2);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 6px var(--primary));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a {
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
  background: rgba(0, 255, 136, 0.08);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg);
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.btn-link:hover { color: var(--accent); }

/* ---------- Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, #0d1220 0%, #111827 50%, #0a0e17 100%);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 2px solid var(--primary);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 2.8rem;
  color: var(--light);
  margin: 10px 0;
  text-shadow: 0 2px 20px rgba(0, 255, 136, 0.3);
}

.page-header .lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 650px;
  margin: 0 auto;
  font-family: 'Rajdhani', sans-serif;
}

/* ---------- Category Badge ---------- */
.category-badge {
  display: inline-block;
  background: rgba(0, 255, 136, 0.15);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

/* ---------- Content Grid ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ---------- Game Section ---------- */
.game-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  margin: 20px 0;
  border: 1px solid var(--border);
}

.game-section h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px 0;
  margin-bottom: 20px;
}

.filter-btn {
  background: var(--card-bg);
  color: var(--text-dim);
  border: 2px solid var(--border);
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 255, 136, 0.08);
}

/* ---------- Games Grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px 25px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.game-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15);
}

.game-icon { font-size: 3.5rem; }
.game-card h3 { font-size: 1.3rem; color: var(--light); margin-top: 5px; }
.game-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Articles Grid ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 2px solid var(--border);
}

.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card-body h3 {
  font-size: 1.05rem;
  color: var(--light);
  line-height: 1.3;
}

/* ---------- Widgets ---------- */
.widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.widget h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  text-transform: uppercase;
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { 
  padding: 7px 0; 
  border-bottom: 1px solid var(--border); 
}
.widget ul li:last-child { border: none; }
.widget a { 
  color: var(--text-dim); 
  font-size: 0.9rem;
  transition: color 0.3s; 
}
.widget a:hover { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-item {
  background: rgba(0, 255, 136, 0.05);
  border-left: 3px solid var(--primary);
  padding: 15px 20px;
  margin: 12px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.faq-item h3 { 
  font-size: 1rem; 
  color: var(--primary); 
  margin-bottom: 8px; 
  font-family: 'Rajdhani', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.faq-item p { 
  color: var(--text-dim); 
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Lead Paragraph ---------- */
.lead { 
  font-size: 1.15rem; 
  color: var(--text-dim); 
  line-height: 1.7; 
  margin: 15px 0 25px;
  font-weight: 500;
}

/* ---------- Article Content ---------- */
.article-content h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 30px 0 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

.article-content p { 
  color: var(--text-dim); 
  line-height: 1.8; 
  margin: 12px 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
}

.article-content img { 
  border-radius: var(--radius);
  margin: 20px 0;
  border: 1px solid var(--border);
}

.article-content ul {
  list-style: none;
  padding: 0;
}

.article-content ul li {
  padding: 8px 0 8px 20px;
  position: relative;
  color: var(--text-dim);
  font-size: 1rem;
  font-family: 'Rajdhani', sans-serif;
}

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

.article-content strong { color: var(--light); }

/* ---------- TOC ---------- */
.toc-list { list-style: none; padding: 0; }
.toc-list li { padding: 5px 0; }
.toc-list a { color: var(--accent); font-size: 0.9rem; }
.toc-list a:hover { color: var(--primary); }

/* ---------- Article Footer ---------- */
.article-footer {
  background: rgba(0, 255, 136, 0.05);
  border-radius: var(--radius);
  padding: 25px;
  margin-top: 30px;
  border: 1px solid var(--border);
}

.article-footer h3 { 
  color: var(--primary); 
  margin: 15px 0 10px; 
  font-size: 1.1rem;
  text-transform: uppercase;
}

.article-footer ul { list-style: none; padding: 0; }
.article-footer ul li { padding: 5px 0; }
.article-footer a { color: var(--primary); }
.article-footer a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 0;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding: 50px 0 30px;
}

.footer-col h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { padding: 6px 0; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Error Page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
  padding: 40px;
}

.error-code {
  font-size: 8rem;
  color: var(--primary);
  text-shadow: 0 0 40px var(--shadow);
  margin: 20px 0;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------- Contact Form ---------- */
.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* ---------- Stats ---------- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Oswald', sans-serif;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Section Heading ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ---------- Play Area ---------- */
.play-area {
  background: linear-gradient(135deg, #0a0e17, #111827);
  border: 2px solid var(--primary) !important;
  border-radius: var(--radius);
  padding: 25px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 0 30px var(--shadow);
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 25px;
  align-items: center;
  margin: 15px 0;
  font-size: 1.05rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg2);
    padding: 20px;
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .navbar .container { flex-wrap: wrap; position: relative; }
  .page-header h1 { font-size: 2rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .stats-row { gap: 25px; }
  .game-controls { gap: 15px; font-size: 0.9rem; }
}

@media (max-width: 600px) {
  .container { padding: 0 15px; }
  .games-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 25px; }
  .game-section { padding: 20px 15px; }
  .widget { padding: 15px; }
}
