


/* =========================
   Global Styles
========================= */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: white;
  text-align: center;
  transition: opacity 0.6s ease-in-out;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.loaded {
  opacity: 1;
}

main {
  flex: 1;
}

/* =========================
   Header & Navbar
========================= */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 5%;
      background: rgba(17, 17, 17, 0.95);
      backdrop-filter: blur(10px);
      z-index: 1000;
      transition: all 0.3s ease;
    }

    .logo {
      height: 45px;
      transition: transform 0.3s ease;
    }

    .logo:hover {
      transform: scale(1.05);
    }

    .nav-links {
      display: flex;
      list-style: none;
      gap: 30px;
    }

    .nav-links a {
      text-decoration: none;
      color: #fff;
      font-weight: 500;
      position: relative;
      transition: color 0.3s ease;
      padding: 8px 0;
    }

    .nav-links a:hover {
      color: #dc143c;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: #dc143c;
      transition: width 0.3s ease;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
      width: 100%;
    }

    .nav-links a.active {
      color: #dc143c;
    }

    .menu-toggle {
      display: none;
      font-size: 24px;
      cursor: pointer;
      color: #fff;
    }


/* =========================
   Hero Section
========================= */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));

}
.hero .overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
   text-shadow: 0 0 20px rgba(220,20,60,0.8);
  margin: 0;
}

.hero .tagline {
  font-size: 1.5rem;
  margin: 15px 0;
  color: #ddd;
}

.hero p {
  font-size: 1.2rem;
  margin: 10px 0 20px;
}

.btn {
  padding: 12px 25px;
  background: crimson;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
  box-shadow: 0 0 10px crimson;
}


.btn.primary {
  background: crimson;
  color: #fff;
}
.btn.secondary {
  background: transparent;
  border: 2px solid crimson;
  color: #fff;
}

.btn:hover {
  background: white;
  color: crimson;
  box-shadow: 0 0 20px crimson;
}

/* =========================
   Page Headers & Content
========================= */
.page-header {
  padding: 100px 20px 50px;
  background: linear-gradient(to right, #111, #000);
}

.page-header h1 {
  font-size: 2.5rem;
  color: crimson;
}

.page-header p {
  font-size: 1.2rem;
  color: #ddd;
}

.content {
  max-width: 900px;
  margin: auto;
  padding: 30px 20px;
  text-align: center;
}

.content ul {
  text-align: left; /* lists should stay left for readability */
  display: inline-block;
}

.content h2 {
  color: crimson;
  margin-top: 40px;
}

.content p, .content li {
  line-height: 1.6;
}

/* =========================
   Forms
========================= */
.form-box {
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #111;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(220,20,60,0.3);
  text-align: left;
}

.form-box h2 {
  color: crimson;
  text-align: center;
  margin-bottom: 10px;
}

.form-box label {
  font-weight: bold;
}

.form-box input,
.form-box textarea,
.form-box select {
  padding: 14px 16px;
  border: 1px solid #333;
  border-radius: 6px;
  outline: none;
  font-size: 1rem;
  background: #1a1a1a;
  color: white;
  transition: border 0.3s ease, background 0.3s ease;
}

.form-box input:focus,
.form-box textarea:focus,
.form-box select:focus {
  border-color: crimson;
  background: #222;
}

.form-box textarea {
  resize: vertical;
  min-height: 120px;
}

.form-box button {
  align-self: center;
  padding: 12px 25px;
  background: crimson;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(220,20,60,0.6);
}

.form-box button:hover {
  background: white;
  color: crimson;
  box-shadow: 0 0 20px crimson;
}

/* =========================
   Footer
========================= */
/* Footer */
    footer {
      background: #111;
      padding: 40px 5%;
      text-align: center;
      border-top: 1px solid #222;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 30px;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: #aaa;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: #dc143c;
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-bottom: 30px;
    }

    .social-links a {
      color: #aaa;
      font-size: 1.5rem;
      transition: all 0.3s ease;
    }

    .social-links a:hover {
      color: #dc143c;
      transform: translateY(-2px);
    }

    .footer-text {
      color: #666;
      font-size: 0.9rem;
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
      .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(17, 17, 17, 0.98);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        gap: 10px;
      }

      .nav-links.active {
        transform: translateY(0);
        opacity: 1;
      }

      .menu-toggle {
        display: block;
      }

      .hero {
        padding-top: 70px;
      }

      .hero-buttons {
        flex-direction: column;
        align-items: center;
      }

      .btn {
        width: 200px;
      }

      .content-section {
        padding: 60px 5%;
      }

      .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
      }
    }

    @media (max-width: 480px) {
      .stats-grid {
        grid-template-columns: 1fr;
      }
    }

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

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

    .slide-in-left {
      opacity: 0;
      transform: translateX(-50px);
      transition: all 0.8s ease;
    }

    .slide-in-left.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .slide-in-right {
      opacity: 0;
      transform: translateX(50px);
      transition: all 0.8s ease;
    }

    .slide-in-right.visible {
      opacity: 1;
      transform: translateX(0);
    }

