/* Custom styles for medal standings cards */
body {
    color: #001f3f;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 700;
  transition: font-size 0.3s ease;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1rem !important;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0ea5e9);
  background-size: 300% 300%;
  animation: bgFlow 10s ease infinite;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
}

@keyframes bgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Glass Overlay ===== */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.2), transparent 70%);
  backdrop-filter: blur(5px);
  z-index: 0;
}

/* ===== Hero Content ===== */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding-inline: 1rem;
}

/* ===== Title ===== */
.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(90deg, #00f2fe, #43e97b, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
  letter-spacing: 1px;
  animation: titleGlow 4s ease-in-out infinite alternate;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 8px rgba(0, 242, 254, 0.4); }
  100% { text-shadow: 0 0 25px rgba(67, 233, 123, 0.7); }
}

/* ===== Subtitle ===== */
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ===== Logos ===== */
.hero-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
}

/* --- Each Logo Image --- */
.hero-logo {
  height: auto;
  width: clamp(3rem, 10vw, 5rem);
  object-fit: contain;
  max-width: 100%;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
  aspect-ratio: 1 / 1;
}

.hero-logo:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.6));
}

/* ===== Button ===== */
.hero-section .btn {
  background: linear-gradient(90deg, #43e97b, #38f9d7);
  color: #0f172a;
  font-weight: 700;
  border: none;
  padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  transition: all 0.3s ease;
  border-radius: 9999px;
}
.hero-section .btn:hover {
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.4);
}

/* ===== Floating Particles ===== */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://cdn.jsdelivr.net/gh/JulianLaval/canvas-particle-network/particle-network.svg');
  opacity: 0.05;
  animation: floaty 30s linear infinite;
  z-index: 0;
}
@keyframes floaty {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 576px) {
  .hero-section {
    height: auto;
    padding: 3rem 1rem 4rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-content p {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

  .hero-logo {
    width: clamp(2.5rem, 20vw, 4rem);
  }

  .hero-logos {
    gap: 0.75rem;
  }

  .hero-section .btn {
    font-size: 1rem;
    padding: 0.7rem 1.8rem;
  }
}




/* ===== Section Titles ===== */
.section-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.35);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  position: relative;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 8px rgba(79, 172, 254, 0.5); }
  100% { text-shadow: 0 0 20px rgba(0, 242, 254, 0.8); }
}

.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  background: linear-gradient(90deg, #00f2fe, #43e97b);
  margin: 0.6rem auto 0;
  border-radius: 10px;
}

/* ===== Base Card ===== */
.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(15px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.25);
}

/* ===== Medal Standings ===== */
.medal-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 250, 0.95));
  transition: all 0.35s ease;
}
.medal-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* ===== Rank Badge with Glow ===== */
.rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 2.5s infinite ease-in-out;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

.rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFB300);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}
.rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #E0E0E0);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}
.rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333);
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.6);
}

/* ===== Medal Texts ===== */
.department-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}
.mascot-name {
  color: #64748b;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.medal-counts {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 1.2rem;
}
.medal-item {
  flex: 1;
}
.medal-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}
.gold { color: #FFD700; }
.silver { color: #C0C0C0; }
.bronze { color: #CD7F32; }
.medal-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}
.total-medals {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  padding: 1rem;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}
.total-medals:hover {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  transform: translateY(-4px);
}

/* ===== Event Cards ===== */
.event-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}
.event-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 55px rgba(79, 172, 254, 0.25);
}

/* Header */
.event-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.event-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}
.event-category {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Winners */
.winner-section {
  display: flex;
  justify-content: space-around;
  padding: 1.5rem 0.5rem;
  gap: 0.5rem;
}
.winner-item {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.winner-item:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(240, 147, 251, 0.15);
}
.winner-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.winner-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
}
.no-winner {
  color: #94a3b8;
  font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .winner-section {
    align-items: start !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .winner-item {
    align-items: start !important;
    text-align: start;
    width: 100%;
    max-width: 250px;
  }
}


.medal-icon {
  animation: bounceMedal 2s infinite ease-in-out;
}
@keyframes bounceMedal {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Footer */
/* ===== Modern Footer Design ===== */
  .footer {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.95), rgba(0, 51, 102, 0.95));
    color: #f8f9fa;
    backdrop-filter: blur(8px);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer h5 {
    color: #ffc107;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
  }

  .footer h5:hover {
    transform: translateY(-3px);
  }

  .footer p {
    margin: 0;
  }

  .footer .text-muted {
    color: #ced4da !important;
  }

  .footer-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
  }

  /* ===== Responsive Adjustments ===== */
  @media (max-width: 767.98px) {
    .footer {
      text-align: center;
      padding: 2rem 1rem;
    }

    .footer h5 {
      font-size: 1.2rem;
    }

    .footer p {
      font-size: 0.9rem;
    }

    .footer-logo {
      height: 18px;
    }
  }

  @media (min-width: 768px) and (max-width: 991.98px) {
    .footer {
      padding: 2rem 1.5rem;
    }

    .footer h5 {
      font-size: 1.3rem;
    }

    .footer-logo {
      height: 20px;
    }
  }

  @media (min-width: 992px) {
    .footer {
      padding: 2rem 3rem;
    }
  }

/* 🌈 Hero Section */
.schedule-hero {
  background: linear-gradient(135deg, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  padding: 50px 0;
  border-radius: 0 0 40px 40px;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🏅 Day Header */
.day-header {
  margin: 2rem 0 1rem;
  text-align: center;
}
.day-header h3 {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 1.8rem;
}

/* 🎮 Schedule Cards */
.schedule-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.schedule-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(79, 172, 254, 0.25);
}

/* Header */
.schedule-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sport-title {
  margin: 0;
  font-weight: 600;
  color: #1e293b;
}
.category-badge {
  background: linear-gradient(90deg, #f093fb, #f5576c);
  padding: 6px 12px;
  border-radius: 10px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Team Info */
.team-vs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1.1rem;
}
.team-badge {
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: #0f172a;
}
.vs-badge {
  font-weight: 700;
  color: #475569;
}

/* Details */
.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.detail-item i {
  color: #6366f1;
}

/* Status Badges */
.winner-badge {
  background: linear-gradient(90deg, #43e97b, #38f9d7);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.pending-badge {
  background: linear-gradient(90deg, #f7971e, #ffd200);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Empty State */
.no-schedules {
  background: #f8fafc;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}
.no-schedules i {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .team-vs {
    flex-direction: column;
  }
  .schedule-card {
    padding: 1.2rem;
  }
}

/* LOGIN STYLES */
/* General Page Background */
.login-section {
  background-color: #ebebeb;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
  padding: 1rem;
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  transition: all 0.35s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(161, 140, 209, 0.3);
}

/* Input Fields */
.form-control {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

.form-control:focus {
  border-color: #6f42c1;
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.15);
}

/* Button */
.btn-primary {
  background: linear-gradient(90deg, #6f42c1, #b97bff);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(111, 66, 193, 0.25);
}

/* Responsive Logo */
.login-card img {
  transition: transform 0.3s ease;
}

.login-card img:hover {
  transform: scale(1.05);
}

/* Responsive Font Sizes */
h4 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

p, label, button {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}
