/* Styles for awards.php (night-sky navy and gold theme) */

.awards-page {
  --award-gold: #f5c542;
  --award-gold-deep: #c9971c;
  --award-gold-bg: linear-gradient(135deg, #b8860b, #f5c542);
  --award-silver: #c0c7d1;
  --award-silver-bg: linear-gradient(135deg, #7d8590, #d7dde4);
  --award-bronze: #d98a4a;
  --award-bronze-bg: linear-gradient(135deg, #8f4a1f, #d98a4a);
  --award-hm: #b9a7f0;
  --award-hm-bg: linear-gradient(135deg, #5b4aa8, #9f8ee6);
  --award-night: #0b1030;
  --award-glass: rgba(255, 255, 255, 0.05);
  --award-glass-border: rgba(255, 255, 255, 0.12);
  --award-text-muted: #a9b1d6;
}

/* ---------- Hero ---------- */
#awards-hero {
  min-height: auto;
  padding-bottom: 20px;
}

#awards-hero .hero-text {
  margin-bottom: 32px;
}

#awards-hero .hero-content {
  padding-bottom: 40px;
}

.award-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.award-hero-stat {
  position: relative;
  padding: 24px 14px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease;
}

.award-hero-stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--medal-bg);
}

.award-hero-stat:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-3px);
}

.award-hero-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--medal-bg);
  color: #1a0e00;
  font-size: 1.3rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.award-hero-value {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.award-hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--medal-color);
}

