/* Базовые стили */
:root {
  --primary: #2ecc71;
  --secondary: #27ae60;
  --accent: #f39c12;
  --dark: #1a1a2e;
  --light: #ecf0f1;
  --danger: #e74c3c;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f0f23;
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* Hero секция */
.hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('https://images.unsplash.com/photo-1579952363873-27f3bade9f55?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Кнопки */
.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Навигация */
nav {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* Основной контент */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* Секция истории */
.fun-fact {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  border-left: 4px solid var(--accent);
}

/* Правила */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.rule {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.rule:hover {
  transform: scale(1.05);
}

.rule h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Баннер Кубка Мира */
.trophy-banner {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
  background-size: cover;
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: white;
}

.trophy-banner h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.trophy-banner .cards-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.trophy-banner p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.trophy-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Звёзды */
.stars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.star {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  box-shadow: 5px 5px 15px #d1d1d1, -5px -5px 15px #ffffff;
}

.avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.star h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Викторина */
#quizContainer {
  text-align: center;
}

#question {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

#options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.option-btn {
  background: white;
  border: 2px solid var(--primary);
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.option-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.option-btn.correct {
  background: var(--primary) !important;
  color: white !important;
}

.option-btn.wrong {
  background: var(--danger) !important;
  color: white !important;
}

#result {
  font-size: 1.2rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--light);
}

/* Скрытые элементы */
.hidden {
  display: none !important;
}

/* Футер */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 0;
}

/* Галерея футболистов */
.footballers-gallery {
  margin-bottom: 2rem;
}

.footballers-gallery h2 {
  color: white;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.footballers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.footballer-card {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.footballer-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.footballer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 2rem 1.5rem 1.5rem;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.footballer-card:hover .footballer-overlay {
  transform: translateY(0);
  opacity: 1;
}

.footballer-overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.footballer-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }
  nav ul { flex-direction: column; gap: 1rem; }
  #options { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .stars-grid { grid-template-columns: 1fr; }
  .trophy-banner .cards-row { font-size: 2rem; }
  .footballers-grid { grid-template-columns: 1fr; }
  .footballer-card { height: 250px; }
  .footballer-overlay { opacity: 1; transform: translateY(0); }
}