/* Custom CSS Variables */
:root {
  --primary-cyan: #00BCD4;
  --primary-orange: #FF9800;
  --dark-cyan: #0097A7;
  --dark-orange: #F57C00;
  --light-cyan: #B2EBF2;
  --light-orange: #FFE0B2;
  --dark-bg: #1a1a1a;
  --text-dark: #333;
  --text-light: #666;
}

/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: 80px; /* Account for fixed navbar */
}

/* Navigation Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-cyan), var(--dark-cyan)) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-orange) !important;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-orange);
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-orange));
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="basketball" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23basketball)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--dark-cyan));
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-cyan), var(--primary-cyan));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--dark-orange), var(--primary-orange));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Player Cards */
.player-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-left: 4px solid var(--primary-cyan);
}

.player-card:hover {
  border-left-color: var(--primary-orange);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-orange));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--light-cyan), var(--light-orange));
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-cyan);
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Schedule Styles */
.schedule-item {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-cyan);
  transition: all 0.3s ease;
}

.schedule-item:hover {
  border-left-color: var(--primary-orange);
  transform: translateX(5px);
}

.game-date {
  color: var(--primary-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-teams {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.5rem 0;
}

.game-venue {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Registration Form */
.registration-form {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-orange);
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-bg), #2c2c2c) !important;
}

/* Footer Text Visibility */
footer .text-muted {
  color: #b8b8b8 !important;
  transition: color 0.3s ease;
}

footer .text-muted:hover {
  color: var(--primary-cyan) !important;
}

footer h5, footer h6 {
  color: var(--primary-cyan) !important;
  font-weight: 600;
}

footer .contact-info p {
  color: #d0d0d0 !important;
}

footer .contact-info p:hover {
  color: var(--primary-orange) !important;
}

footer a {
  color: #b8b8b8 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-cyan) !important;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
  color: var(--primary-cyan) !important;
}

.social-links a:hover {
  background: var(--primary-cyan);
  color: white !important;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.text-primary {
  color: var(--primary-cyan) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--dark-cyan)) !important;
}

.border-primary {
  border-color: var(--primary-cyan) !important;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}