/* GLOBAL BEST PRACTICE: Tüm elementler için padding ve border'ı genişliğe dahil et */

*, *::before, *::after {
  box-sizing: border-box;
}

/* =====================================================================
 * ROOT COLORS & VARIABLES
 * ===================================================================== */
:root {
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --bg-4: #0e0e0e;
  --gold-1: #FFD700;
  --gold-2: #D4AF37;
  --text-light: #f5f5f5;
  --shadow-strong: rgba(2,6,23,0.7);
  --frame-glow: rgba(255,255,255,0.06);
}

/* =====================================================================
 * GLOBAL BACKGROUND + FRAME
 * ===================================================================== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
  background: linear-gradient(-45deg, var(--bg-1), var(--bg-2), var(--bg-3), var(--bg-4));
  background-size: 400% 400%;
  animation: bgFlow 36s ease-in-out infinite;
  position: relative;
  overflow-x: hidden;
}

@keyframes bgFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Frame glow */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 60px 20px var(--frame-glow) inset;
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 60px 20px var(--frame-glow) inset; }
  50% { box-shadow: 0 0 80px 30px rgba(255,255,255,0.08) inset; }
}

/* Aurora blurred spots */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 220px at 10% 20%, rgba(212,175,55,0.06), transparent 18%),
    radial-gradient(500px 200px at 85% 75%, rgba(255,183,77,0.05), transparent 20%),
    radial-gradient(420px 180px at 50% 40%, rgba(255,215,0,0.03), transparent 24%);
  filter: blur(72px);
  mix-blend-mode: screen;
  animation: auroraDrift 40s linear infinite;
}

@keyframes auroraDrift {
  0%   { transform: translate(-6%, -3%) scale(1); }
  50%  { transform: translate(6%, 3%) scale(1.02); }
  100% { transform: translate(-6%, -3%) scale(1); }
}

/* =====================================================================
 * SPLASH SCREEN
 * ===================================================================== */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: splashFade 2.2s ease forwards;
}

.logo-text {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: scale(0.9);
  background-size: 200% auto;
  animation: splashText 1.2s ease forwards, shineText 6s linear infinite;
  animation-delay: 0.2s, 0.2s;
  position: relative;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  animation: splashLineAnim 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes splashText {
  to { opacity: 1; transform: scale(1); }
}

@keyframes splashFade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes shineText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes splashLineAnim {
  0% { width: 0; opacity: 1; }
  80% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* =====================================================================
 * HERO SECTION (parallax + dark overlay)
 * ===================================================================== */
#hero-section {
  position: relative;
  text-align: center;
  padding: 8rem 1rem 6rem;
  background: center center / cover no-repeat fixed;
  /* merkez odaklı olsun diye */
  background-position: center center;
  background-attachment: fixed;
}

#hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* karartma */
}

.hero-content {
  position: relative;
  z-index: 1;
}

#hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 6s linear infinite;
}

#hero-section p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto;
}

/* =====================================================================
 * CONTENT WRAPPER - GÜNCELLENDİ (AÇIK RENK VE GÖZLE GÖRÜLÜR GRADIENT)
 * ===================================================================== */
#content-wrapper {
  /* Border'ı biraz daha belirgin yaptık */
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  max-width: 1100px;
  
  /* Arka plandan (bg: #0a0a0a) daha açık ve opak bir ton kullanıldı. */
  background: linear-gradient(
    180deg,
    rgba(40, 40, 40, 0.98) 0%,   /* Açık Koyu Gri, çok yüksek opaklık (Belirgin Fark 1) */
    rgba(20, 20, 20, 0.95) 75%,  /* Koyu Griye geçiş */
    rgba(255, 215, 0, 0.08) 100% /* Belirgin Altın Işıltısı (Gözle Görülür Gradient) */
  );
  
  /* Gölgeleri ve iç ışıltıyı belirginleştirdik */
  box-shadow: 
    0 10px 50px rgba(0,0,0,0.8), 
    inset 0 0 10px rgba(255, 215, 0, 0.05); 
    
  backdrop-filter: blur(15px); /* Blur efekti artırıldı */
}

.divider {
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  margin: 3rem auto;
  border-radius: 2px;
}

/* =====================================================================
 * SECTION TITLES
 * ===================================================================== */
.section-title {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  text-align: center;
  color: var(--text-light);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold-1);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  animation: titleLine 2.5s ease-in-out infinite;
}

@keyframes titleLine {
  0%, 100% { width: 50px; }
  50% { width: 120px; }
}

