/* TOURNAMENTS SECTION */
.tournaments-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: linear-gradient(135deg, #203a43, #1a2b43);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.4);
  color: #eee;
  font-family: "Roboto", sans-serif;
  text-align: center;
}

.tournaments-section h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.8em;
  color: #ffa500;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
  letter-spacing: 2px;
}

.tournament-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.tournament-card {
  background: linear-gradient(145deg, #1a2b43, #203a59);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 30px;
  width: 320px;
  color: #e0e0e0;
  position: relative;
  border: 1px solid rgba(255, 165, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 165, 0, 0.5);
}

.tournament-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8em;
  color: #ffb733;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(255, 183, 51, 0.6);
}

.tournament-details p {
  margin-bottom: 12px;
  font-size: 1em;
  font-weight: 500;
  color: #e0e0e0;
}

.tournament-details strong {
  color: #ffc966;
}

.btn-show-teams {
  background: linear-gradient(145deg, #ffa500, #ffb733);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 700;
  color: #121f3e;
  margin-top: 20px;
  font-family: "Orbitron", sans-serif;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.btn-show-teams:hover {
  background: linear-gradient(145deg, #ffb733, #ffc766);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
  transform: translateY(-2px);
}

/* TEAMS MODAL */
.teams-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1002;
}

.teams-popup {
  background: linear-gradient(145deg, #345871, #243c53);
  padding: 30px;
  border-radius: 15px;
  color: #fff;
  max-width: 800px;
  width: 95%;
  max-height: 80vh;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 165, 0, 0.3);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  color: #ff4c4c;
  font-weight: bold;
  transition: color 0.3s ease;
  z-index: 1003;
}

.modal-close:hover {
  color: #ff0000;
}

.modal-title {
  font-family: "Orbitron", sans-serif;
  color: #ffa500;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
  font-size: 2.2em;
}

/* ✅ NAYA: IDP Group Section - TABLE KE UPAR */
.idp-group-section {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(36, 60, 83, 0.8);
  border-radius: 10px;
  border-left: 4px solid #17a2b8;
  text-align: center;
}

.idp-group-info p {
  color: #ffc966;
  font-size: 1.1em;
  margin-bottom: 15px;
  font-weight: 600;
}

.btn-idp-group {
  background: linear-gradient(145deg, #28a745, #20c997);
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 700;
  color: white;
  font-family: "Orbitron", sans-serif;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-idp-group:hover {
  background: linear-gradient(145deg, #20c997, #28a745);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

/* TEAMS TABLE */
.teams-table-container {
  background: rgba(36, 60, 83, 0.8);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
}

.teams-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 1em;
}

.teams-table th {
  background: linear-gradient(145deg, #ffa500, #ffb733);
  color: #121f3e;
  padding: 15px;
  text-align: left;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.teams-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 165, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

.teams-table tr:hover td {
  background: rgba(255, 165, 0, 0.1);
}

.slot-number {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: #ffc966;
  font-size: 1.1em;
  text-align: center;
}

.team-name {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1.1em;
}

.btn-show-players {
  background: linear-gradient(145deg, #ffa500, #ffb733);
  color: #121f3e;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9em;
  transition: all 0.3s ease;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-show-players:hover {
  background: linear-gradient(145deg, #ffb733, #ffc766);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4);
}

.players-list {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid #ffa500;
}

.player {
  margin: 8px 0;
  color: #e0e0e0;
  font-size: 0.95em;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player:last-child {
  border-bottom: none;
}

.player strong {
  color: #ffc966;
}

.no-teams {
  color: #ff4c4c;
  font-style: italic;
  text-align: center;
  font-size: 1.2em;
  padding: 30px;
  font-family: "Roboto", sans-serif;
}

.loading {
  text-align: center;
  color: #ffc966;
  font-size: 1.1em;
  padding: 30px;
}

/* ✅ NAYA: IDP Verification Modal */
.idp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1003;
}

.idp-popup {
  background: linear-gradient(145deg, #345871, #243c53);
  padding: 30px;
  border-radius: 15px;
  color: #fff;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.idp-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  color: #ff4c4c;
  font-weight: bold;
  transition: color 0.3s ease;
  z-index: 1004;
}

.idp-close:hover {
  color: #ff0000;
}

.idp-title {
  font-family: "Orbitron", sans-serif;
  color: #ffa500;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.8em;
}

.idp-info {
  background: rgba(36, 60, 83, 0.8);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 3px solid #17a2b8;
}

.idp-info p {
  color: #e0e0e0;
  font-size: 0.95em;
  margin: 0;
  text-align: center;
}

.idp-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #ffc966;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1em;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 165, 0, 0.3);
  outline: none;
  font-size: 1em;
  font-family: "Roboto", sans-serif;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #ffa500;
  box-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.validation-message {
  font-size: 0.8em;
  margin-top: 5px;
  display: block;
  color: #ffc966;
}

.btn-verify {
  background: linear-gradient(145deg, #ffa500, #ffb733);
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 700;
  color: #121f3e;
  font-family: "Orbitron", sans-serif;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.btn-verify:hover {
  background: linear-gradient(145deg, #ffb733, #ffc766);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

.btn-verify:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.idp-status {
  display: none;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-top: 15px;
}

.status-success {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-error {
  background: rgba(255, 76, 76, 0.2);
  color: #ff4c4c;
  border: 1px solid #ff4c4c;
}

.status-warning {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .tournaments-section {
    padding: 20px;
    margin: 20px auto;
  }

  .tournament-card {
    width: 100%;
    max-width: 350px;
  }

  .teams-popup {
    width: 98%;
    padding: 20px;
    margin: 10px;
  }

  .modal-title {
    font-size: 1.8em;
  }

  .teams-table {
    font-size: 0.9em;
  }

  .teams-table th,
  .teams-table td {
    padding: 10px 8px;
  }

  .teams-table-container {
    padding: 10px;
  }

  .idp-popup {
    padding: 20px;
    width: 95%;
  }
  
  .idp-title {
    font-size: 1.5em;
  }
  
  .idp-group-info p {
    font-size: 1em;
  }
  
  .btn-idp-group {
    padding: 10px 20px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .tournaments-section h2 {
    font-size: 2.2em;
  }

  .tournament-title {
    font-size: 1.5em;
  }

  .teams-table {
    font-size: 0.8em;
  }

  .btn-show-players {
    padding: 6px 12px;
    font-size: 0.8em;
  }

  .idp-popup {
    padding: 15px;
  }
  
  .form-group input {
    padding: 10px;
    font-size: 0.9em;
  }
  
  .btn-verify {
    padding: 10px 20px;
    font-size: 1em;
  }
}