/* Google Fonts setup is in index.html */

:root {
  /* Colors from the poster */
  --color-magenta: #e82390;
  --color-orange: #fa9b47;
  --color-yellow: #fcdb5d;
  --color-blue: #0e5cb6;
  --color-blue-dark: #0a4185;
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-blue);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.mt-4 { margin-top: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-yellow);
  color: var(--color-dark);
  box-shadow: 0 4px 15px rgba(252, 219, 93, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(252, 219, 93, 0.6);
  background: #fff0a8;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.glass-strong {
  background: rgba(14, 92, 182, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(14, 92, 182, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

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

.nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-orange) 50%, var(--color-yellow) 100%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeIn 1s ease-out;
}

.hero .subtitle {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: -0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .title {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 4px 4px 8px rgba(0,0,0,0.3);
}

.hero .title span {
  color: var(--color-blue);
  -webkit-text-stroke: 2px var(--color-white);
  text-shadow: none;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: inline-block;
}

.info-card p {
  margin-bottom: 0.5rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Rules Section */
.rules-section {
  background: var(--color-blue);
  position: relative;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.rule-card {
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.rule-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 900;
  color: var(--color-yellow);
}

.rule-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Register Section */
.register-section {
  background: linear-gradient(to bottom, var(--color-blue), var(--color-blue-dark));
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(252, 219, 93, 0.3);
}

.success-message {
  animation: fadeIn 0.5s ease-out;
  padding: 2rem;
}

.success-message h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-yellow);
  margin-bottom: 1rem;
}

.success-message p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
}

.footer a {
  color: var(--color-yellow);
  text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero .title { font-size: 4rem; }
  .hero .subtitle { font-size: 1.5rem; }
  .nav ul { gap: 1rem; flex-wrap: wrap; }
  .form-container { padding: 2rem 1rem; }
}

.countdown-badge {
  display: inline-block;
  background: var(--color-magenta);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(232,35,144,0.4);
  animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Standings Section */
.standings-section {
  padding: 4rem 0;
  background-color: var(--color-blue);
}
.standings-container {
  padding: 1.5rem;
  overflow-x: auto;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.standings-table th, .standings-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.standings-table th {
  color: var(--color-yellow);
  font-weight: 700;
}
.standings-table tr:last-child td {
  border-bottom: none;
}
.standings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Schedule Section */
.schedule-section {
  padding: 4rem 0;
  background-color: var(--color-dark);
}
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.schedule-day {
  padding: 2rem;
}
.schedule-day h3 {
  color: var(--color-yellow);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}
.match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}
.match-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}
.match-time {
  font-weight: bold;
  color: var(--color-magenta);
  width: 60px;
}
.match-teams {
  flex-grow: 1;
  text-align: center;
  font-weight: 600;
}
.match-vs {
  color: var(--color-orange);
  margin: 0 0.5rem;
  font-size: 0.9em;
}


/* Photo Gallery */
.photo-section {
  margin-top: 3rem;
}

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

.photo-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  aspect-ratio: 1; /* Make items square */
}

.photo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Lightbox */
#lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

#lightbox img, #lightbox video {
  max-width: 95%;
  max-height: 95%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  outline: none;
}

#lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10000;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
