/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #ff6b00;
  --primary-dark: #e05500;
  --secondary: #1a237e;
  --accent: #00bcd4;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --gradient: linear-gradient(135deg, #ff6b00 0%, #ff9800 50%, #ffc107 100%);
  --gradient-blue: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 35, 126, 0.97);
  backdrop-filter: blur(12px);
  padding: 0 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.navbar-logo .ball-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(255,107,0,0.4);
}

.navbar-links {
  display: flex;
  gap: 4px;
}

.navbar-links a {
  color: rgba(255,255,255,0.8);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.navbar-links a.active {
  background: var(--primary);
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-blue);
  padding: 80px 24px 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,188,212,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

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

.hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,0,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,0,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ===== VOLLEYBALL SVG in hero ===== */
.hero-ball {
  margin: 32px auto 0;
  width: 120px;
  height: 120px;
  animation: bounce 2s ease-in-out infinite;
}

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

/* ===== SECTIONS ===== */
.section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card-icon.orange { background: rgba(255,107,0,0.1); color: var(--primary); }
.card-icon.blue { background: rgba(26,35,126,0.1); color: var(--secondary); }
.card-icon.teal { background: rgba(0,188,212,0.1); color: var(--accent); }

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.card .card-link:hover { gap: 10px; }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  background: var(--gradient-blue);
  padding: 48px 24px;
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.8;
  font-size: 1.05rem;
}

/* ===== CONTENT BLOCKS ===== */
.content-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.content-block h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.content-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 24px 0 12px;
}

.content-block p,
.content-block li {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

.content-block ul,
.content-block ol {
  padding-left: 24px;
  margin: 12px 0;
}

.content-block li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 8px;
}

.content-block ul li::before {
  content: '🏐';
  position: absolute;
  left: -24px;
  font-size: 0.7rem;
}

.content-block ol li {
  padding-left: 28px;
}

.content-block ol {
  counter-reset: rule;
}

.content-block ol li {
  counter-increment: rule;
}

.content-block ol li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 3px;
}

/* ===== RULES CARDS (rules page) ===== */
.rules-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.rule-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.rule-card:hover {
  border-left-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.rule-card .rule-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.rule-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.rule-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== ATHLETE CARDS ===== */
.athletes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.athlete-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.athlete-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.athlete-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}

.athlete-img.bg1 { background: linear-gradient(135deg, #ff6b00 0%, #ff9800 100%); }
.athlete-img.bg2 { background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%); }
.athlete-img.bg3 { background: linear-gradient(135deg, #00897b 0%, #00bcd4 100%); }
.athlete-img.bg4 { background: linear-gradient(135deg, #c62828 0%, #ef5350 100%); }
.athlete-img.bg5 { background: linear-gradient(135deg, #6a1b9a 0%, #ab47bc 100%); }
.athlete-img.bg6 { background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%); }
.athlete-img.bg7 { background: linear-gradient(135deg, #e65100 0%, #ff9800 100%); }
.athlete-img.bg8 { background: linear-gradient(135deg, #0d47a1 0%, #42a5f5 100%); }

.athlete-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
}

.athlete-info {
  padding: 20px;
}

.athlete-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.athlete-info .country {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.athlete-info .position {
  display: inline-block;
  background: rgba(26,35,126,0.08);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.athlete-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== SURVEY ===== */
.survey-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}

.survey-question {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.survey-question h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.survey-question h3 .q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  margin-right: 10px;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e8ecf1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.survey-option:hover {
  border-color: var(--primary);
  background: rgba(255,107,0,0.03);
}

.survey-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.survey-option.selected {
  border-color: var(--primary);
  background: rgba(255,107,0,0.06);
}

.survey-results {
  display: none;
  margin-top: 24px;
}

.survey-results.visible { display: block; }

.result-bar-wrap {
  margin-bottom: 16px;
}

.result-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.result-bar {
  height: 28px;
  background: #e8ecf1;
  border-radius: 14px;
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  border-radius: 14px;
  background: var(--gradient);
  transition: width 1s ease;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===== TRAINING FORM ===== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px;
}

.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e4ea;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(255,107,0,0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,0,0.45);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.visible { display: block; }

.form-success .check {
  width: 72px;
  height: 72px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-light);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--gradient-blue);
  padding: 40px 24px;
  color: #fff;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 900;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0d1137;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer a { color: var(--primary); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26,35,126,0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .navbar-links.open { display: flex; }
  .burger { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item .stat-num { font-size: 1.6rem; }
  .athletes-grid { grid-template-columns: 1fr; }
}
