
:root {
  --navy: #0b1935;
  --navy-light: #142443;
  --red: #e8322b;
  --gold: #f6bd27;
  --white: #f8f9fc;
  --muted: #a9b4c8;
  --line: rgba(255,255,255,0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */

.header {
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  background: var(--red);
  border-radius: 12px;
  font-size: 28px;
}

.brand strong {
  display: block;
  font-size: 20px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.navigation a {
  padding: 12px 15px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  transition: .3s;
}

.navigation a:hover {
  background: #243452;
  color: white;
}

/* HERO */

.hero {
  min-height: 850px;
  padding: 100px 5%;
  background:
    linear-gradient(90deg, rgba(11,25,53,.84) 0%, rgba(11,25,53,.64) 48%, rgba(11,25,53,.24) 100%),
    url(assets/dhruva-stadium-hero.png) center / cover no-repeat,
    linear-gradient(120deg, #0b1935, #151c39);
  
  overflow: hidden;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: bold;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(65px, 10vw, 130px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -4px;
}

.hero h1 span {
  color: var(--red);
}

.hero-subtitle {
  margin-top: 18px;
  color: var(--gold);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 4px;
}

.hero-description {
  max-width: 700px;
  margin-top: 30px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.8;
}

/* CHAMPION */

.champion-card {
  margin-top: 50px;
  width: min(750px, 100%);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  animation: appear .8s ease;
}

.champion-icon {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 15px;
  font-size: 55px;
}

.champion-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.champion-card h2 {
  font-size: clamp(30px, 5vw, 50px);
  margin: 10px 0;
}

.champion-card p {
  color: var(--muted);
  font-size: 13px;
}

/* PODIUM */

.podium {
  max-width: 750px;
  margin: 70px auto 0;
  height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 15px;
}

.podium-item {
  flex: 1;
  text-align: center;
  animation: rise .8s ease both;
}

.podium-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.podium-points {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 15px;
}

.podium-block {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  color: var(--navy);
  font-size: 70px;
  font-weight: 900;
  border-radius: 15px 15px 0 0;
}

.podium-item.first .podium-block {
  height: 250px;
  background: var(--gold);
}

.podium-item.second .podium-block {
  height: 180px;
  background: #c2c8d1;
}

.podium-item.third .podium-block {
  height: 140px;
  background: #c47a4b;
}

/* SECTIONS */

.section {
  padding: 90px 5%;
}

.section h2 {
  font-size: clamp(35px, 6vw, 65px);
  margin-bottom: 35px;
  font-weight: 900;
}

.section h2 span {
  color: var(--red);
}

.category-section {
  background: #101f3e;
}

.table-wrapper {
  overflow-x: auto;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th {
  text-align: left;
  padding: 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  background: rgba(255,255,255,.04);
}

td {
  padding: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

tbody tr:hover {
  background: rgba(255,255,255,.05);
}

.rank-cell {
  color: var(--gold);
  font-weight: bold;
}

.points-cell {
  font-size: 22px;
  font-weight: bold;
}

/* EVENTS */

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-card {
  padding: 25px;
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: .3s;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.event-icon {
  font-size: 40px;
}

.event-card h3 {
  font-size: 25px;
  margin: 15px 0;
}

.event-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.event-tag {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  font-size: 11px;
}

/* SEARCH */

#participantSearch {
  width: 100%;
  padding: 16px;
  margin-bottom: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--navy-light);
  color: white;
  outline: none;
}

#participantSearch:focus {
  border-color: var(--gold);
}

/* FOOTER */

footer {
  padding: 40px 5%;
  text-align: center;
  border-top: 1px solid var(--line);
}

footer h3 {
  font-size: 25px;
  margin-bottom: 15px;
}

footer p {
  color: var(--muted);
  font-size: 12px;
  margin: 8px;
}

/* ANIMATIONS */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE RESPONSIVE */

@media (max-width: 900px) {
  .header {
    flex-direction: column;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .header {
    align-items: flex-start;
  }

  .navigation {
    gap: 5px;
  }

  .navigation a {
    padding: 10px;
    font-size: 11px;
  }

  .hero {
    padding: 70px 5%;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .champion-card {
    padding: 15px;
    gap: 15px;
  }

  .champion-icon {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }

  .podium {
    height: 280px;
    gap: 8px;
  }

  .podium-name {
    font-size: 14px;
  }

  .podium-item.first .podium-block {
    height: 210px;
  }

  .podium-item.second .podium-block {
    height: 150px;
  }

  .podium-item.third .podium-block {
    height: 115px;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }
}

/* Coordinator Login Page */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #080d1a;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.login-card h1 {
  text-align: center;
  color: #f5b942;
  margin-bottom: 8px;
}

.login-subtitle {
  text-align: center;
  color: #aab4c8;
  margin-bottom: 28px;
}

.login-card label {
  display: block;
  color: #e8edf7;
  margin: 16px 0 8px;
}

.login-card input {
  width: 100%;
  padding: 13px;
  background: #080d1a;
  border: 1px solid #34415b;
  border-radius: 8px;
  color: white;
  font-size: 15px;
}

.login-card button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.login-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#loginMessage {
  text-align: center;
  margin-top: 16px;
}

.back-link {
  display: block;
  margin-top: 24px;
  text-align: center;
  color: #f5b942;
  text-decoration: none;
}

/* Admin Dashboard */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6%;
  background: #111a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-header h1 {
  color: #f5b942;
  margin: 0;
}

.admin-header h1 span {
  color: #e63946;
}

.admin-header p {
  color: #aab4c8;
  margin-top: 6px;
}

.logout-button {
  padding: 12px 22px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
}

.admin-welcome {
  margin-bottom: 28px;
}

.admin-welcome h2 {
  color: #f5b942;
  margin-bottom: 8px;
}

.admin-welcome p {
  color: #aab4c8;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.admin-stat-card {
  padding: 24px;
  background: #111a2e;
  border: 1px solid #26344e;
  border-radius: 14px;
}

.admin-stat-card p {
  color: #aab4c8;
}

.admin-stat-card h3 {
  color: #f5b942;
  font-size: 32px;
  margin-top: 12px;
}

.admin-section {
  padding: 26px;
  margin-bottom: 24px;
  background: #111a2e;
  border: 1px solid #26344e;
  border-radius: 14px;
}

.admin-section h2 {
  color: #f5b942;
  margin-bottom: 20px;
}

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-form input,
.admin-form select {
  flex: 1;
  min-width: 180px;
  padding: 13px;
  background: #080d1a;
  border: 1px solid #34415b;
  border-radius: 8px;
  color: white;
}

.admin-form button {
  padding: 13px 22px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #080d1a;
  border: 1px solid #26344e;
  border-radius: 8px;
  color: #e8edf7;
}

.admin-note {
  color: #aab4c8;
  line-height: 1.6;
}

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

  .admin-header {
    padding: 20px;
  }

  .admin-container {
    padding: 24px 16px;
  }

  .admin-section {
    padding: 20px;
  }
}
.page-title { font-size: clamp(42px, 8vw, 84px); line-height: 1; margin: 15px 0 32px; }
.page-title span { color: var(--red); }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; color: var(--muted); }
.filter-row select { min-width: 150px; padding: 11px 14px; background: var(--navy-light); border: 1px solid var(--line); border-radius: 8px; color: white; }
.section-link { margin-top: 22px; color: var(--gold); }
.announcement-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 18px; }
.announcement-card, .team-card { padding: 24px; background: var(--navy-light); border: 1px solid var(--line); border-radius: 16px; }
.announcement-card h3, .team-card h2 { margin: 12px 0; font-size: 24px; }
.announcement-card ol, .team-card ul { padding-left: 20px; line-height: 2; }
.announcement-card li span, .team-card li span { color: var(--muted); }
.team-card ul { list-style: none; padding: 0; }
.placement-fields { display: contents; }
.placement-fields select { flex: 1; min-width: 220px; padding: 13px; background: #080d1a; border: 1px solid #34415b; border-radius: 8px; color: white; }
.result-admin-card { gap: 18px; }
.result-admin-card p { color: var(--muted); margin-top: 8px; line-height: 1.5; }
.result-admin-card button { padding: 11px 16px; border: 0; border-radius: 8px; color: #0b1935; background: var(--gold); font-weight: bold; cursor: pointer; }
.delete-participant-button { padding: 8px 13px; border: 1px solid rgba(230,57,70,.55); border-radius: 7px; background: rgba(230,57,70,.16); color: #ff8a91; font-weight: bold; cursor: pointer; }
.delete-participant-button:hover { background: #e63946; color: white; }
.delete-participant-button:disabled { opacity: .55; cursor: wait; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 9px; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.primary-link { color: #101a2e; background: var(--gold); }
.secondary-link { color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); }
.primary-link:hover, .secondary-link:hover { transform: translateY(-2px); }
.primary-link:focus-visible, .secondary-link:focus-visible, .navigation a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.navigation a[aria-current="page"] { color: white; background: rgba(255,255,255,.09); }
.admin-form button:hover, .logout-button:hover { filter: brightness(1.12); }
.admin-form button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) { .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; } .hero-actions a { width: 100%; } }

.delete-entry-button { flex: 0 0 auto; padding: 8px 13px; border: 1px solid rgba(230,57,70,.55); border-radius: 7px; background: rgba(230,57,70,.16); color: #ff8a91; font-weight: 700; cursor: pointer; }
.delete-entry-button:hover { background: #e63946; color: white; }
.delete-entry-button:disabled { opacity: .55; cursor: wait; }
.secondary-admin-button { padding: 13px 18px; border: 1px solid #52617c !important; background: #26344e !important; }
.secondary-admin-button:disabled { opacity: .5; cursor: not-allowed; }
.publish-result-button { padding: 11px 16px; border: 0; border-radius: 8px; color: #0b1935; background: var(--gold); font-weight: 700; cursor: pointer; }
.result-admin-card { flex-wrap: wrap; }
.result-admin-card > div { flex: 1 1 360px; min-width: 0; }
.result-admin-card > span { color: var(--muted); }
