/* ===== FONUREDI.INFO - MAIN STYLESHEET ===== */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: #1e1e35;
  --border: #2d2d4e;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
}

* { 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.7;
  overflow-x: hidden;
}

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

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

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

.navbar-nav .nav-link:hover,
.navbar-nav .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.3);
  z-index: 0;
}

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

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

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.2);
  border: 1px solid var(--primary);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  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: 520px;
  margin-bottom: 2rem;
}

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

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

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

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

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

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

.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;
}

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

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

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

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

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

.rating-stars { color: #f59e0b; font-size: 0.9rem; }

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

.tag {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

/* ===== TOURNAMENT CARD ===== */
.tournament-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.25s;
  height: 100%;
}

.tournament-card:hover { border-color: var(--accent); }

.tournament-card .t-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.t-status.live { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid #ef4444; }
.t-status.upcoming { background: rgba(6,182,212,0.2); color: var(--accent); border: 1px solid var(--accent); }
.t-status.finished { background: rgba(148,163,184,0.2); color: var(--text-muted); border: 1px solid var(--text-muted); }

.tournament-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.tournament-card .t-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.tournament-card .t-meta i { margin-right: 0.4rem; color: var(--primary); }

/* ===== STATS BAR ===== */
.stats-section {
  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;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ===== NEWSLETTER / CTA ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.1) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; }

.newsletter-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--dark2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.form-control-custom {
  width: 100%;
  background: var(--dark2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

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

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

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

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

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

.feature-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-text h5 { font-weight: 700; margin-bottom: 0.25rem; }
.feature-text p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

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

.page-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== POLICY PAGES ===== */
.policy-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.policy-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.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 strong { color: var(--text); }

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

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.footer-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.footer-heading {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  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(--accent); }

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

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  section { padding: 3.5rem 0; }
  .cta-section { padding: 2.5rem 1.5rem; }
  .contact-form { padding: 1.75rem; }
  .policy-content { padding: 1.75rem; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}

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

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

.bg-dark-alt { background: var(--dark2); }
