/* ===== TITANWARGRID.XYZ — MAIN STYLESHEET ===== */
:root {
  --primary: #f97316;
  --primary-dark: #c2410c;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-nav: #0d1117ee;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --accent: #1f6feb;
}

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

html { scroll-behavior: smooth; }

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

/* ===== NAVBAR ===== */
.navbar {
  background: var(--bg-nav) !important;
  backdrop-filter: blur(12px);
  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;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.navbar-brand span { color: var(--text-main); }

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !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: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight { color: var(--primary); }

.hero p {
  font-size: 1.15rem;
  color: #c9d1d9;
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.7rem 1.8rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

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

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ===== CARDS ===== */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

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

.game-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-genre {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

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

.rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.rating-stars { color: var(--primary); font-size: 0.85rem; }
.rating-score { font-weight: 700; font-size: 0.9rem; }

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ===== TOURNAMENT CARD ===== */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

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

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

.status-live { background: #dc2626; color: #fff; }
.status-upcoming { background: #1d4ed8; color: #fff; }
.status-ended { background: #374151; color: #9ca3af; }

.tournament-card h4 { font-weight: 700; margin-bottom: 0.5rem; }

.tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tournament-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, #1c1f26 0%, #0d1117 100%);
}

.newsletter-form .form-control {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 4px 0 0 4px;
  padding: 0.75rem 1rem;
}

.newsletter-form .form-control:focus {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

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

/* ===== CONTACT FORM ===== */
.contact-form .form-control,
.contact-form .form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.contact-form .form-control::placeholder { color: var(--text-muted); }
.contact-form label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.4rem; }

.form-success {
  display: none;
  background: #064e3b;
  border: 1px solid #065f46;
  color: #6ee7b7;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-weight: 600;
}

/* ===== STATS ===== */
.stat-item { text-align: center; padding: 1.5rem; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  background-image: url('../images/about.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.75);
}

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

/* ===== TEAM CARD ===== */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.25s;
}

.team-card:hover { border-color: var(--primary); }

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1rem;
}

.team-card h5 { font-weight: 700; margin-bottom: 0.25rem; }
.team-card .role { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

/* ===== POLICY PAGES ===== */
.policy-header {
  background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--primary);
}

.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: 0.4rem; }

/* ===== FOOTER ===== */
footer {
  background: #080b10;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--text-main); }

footer p, footer address {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: normal;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  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.2s;
}
.footer-links a:hover { color: var(--primary); }

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

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #161b22;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: none;
}

#cookie-banner p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
#cookie-banner a { color: var(--primary); }

/* ===== BREADCRUMB ===== */
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

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