/* =========================
   Tables
========================= */
table {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  border-collapse: collapse;
  background: #111;
  box-shadow: 0 0 10px #222;
}

table th, table td {
  padding: 15px;
  border-bottom: 1px solid #222;
}

table th {
  background: crimson;
  color: white;
  text-transform: uppercase;
}

table tr:hover {
  background: #1a1a1a;
}
/* =========================
   Slots Section
========================= */
.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px auto;
  max-width: 1100px;
  padding: 10px;
}

.team-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(220,20,60,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(220,20,60,0.6);
}

/* Slot number under logo */

.team-slot {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 18px;
  margin-bottom: 8px 0 12px;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.team-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 12px;
  border: 2px solid crimson;
  box-shadow: 0 0 12px rgba(220,20,60,0.5);
}

.team-card h3 {
  margin: 10px 0 5px;
  font-size: 1.3rem;
  color: crimson;
}

.team-card p {
  font-size: 0.95rem;
  color: #ddd;
}

/* View Details button */
.team-card .view-details {
  background: crimson;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 6px 16px rgba(220,20,60,0.35);
}
.team-card .view-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(220,20,60,0.5);
  opacity: 0.95;
}


/* =============== Modal =============== */
.modal {
  display: none; /* toggled via JS */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  padding: 24px;
}

.modal-content {
  background: #111;
  border: 1px solid #262626;
  color: #eee;
  width: min(720px, 96%);
  margin: 40px auto 0;
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: modalPop 160ms ease-out;
}

@keyframes modalPop {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal .close {
  float: right;
  font-size: 26px;
  font-weight: 700;
  color: #bbb;
  cursor: pointer;
}
.modal .close:hover { color: #fff; }

.modal h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: #fff;
}

.modal .meta {
  margin: 4px 0 14px;
  font-size: .95rem;
  color: #cfcfcf;
}

.modal .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed #2a2a2a;
}
.modal .row:first-of-type { border-top: none; }

.modal .row .label {
  color: #aaa;
  font-weight: 600;
}

.modal .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal .chip {
  background: #181818;
  border: 1px solid #262626;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .92rem;
  color: #e5e5e5;
}

/* Tournament Section Layout */
.tournament-section {
  margin: 40px auto;
  max-width: 1200px;
  padding: 10px;
}

.tournament-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center align if few */
  gap: 20px;
}

/* Tournament Card */
.tournament-card {
  background: linear-gradient(145deg, #1a1a1a, #292929);
  border-radius: 15px;
  padding: 20px;
  width: 280px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 0, 150, 0.4);
}

.tournament-card h3 {
  margin-top: 0;
  font-size: 20px;
  color: #ff4081;
}

.tournament-card p {
  margin: 5px 0;
  font-size: 14px;
  color: #ccc;
}

/* Buttons */
.tournament-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.tournament-actions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s;
}

.btn-register {
  background: #ff4081;
  color: white;
}
.btn-register:hover {
  background: #ff1c6a;
}

.btn-slots {
  background: #333;
  color: #fff;
}
.btn-slots:hover {
  background: #444;
}


/* Leaderboard Section */
.leaderboard {
  padding: 40px;
  color: white;
  text-align: center;
}

.top-three {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 40px;
}

.rank {
  background: linear-gradient(to bottom, #ff1c1c, #111);
  padding: 20px;
  border-radius: 15px;
  width: 200px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,0,0,0.5);
}

.rank img.team-logo {
  width: 80px;          /* Adjust size as needed */
  height: 80px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.rank h2 {
  font-size: 2rem;
  margin: 0;
}

.rank p {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 5px 0 0;
}

.rank-1 {
  transform: scale(1.2);
}

.leaderboard-table {
  width: 80%;
  margin: auto;
  border-collapse: collapse;
  font-size: 1rem;
}

.leaderboard-table th,
.leaderboard-table td {
  border: 1px solid #222;
  padding: 12px;
}

.leaderboard-table th {
  background: #ff1c1c;
  color: #fff;
  text-transform: uppercase;
}

.leaderboard-table tr:nth-child(even) {
  background: #222;
}
