/* PixelOnShot - Main Stylesheet */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --card-bg: #1e1e3a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #2d2d5a;
  --success: #10b981;
  --warning: #f59e0b;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  background: rgba(15,15,26,0.97);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent) !important;
  letter-spacing: -0.5px;
}
.navbar-brand span { color: var(--primary); }
.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: color .2s;
  padding: .5rem 1rem !important;
}
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(1); }

/* HERO */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; }
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: .5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-custom {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: .7rem 1.8rem;
  border-radius: .5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-custom:hover { background: var(--accent); color: var(--dark); }

/* SECTIONS */
section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* CARDS */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(124,58,237,.25); }
.game-card img { width: 100%; height: 200px; object-fit: cover; }
.game-card-body { padding: 1.25rem; }
.game-card-genre {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.game-card h5 { color: #fff; font-weight: 700; margin-bottom: .5rem; font-size: 1.1rem; }
.game-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.rating { display: flex; align-items: center; gap: .3rem; }
.rating-score {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  padding: .2rem .55rem;
  border-radius: .35rem;
}
.rating-stars { color: var(--warning); font-size: .85rem; }
.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: color .2s;
}
.card-link:hover { color: var(--primary); }

/* TOURNAMENT CARD */
.tournament-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform .25s, box-shadow .25s;
}
.tournament-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(6,182,212,.15); }
.tournament-status {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 2rem;
  margin-bottom: .75rem;
}
.status-live { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid #ef4444; }
.status-upcoming { background: rgba(6,182,212,.15); color: var(--accent); border: 1px solid var(--accent); }
.status-finished { background: rgba(148,163,184,.1); color: var(--text-muted); border: 1px solid var(--border); }
.tournament-card h5 { color: #fff; font-weight: 700; margin-bottom: .5rem; }
.tournament-meta { color: var(--text-muted); font-size: .85rem; }
.tournament-meta span { margin-right: 1rem; }

/* STATS BAR */
.stats-bar {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

/* SUBSCRIBE SECTION */
.subscribe-section {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.subscribe-form .form-control {
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: .5rem;
  padding: .75rem 1rem;
}
.subscribe-form .form-control:focus {
  background: var(--dark);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.subscribe-form .form-control::placeholder { color: var(--text-muted); }

/* CONTACT FORM */
.contact-section { background: var(--dark2); }
.form-label { color: var(--text-muted); font-size: .9rem; font-weight: 600; }
.form-control, .form-select {
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: .5rem;
  padding: .75rem 1rem;
}
.form-control:focus, .form-select:focus {
  background: var(--dark);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--dark2); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ALERT */
.alert-success-custom {
  background: rgba(16,185,129,.1);
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  display: none;
  margin-top: 1rem;
}

/* FOOTER */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-brand { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.footer-brand span { color: var(--primary); }
.footer-desc { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.5rem; color: var(--text-muted); font-size: .85rem; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  z-index: 9999;
  padding: 1rem 0;
}
#cookie-banner p { color: var(--text-muted); font-size: .875rem; margin: 0; }
#cookie-banner a { color: var(--accent); }
.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .5rem 1.5rem;
  border-radius: .4rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: .5rem 1.2rem;
  border-radius: .4rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: #fff; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }
.breadcrumb-custom { color: var(--text-muted); font-size: .85rem; margin-bottom: .75rem; }
.breadcrumb-custom a { color: var(--accent); text-decoration: none; }
.breadcrumb-custom span { margin: 0 .4rem; }

/* POLICY PAGES */
.policy-content { max-width: 860px; margin: 0 auto; }
.policy-content h2 { color: #fff; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.4rem; }
.policy-content h3 { color: var(--accent); font-weight: 600; margin-top: 1.5rem; margin-bottom: .75rem; font-size: 1.1rem; }
.policy-content p, .policy-content li { color: var(--text-muted); line-height: 1.8; }
.policy-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content li { margin-bottom: .4rem; }
.policy-content strong { color: var(--text); }
.policy-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: .5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

/* ABOUT */
.about-img { border-radius: 1rem; width: 100%; object-fit: cover; max-height: 420px; }
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.5rem;
  text-align: center;
}
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  margin: 0 auto 1rem;
}
.team-card h6 { color: #fff; font-weight: 700; margin-bottom: .25rem; }
.team-card small { color: var(--text-muted); }

/* TOURNAMENTS PAGE */
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-tab {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .4rem 1.1rem;
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  section { padding: 3rem 0; }
  .stat-number { font-size: 2rem; }
}