/* =====================================================================
 * CURRENT LEAGUE CARD
 * ===================================================================== */
.current-league-card {
  background-color: rgba(20,20,20,0.85);
  border-radius: 6px;
  border: 3px solid var(--gold-1);
  box-shadow:
    0 0 50px rgba(0, 0, 0, 1),
    inset 0 0 25px rgba(255, 199, 89, 0.4),
    0 0 15px 5px var(--gold-1);
  overflow: hidden;
  margin: 2rem auto;
  width: min(900px, 95%);
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.current-league-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 1),
    0 0 25px 5px rgba(255, 199, 89, 0.7);
}

.current-league-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* =====================================================================
 * UPCOMING LEAGUE CARDS
 * ===================================================================== */
.upcoming-leagues {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem auto;
}

.upcoming-league-card {
  background: rgba(25,25,25,0.85);
  border-left: 6px solid var(--gold-1);
  border-radius: 8px;
  padding: 1.5rem;
  width: 380px;
  text-align: left;
  box-shadow: 0 8px 28px var(--shadow-strong);
  backdrop-filter: blur(12px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.upcoming-league-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(212,175,55,0.35);
}

.upcoming-league-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

/* =====================================================================
 * PAST LEAGUE CARDS
 * ===================================================================== */
.past-league-card {
  display: flex;
  align-items: center;
  background: rgba(28,28,28,0.7);
  border-radius: 12px;
  margin: 1rem auto;
  max-width: 800px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.past-league-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255,215,0,0.25);
}

.past-league-card img {
  width: 160px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.past-league-card h3,
.past-league-card p {
  margin: 0.5rem 1rem;
}

/* =====================================================================
 * FAQ
 * ===================================================================== */
.faq {
  max-width: 800px;
  margin: 3rem auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
  font-size: 1.1rem;
  padding: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-light);
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--gold-1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1rem;
  color: rgba(255,255,255,0.8);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1rem;
}

.faq-question::after {
  content: '+'; /* ya da bir ikon fontundan karakter */
  float: right;
  transition: transform 0.3s ease;
  color: var(--gold-2);
  font-size: 1.5rem;
}
.faq-item.active .faq-question::after {
  content: '-'; /* veya döndürülmüş ok */
}

/* =====================================================================
 * BUTTONS
 * ===================================================================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-gold {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  background-size: 200% auto;
  color: #111;
  box-shadow: 0 8px 24px rgba(212,175,55,0.25);
  animation: shineBtn 8s linear infinite;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(212,175,55,0.35);
}

@keyframes shineBtn {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* =====================================================================
 * PARTICLE EFFECT - EKLENDİ
 * ===================================================================== */
#particles-container {
  position: fixed;
  inset: 0;
  z-index: -2; /* Aurora'nın altında kalması için */
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--gold-2);
  border-radius: 50%;
  opacity: 0.4;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
  animation: floatAndFade 20s infinite ease-in-out;
}

/* Parçacıkları rastgele yerleştirme ve animasyon sürelerini ayarlama */
.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  width: 5px;
  height: 5px;
  animation-duration: 25s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  right: 15%;
  top: 40%;
  width: 3px;
  height: 3px;
  animation-duration: 18s;
  animation-delay: 5s;
}

.particle:nth-child(3) {
  left: 45%;
  bottom: 10%;
  width: 6px;
  height: 6px;
  opacity: 0.6;
  animation-duration: 30s;
  animation-delay: 10s;
}

.particle:nth-child(4) {
  left: 70%;
  top: 15%;
  width: 4px;
  height: 4px;
  animation-duration: 22s;
  animation-delay: 15s;
}

@keyframes floatAndFade {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(15vw, -5vh) scale(1.1); opacity: 0.6; }
  50% { transform: translate(0, -10vh) scale(1.2); opacity: 0.2; }
  75% { transform: translate(-10vw, 5vh) scale(1.1); opacity: 0.5; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
}

/* =====================================================================
 * RESPONSIVE
 * ===================================================================== */
@media (max-width: 768px) {
  .logo-text { font-size: 2rem; }
  #hero-section h1 { font-size: 2rem; }
  #hero-section p { font-size: 1rem; }

  .current-league-card {
    /* Padding'i 2rem'den 1rem'e düşürerek mobil ekranda rahatlamasını sağlar */
    padding: 1rem; 
  }

  .current-league-card img { height: 220px; }
  .upcoming-league-card { width: 100%; }

  .past-league-card {
    flex-direction: column;
    text-align: center;
  }
  .past-league-card img {
    width: 100%;
    height: 200px;
  }
}