/* Minimal custom styles for JavaScript functionality */
/* Main stylesheet: styles-elegant.css */

/* Hide/show content sections */
.content-section {
  display: none;
}

.content-section.block {
  display: block;
}

/* Navigation button active state */
.nav-btn.active {
  background: var(--gradient-primary) !important;
  color: var(--text-primary) !important;
  border-color: transparent !important;
  box-shadow: var(--shadow-glow) !important;
  font-weight: 700 !important;
}

/* Ad Zone Styling */
.ad-zone {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ad-zone:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ad-zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.ad-zone:hover::before {
  left: 100%;
}

/* Analytics Chart Animations */
#match-status-chart .bg-blue-500,
#match-status-chart .bg-green-500,
#match-status-chart .bg-purple-500,
#match-status-chart .bg-red-500 {
  transition: width 0.6s ease-in-out;
}

/* Smooth fade-in for analytics cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#team-performance-list > div,
#top-scorers-list > div,
#recent-activity-list > div {
  animation: fadeIn 0.3s ease-out forwards;
}

#team-performance-list > div:nth-child(1) { animation-delay: 0.05s; }
#team-performance-list > div:nth-child(2) { animation-delay: 0.1s; }
#team-performance-list > div:nth-child(3) { animation-delay: 0.15s; }
#team-performance-list > div:nth-child(4) { animation-delay: 0.2s; }
#team-performance-list > div:nth-child(5) { animation-delay: 0.25s; }

/* Formation Editor Styles */
.formation-position {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: default;
  z-index: 1;
}

.position-player-select {
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.position-player-select:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.position-player-select:focus {
  outline: none;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
