/* ==========================================
   FURY VS WILDER - STATISTICAL ANALYSIS
   Modern data visualization design
   ========================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f5f1 100%);
  color: #0f172a;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(135deg, #263238 0%, #1a1f2e 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://img.bleacherreport.net/img/images/photos/003/844/546/hi-res-982e1421644221adab77b31a3eeb6808_crop_north.jpg?h=533&w=800&q=70&crop_x=center&crop_y=top');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fighter {
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fury-color {
  color: #3498db;
}

.wilder-color {
  color: #e74c3c;
}

.vs {
  font-size: 0.6em;
  color: #55d6aa;
  font-weight: 700;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.fight-info {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.info-badge {
  padding: 0.5rem 1rem;
  background: rgba(85, 214, 170, 0.2);
  border: 1px solid rgba(85, 214, 170, 0.4);
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.info-badge i {
  color: #55d6aa;
}

/* ==================== STATS OVERVIEW ==================== */
.stats-overview {
  padding: 3rem 2rem;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.fury-theme {
  border-color: rgba(52, 152, 219, 0.3);
}

.fury-theme:hover {
  border-color: #3498db;
}

.wilder-theme {
  border-color: rgba(231, 76, 60, 0.3);
}

.wilder-theme:hover {
  border-color: #e74c3c;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.fury-theme .stat-icon {
  color: #3498db;
}

.wilder-theme .stat-icon {
  color: #e74c3c;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fury-theme .stat-number {
  color: #3498db;
}

.wilder-theme .stat-number {
  color: #e74c3c;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-fighter {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

/* ==================== CHARTS SECTION ==================== */
.charts-section {
  padding: 3rem 2rem;
}

.chart-container {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(85, 214, 170, 0.2);
}

.chart-header {
  margin-bottom: 2rem;
  text-align: center;
}

.chart-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.chart-title i {
  color: #55d6aa;
  font-size: 1.5rem;
}

.chart-description {
  color: #64748b;
  font-size: 1rem;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

/* ==================== PUNCH DISTRIBUTION ==================== */
.punch-distribution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.distribution-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid;
  transition: all 0.3s ease;
}

.distribution-card:first-child {
  border-color: rgba(231, 76, 60, 0.3);
}

.distribution-card:first-child:hover {
  border-color: #e74c3c;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(231, 76, 60, 0.2);
}

.distribution-card:last-child {
  border-color: rgba(52, 152, 219, 0.3);
}

.distribution-card:last-child:hover {
  border-color: #3498db;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(52, 152, 219, 0.2);
}

.distribution-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle-text {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.25rem;
}

.chart-wrapper-small {
  margin: 2rem auto;
  max-width: 300px;
}

.punch-breakdown {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.breakdown-item:hover {
  background: #e8f5f1;
  transform: translateX(5px);
}

.breakdown-label {
  font-weight: 600;
  color: #475569;
}

.breakdown-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ==================== ANALYSIS SECTION ==================== */
.analysis-section {
  margin-bottom: 3rem;
}

.analysis-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(85, 214, 170, 0.3);
}

.analysis-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.analysis-title i {
  color: #55d6aa;
}

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

.analysis-item {
  text-align: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.analysis-item:hover {
  background: #e8f5f1;
  transform: scale(1.05);
}

.analysis-stat {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.fury-bg {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.wilder-bg {
  background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.analysis-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.95rem;
}

/* ==================== BACK LINK ==================== */
.back-link {
  text-align: center;
  margin-top: 3rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #55d6aa 0%, #57ad68 100%);
  color: white;
  text-decoration: none;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(85, 214, 170, 0.3);
  transition: all 0.3s ease;
}

.btn-back:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(85, 214, 170, 0.4);
  color: white;
}

/* ==================== FOOTER ==================== */
.data-footer {
  background: #263238;
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.data-footer p {
  margin: 0.25rem 0;
  opacity: 0.9;
}

.data-source {
  font-size: 0.875rem;
  opacity: 0.7;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .vs {
    font-size: 1.5rem;
  }
  
  .fight-info {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .chart-container {
    padding: 1.5rem;
  }
  
  .chart-title {
    font-size: 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .punch-distribution {
    grid-template-columns: 1fr;
  }
  
  .analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .analysis-stat {
    font-size: 2rem;
  }
}

/* ==================== CHART SPECIFIC STYLES ==================== */
canvas {
  max-width: 100%;
  height: auto !important;
}

/* ==================== LOADING ANIMATION ==================== */
.stat-card .stat-number {
  transition: all 0.3s ease;
}

.stat-card .stat-number.animated {
  animation: pulse 0.5s ease;
}

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

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #55d6aa 0%, #57ad68 100%);
  z-index: 9999;
  transition: width 0.2s ease;
}

/* ==================== ACCESSIBILITY ==================== */
:focus-visible {
  outline: 3px solid #55d6aa;
  outline-offset: 2px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .hero-section {
    background: white;
    color: black;
  }
  
  .btn-back {
    display: none;
  }
  
  .chart-container {
    page-break-inside: avoid;
  }
}