.award-hero-meta {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.award-hero-meta i {
  color: var(--award-gold);
  margin-right: 6px;
}

/* Per-medal colors shared by hero cards, table and recipient cards */
.award-gold { --medal-bg: var(--award-gold-bg); --medal-color: var(--award-gold); }
.award-silver { --medal-bg: var(--award-silver-bg); --medal-color: var(--award-silver); }
.award-bronze { --medal-bg: var(--award-bronze-bg); --medal-color: var(--award-bronze); }
.award-hm { --medal-bg: var(--award-hm-bg); --medal-color: var(--award-hm); }

/* ---------- Night section ---------- */
.awards-night {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 47% 32%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 66% 78%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 82% 24%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 92% 58%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(900px 400px at 50% 0%, rgba(245, 197, 66, 0.10), transparent 70%),
    linear-gradient(180deg, #100901 0%, var(--award-night) 18%, var(--award-night) 70%, #100901 100%);
  background-size: 400px 400px, 400px 400px, 400px 400px, 400px 400px, 400px 400px, 400px 400px, 100% 100%, 100% 100%;
}

.awards-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
}

.awards-section-title i {
  color: var(--award-gold);
}

/* ---------- Flags ---------- */
.award-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.award-country {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Grand Prizes ---------- */
.grand-prize-card {
  position: relative;
  height: 100%;
  padding: 30px 24px 26px;
  border: 1px solid rgba(245, 197, 66, 0.55);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 197, 66, 0.18), transparent 60%),
    var(--award-glass);
  text-align: center;
  box-shadow: 0 0 30px rgba(245, 197, 66, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.grand-prize-icon {
  display: block;
  font-size: 2.4rem;
  color: var(--award-gold);
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(245, 197, 66, 0.5));
}

.grand-prize-name {
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.grand-prize-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 6px;
  border-radius: 50px;
  background: var(--award-gold-bg);
  color: #1a0e00;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.grand-prize-titles,
.award-recipient-special {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.award-recipient-special {
  justify-content: flex-start;
  margin-top: 6px;
}

.special-prize-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.6);
  color: var(--award-gold);
  font-weight: 600;
  font-size: 0.85rem;
}

.special-prize-badge i {
  font-size: 0.75rem;
}

/* ---------- Tabs and filter pills ---------- */
.awards-tabs {
  gap: 10px;
}

.awards-tabs .nav-link,
.awards-night .media-filter button {
  border: 2px solid rgba(245, 197, 66, 0.7);
  border-radius: 50px;
  color: var(--award-gold);
  font-weight: 700;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.awards-tabs .nav-link {
  padding: 10px 26px;
}

.awards-tabs .nav-link.active,
.awards-tabs .nav-link:hover,
.awards-tabs .nav-link:focus-visible,
.awards-night .media-filter button.active,
.awards-night .media-filter button:hover,
.awards-night .media-filter button:focus-visible {
  background: var(--award-gold-bg);
  border-color: transparent;
  color: #1a0e00;
  box-shadow: 0 6px 20px rgba(245, 197, 66, 0.25);
}

.awards-night .media-filter .badge {
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
}

.awards-night .media-filter button.active .badge,
.awards-night .media-filter button:hover .badge {
  background: rgba(26, 14, 0, 0.2);
}

/* ---------- Medal table ---------- */
.awards-table-wrap {
  border: 1px solid rgba(245, 197, 66, 0.5);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 36px rgba(245, 197, 66, 0.1);
}

.awards-table {
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  min-width: 520px;
  font-size: 1.05rem;
}

.awards-table thead th {
  background: linear-gradient(180deg, #f7cf5a, #e0a92a);
  color: #1a0e00;
  font-weight: 800;
  border-bottom: 0;
  padding: 12px 16px;
  white-space: nowrap;
}

.awards-table abbr {
  text-decoration: none;
  cursor: help;
}

.awards-table tbody th,
.awards-table tbody td {
  padding: 10px 16px;
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.15s ease;
}

.awards-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.awards-table tbody tr:nth-child(odd) > * {
  background: rgba(255, 255, 255, 0.03);
}

.awards-table tbody tr:nth-child(even) > * {
  background: rgba(255, 255, 255, 0.07);
}

.awards-table tbody tr:hover > * {
  background: rgba(245, 197, 66, 0.14);
}

.awards-table tbody td {
  font-weight: 700;
}

.awards-table td.is-zero {
  color: #5d6690;
  font-weight: 400;
}

.awards-table tfoot th,
.awards-table tfoot td {
  background: linear-gradient(180deg, #f7cf5a, #e0a92a);
  color: #1a0e00;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 12px 16px;
  border-bottom: 0;
}

.awards-table .col-gold { box-shadow: inset 0 -4px 0 var(--award-gold-deep); }
.awards-table .col-silver { box-shadow: inset 0 -4px 0 #8a929c; }
.awards-table .col-bronze { box-shadow: inset 0 -4px 0 #8f4a1f; }
.awards-table .col-hm { box-shadow: inset 0 -4px 0 #5b4aa8; }

.awards-note {
  font-style: italic;
  color: var(--award-text-muted);
  font-size: 0.9rem;
}

/* ---------- Award recipients ---------- */
.award-search {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.award-search i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--award-text-muted);
}

.award-search .form-control {
  padding: 10px 16px 10px 42px;
  border-radius: 50px;
  border: 1px solid var(--award-glass-border);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.award-search .form-control::placeholder {
  color: var(--award-text-muted);
}

.award-search .form-control:focus {
  border-color: var(--award-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.2);
}

.award-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.award-group-title i {
  color: var(--medal-color);
}

.award-group-count {
  padding: 2px 12px;
  border-radius: 50px;
  background: var(--award-gold-bg);
  color: #1a0e00;
  font-size: 0.85rem;
}

.award-recipient {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--award-glass);
  border: 1px solid var(--award-glass-border);
  border-left: 4px solid var(--medal-color);
  transition: transform 0.2s ease, background 0.2s ease;
}

.award-recipient:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.award-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--medal-bg);
  color: #1a0e00;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.award-recipient-body {
  min-width: 0;
}

.award-recipient-name {
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.award-recipient .award-country {
  color: var(--award-text-muted);
  font-size: 0.92rem;
  gap: 8px;
}

.award-recipient .award-flag {
  width: 22px;
  height: 16px;
}

.award-recipient .special-prize-badge {
  font-size: 0.75rem;
  padding: 2px 10px;
}

.award-empty {
  color: var(--award-text-muted);
}

/* ---------- Related links ---------- */
.awards-more-label {
  color: var(--award-text-muted);
}

.awards-night .media-related a {
  border-color: rgba(245, 197, 66, 0.7);
  color: var(--award-gold);
}

.awards-night .media-related a:hover,
.awards-night .media-related a:focus-visible {
  background: var(--award-gold-bg);
  border-color: transparent;
  color: #1a0e00;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .award-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 5px;
  }

  .award-hero-stat {
    padding: 16px 8px 14px;
  }

  .award-hero-medal {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .award-hero-value {
    font-size: 2rem;
  }

  .award-hero-label {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 576px) {
  .awards-tabs .nav-link {
    padding: 8px 18px;
  }

  .awards-table {
    min-width: 0;
    font-size: 0.9rem;
  }

  .awards-table thead th,
  .awards-table tbody th,
  .awards-table tbody td,
  .awards-table tfoot th,
  .awards-table tfoot td {
    padding: 8px 6px;
  }

  .awards-table thead th:first-child,
  .awards-table tbody th,
  .awards-table tfoot th {
    padding-left: 10px;
  }

  .awards-table tfoot th,
  .awards-table tfoot td {
    font-size: 1rem;
  }

  .awards-table .award-country {
    gap: 6px;
  }

  .awards-table .award-flag {
    width: 22px;
    height: 16px;
  }
}
