/* =============================================
   StormRaiderX - Main Stylesheet
   ============================================= */

:root {
  --primary: #00b4ff;
  --primary-dark: #0077cc;
  --accent: #a855f7;
  --bg-dark: #0a0a1e;
  --bg-card: #111130;
  --bg-section: #0d0d25;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(0, 180, 255, 0.2);
  --gradient: linear-gradient(135deg, #00b4ff, #a855f7);
}

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

html { scroll-behavior: smooth; }

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

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.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-banner.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,30,0.9) 40%, transparent);
  z-index: 1;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(0, 180, 255, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

/* ---- BUTTONS ---- */
.btn-primary-custom {
  background: var(--gradient);
  border: none;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s, transform 0.2s;
  cursor: pointer;
}

.btn-primary-custom:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- SECTIONS ---- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}

/* ---- CARDS ---- */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 180, 255, 0.15);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card-body {
  padding: 1.25rem;
}

.game-card-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.game-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.rating-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.rating-score {
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- TOURNAMENT CARDS ---- */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(168, 85, 247, 0.2);
}

.tournament-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.tournament-card-body {
  padding: 1.5rem;
}

.tournament-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.status-open { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid #22c55e; }
.status-upcoming { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid #fbbf24; }
.status-closed { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid #ef4444; }

/* ---- STATS ---- */
.stats-section {
  background: var(--bg-section);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* ---- FORMS ---- */
.form-section {
  background: var(--bg-section);
  padding: 5rem 0;
}

.form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-control-custom {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 1rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--primary);
  background: rgba(0, 180, 255, 0.05);
  color: var(--text-light);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

.form-label-custom {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.form-success {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #22c55e;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 600;
}

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: linear-gradient(135deg, rgba(0,180,255,0.1), rgba(168,85,247,0.1));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.newsletter-section h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
}

.newsletter-input-group input {
  flex: 1;
}

/* ---- FOOTER ---- */
footer {
  background: #060614;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-heading {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
}

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

/* ---- BREADCRUMB ---- */
.breadcrumb-custom {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  justify-content: center;
}

.breadcrumb-custom a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-custom span { color: var(--text-muted); }

/* ---- ABOUT ---- */
.about-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-img-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ---- POLICY PAGES ---- */
.policy-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  margin: 3rem 0;
}

.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.policy-content ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-content ul li { margin-bottom: 0.4rem; }

.policy-content a { color: var(--primary); }

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 30, 0.97);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

#cookie-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

#cookie-banner a { color: var(--primary); }

.cookie-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .newsletter-input-group { flex-direction: column; }
  .policy-content { padding: 1.5rem; }
  #cookie-banner { flex-direction: column; text-align: center; }
}

/* ---- UTILITIES ---- */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-card { background: var(--bg-card); }
.border-custom { border: 1px solid var(--border); }
.rounded-custom { border-radius: 12px; }

.py-section { padding: 5rem 0; }

.tag {
  display: inline-block;
  background: rgba(0, 180, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 180, 255, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}
