/* Using system fonts instead of TT Norms to avoid 404 errors */

:root {
  /* New color scheme */
  --dark: #0e152a;
  --gold: #d7b241;
  --gold-dark: #b6a57e;
  --light-beige: #f4f1ec;
  --dark-blue: #102c46;

  /* Legacy variable mappings for compatibility */
  --royal-blue: #102c46;
  --royal-blue-dark: #0e152a;
  --royal-blue-light: #1a4060;
  --turquoise: #d7b241;
  --coral: #d7b241;
  --coral-light: #b6a57e;
  --reef-teal: #b6a57e;
  --reef-cyan: #d7b241;
  --bg: #f4f1ec;
  --surface: #ffffff;
  --text: #0e152a;
  --muted: #4a5568;
  --shadow: 0 4px 12px rgba(14, 21, 42, 0.15);
  --shadow-lg: 0 10px 30px rgba(14, 21, 42, 0.2);
}

* { 
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f4f1ec 0%, #e8e4dc 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { 
  color: var(--royal-blue); 
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { 
  color: var(--coral); 
}

/* Mobile-first Header */
header {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  /* box-shadow removed - was causing visual line effect during page load */
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo-container:hover {
  opacity: 0.85;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-img.custom-logo {
  width: auto;
  max-width: 140px;
  max-height: 48px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.logo-subtitle {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Mobile Language Switcher (next to hamburger) */
.mobile-lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
}

.mobile-lang-btn {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-lang-btn.active {
  color: var(--dark-blue);
  background: var(--gold);
  border-color: var(--gold);
}

.mobile-lang-btn:hover:not(.active) {
  color: white;
  border-color: rgba(255,255,255,0.6);
}

/* Show language switcher on all screen sizes */
@media (min-width: 1024px) {
  .mobile-lang-switcher {
    display: flex;
  }
}

/* Mobile Quick Nav Bar (non-logged-in users) */
.mobile-quick-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--dark-blue);
  padding: 8px 16px;
  position: sticky;
  top: 72px; /* Below header */
  z-index: 99;
  /* Removed border-bottom to avoid double-line effect with header shadow */
}

/* Admin quick nav styling - gold border to indicate admin mode */
.admin-quick-nav {
  border-bottom: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
}

.quick-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.8);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.quick-nav-item:hover,
.quick-nav-item:active {
  color: var(--gold);
  background: rgba(255,255,255,0.1);
}

.quick-nav-item svg {
  width: 24px;
  height: 24px;
}

/* Hide text labels on mobile */
.quick-nav-item .nav-label {
  display: none;
  font-size: 14px;
  font-weight: 500;
}

/* Login button highlight */
.quick-nav-login {
  background: var(--gold);
  color: var(--dark-blue) !important;
}

.quick-nav-login:hover,
.quick-nav-login:active {
  background: white;
  color: var(--dark-blue) !important;
}

/* Logout button */
.quick-nav-logout {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
}

.quick-nav-logout:hover,
.quick-nav-logout:active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Notification with badge */
.quick-nav-notif {
  position: relative;
}

.quick-nav-badge {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  text-align: center;
  line-height: 16px;
}

.quick-nav-badge.has-notifications {
  display: block;
}

/* Admin notification badges (Facebook-style) */
.admin-badge {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
  animation: pulse-admin-badge 2s infinite;
  z-index: 10;
  box-sizing: border-box;
}

.admin-badge.has-count {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Admin badges in hamburger menu nav columns */
.nav-col-link-badge {
  position: relative;
}

.nav-col-badge {
  display: none;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ef4444;
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

.nav-col-badge.has-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse-admin-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Show quick nav on all screen sizes - same navigation for mobile and desktop */
@media (min-width: 1024px) {
  .mobile-quick-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    padding: 8px 24px;
    position: sticky;
    top: 72px;
    z-index: 99;
  }

  /* Show text labels on desktop */
  .quick-nav-item {
    width: auto;
    padding: 10px 20px;
    gap: 8px;
  }

  .quick-nav-item .nav-label {
    display: inline;
  }

  .quick-nav-login,
  .quick-nav-logout {
    padding: 10px 24px;
  }
}

/* Desktop nav links - HIDDEN (using quick nav bar instead) */
.desktop-nav-links {
  display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  background: transparent;
  border: none;
  color: var(--gold);
  padding: 8px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2001;
}

/* Hide hamburger for non-logged-in users on mobile (they use quick nav) */
body:not(.logged-in) .menu-toggle {
  /* Will be controlled via body class */
}

.menu-toggle:hover {
  opacity: 0.8;
}

.menu-toggle.open {
  color: var(--gold);
  position: fixed;
  top: 16px;
  right: 16px;
}

/* Mobile Navigation - Full Screen */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 20px 40px;
}

nav.open {
  opacity: 1;
  visibility: visible;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
}

.nav-logo img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}

.nav-logo-text {
  text-align: center;
}

.nav-logo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.nav-logo-subtitle {
  font-size: 14px;
  color: white;
  font-weight: 600;
  margin-top: 4px;
}

nav a,
nav button {
  display: block;
  padding: 10px 20px;
  color: #fff;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
  border-bottom: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav button:hover {
  color: var(--gold);
}

/* Primary CTA Button in Nav */
nav a.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--royal-blue);
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  margin: 4px 20px 10px;
  width: calc(100% - 40px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
  border-bottom: none;
}

nav a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(218, 165, 32, 0.5);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

/* Vote Button in Nav - Compact */
nav a.btn-vote {
  background: var(--coral, #ef4444);
  color: var(--dark-blue);
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  margin: 10px 20px 4px;
  width: calc(100% - 40px);
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  border-bottom: none;
}

nav a.btn-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  background: #dc2626;
}


/* Admin notification badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.nav-badge-link,
.admin-bar-link {
  display: flex;
  align-items: center;
  position: relative;
}

/* Mobile Two-Column Nav for Admin */
.nav-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px;
  margin-bottom: 12px;
}

.nav-column {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 8px;
}

.nav-column-admin {
  background: rgba(215, 178, 65, 0.1);
  border: 1px solid rgba(215, 178, 65, 0.3);
}

.nav-column-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.nav-column a {
  padding: 8px !important;
  font-size: 14px !important;
  text-align: left !important;
  border-radius: 6px;
}

.nav-column a:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* Desktop main nav for admin - Hidden on Mobile */
.nav-main-desktop {
  display: none;
}

/* Mobile logout button */
.nav-logout-mobile {
  display: block;
}

/* Nav Link Icons */
.nav-link-icon {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-align: left !important;
}

.nav-link-icon svg.nav-icon,
nav .nav-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-link-icon:hover .nav-icon {
  opacity: 1;
}

/* Nav Button Icons (for CTA buttons) */
.nav-btn-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-btn-icon svg.nav-icon-btn,
nav .nav-icon-btn {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0;
}

/* Notification Badge in Nav */
.nav-icon-wrapper {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.nav-notif-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ef4444;
  color: white;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
  animation: pulse-badge 2s infinite;
}

.nav-notif-badge.has-notifications {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Notification link highlight when has notifications */
.nav-notif-link:has(.has-notifications) {
  color: var(--gold) !important;
}

.nav-notif-link:has(.has-notifications) .nav-icon,
.nav-notif-link:has(.has-notifications) .nav-col-icon {
  stroke: var(--gold);
}

/* Nav Column Icons (for two-column admin layout) */
.nav-col-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  text-align: left !important;
}

.nav-col-link svg.nav-col-icon,
.nav-column .nav-col-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-col-link:hover .nav-col-icon {
  opacity: 1;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  text-decoration: none;
}

.btn.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--royal-blue);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Button subtext - wraps to second line on mobile */
.btn-subtext {
  display: inline;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .btn-subtext {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
  }

  .btn {
    flex-direction: column;
  }
}

.btn.coral {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn.secondary { 
  background: #fff;
  color: var(--royal-blue); 
  border: 2px solid var(--royal-blue);
  box-shadow: none;
}

.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn.gold:hover {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.btn.coral:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn:disabled { 
  background: #cbd5e1; 
  cursor: not-allowed; 
  transform: none;
  box-shadow: none;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--royal-blue);
}

label { 
  font-weight: 600; 
  display: block; 
  margin-bottom: 8px;
  color: var(--text);
}

.table { 
  width: 100%; 
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td { 
  padding: 12px 8px; 
  text-align: left; 
  border-bottom: 1px solid #e2e8f0;
}
.table th { 
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  color: #fff;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--royal-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  border-radius: 20px;
  padding: 32px 24px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.hero-logo {
  text-align: center;
  margin-bottom: 24px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 32px;
  margin: 0 0 16px;
  line-height: 1.2;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-text p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-meta {
  margin-top: 16px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.hero-info {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-info h3 {
  color: var(--gold);
  margin: 0 0 12px;
  font-size: 20px;
}

.hero-info ol {
  margin: 0;
  padding-left: 20px;
  color: rgba(255,255,255,0.95);
}

.hero-info li {
  margin-bottom: 8px;
}

.cards-grid { 
  display: grid; 
  gap: 16px;
  grid-template-columns: 1fr;
}

.showcase-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.showcase-card img { 
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.showcase-card h3 {
  margin: 0 0 8px;
  color: var(--royal-blue);
  font-size: 20px;
}

.showcase-card p {
  margin: 4px 0;
  color: var(--muted);
}

.alert { 
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
}

.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--royal-blue-dark) 100%);
  margin-top: 40px;
  font-size: 13px;
}

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

.footer-powered {
  margin-bottom: 6px;
  font-weight: 500;
}

.footer-powered a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.footer-powered a:hover {
  color: white;
}

.footer-powered a:hover {
  text-decoration: underline;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.95);
}

.recording {
  display: grid;
  gap: 12px;
}

.video-preview { 
  width: 100%;
  background: #000;
  border-radius: 16px;
  min-height: 240px;
}

.video-wrapper {
  position: relative;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(48px, 12vw, 96px);
  font-weight: 800;
  color: white;
  background: rgba(0,0,0,0.35);
  border-radius: 16px;
  pointer-events: none;
}

/* Judge Scoring Mobile UI */
.judge-scoring-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.voice-input-section {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.voice-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--royal-blue);
  font-size: 18px;
  padding: 16px 32px;
  width: 100%;
  max-width: 300px;
  gap: 10px;
}

.voice-btn .voice-icon {
  font-size: 24px;
}

.voice-btn.recording {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6); }
}

.voice-status {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  min-height: 20px;
}

.voice-status:empty {
  display: none;
}

.voice-status.active {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.voice-status.processing {
  background: rgba(251, 191, 36, 0.2);
  color: #fef3c7;
}

.voice-status.success {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

.voice-status.error {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.voice-hint {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin: 12px 0 0;
}

/* Star Rating Buttons */
.score-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.score-category {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.score-category label {
  display: block;
  font-weight: 700;
  color: var(--royal-blue);
  margin-bottom: 12px;
  font-size: 15px;
}

.star-rating {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.star-btn {
  flex: 1;
  aspect-ratio: 1;
  max-width: 60px;
  border: 3px solid #e2e8f0;
  background: white;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-btn:hover {
  border-color: var(--royal-blue-light);
  color: var(--royal-blue);
}

.star-btn.selected {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: var(--gold-dark);
  color: var(--royal-blue);
}

.star-btn.active {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Score Summary */
.score-summary {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: center;
  font-size: 18px;
}

.score-summary strong {
  font-size: 24px;
  color: var(--gold);
}

/* Submit Button */
.submit-score-btn {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  margin-top: 8px;
}

.submit-score-btn:disabled {
  background: #cbd5e1;
  box-shadow: none;
}

.score-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

/* Judge Container - Clean Mobile Layout */
.judge-container {
  max-width: 600px;
  margin: 0 auto;
}

.judge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.back-link {
  font-weight: 600;
  color: var(--royal-blue);
}

.queue-info {
  background: var(--royal-blue);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

/* Performer Info */
.performer-info {
  text-align: center;
  margin-bottom: 16px;
}

.performer-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--royal-blue);
}

.performer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.performer-meta .badge.secondary {
  background: #e2e8f0;
  color: var(--text);
}

.meta-text {
  color: var(--muted);
  font-size: 14px;
}

/* Video Section */
.video-section {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.no-video {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  color: #94a3b8;
}

.no-video span {
  font-size: 48px;
  margin-bottom: 8px;
}

/* Decision Section */
.decision-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.decision-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.reject-btn, .accept-btn {
  padding: 20px;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  font-size: 32px;
}

.reject-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.reject-btn:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.accept-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.accept-btn:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.decision-hint {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Already Judged */
.already-judged {
  padding: 16px;
}

.already-judged p {
  margin: 0 0 12px;
  color: var(--muted);
}

.decision-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.decision-badge.accept {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.decision-badge.reject {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.your-score {
  font-size: 18px;
  font-weight: 600;
  color: var(--royal-blue);
  margin: 12px 0;
}

/* Scoring Section */
.scoring-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.scoring-section h3 {
  margin: 0 0 20px;
  text-align: center;
  color: var(--royal-blue);
}

.scoring-section.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

/* Comment Section */
.comment-section {
  margin-top: 20px;
}

.comment-section label {
  font-size: 14px;
  color: var(--muted);
}

.comment-section textarea {
  min-height: 80px;
  resize: vertical;
}

/* Admin Section */
.admin-section {
  margin-top: 24px;
}

.admin-section .card {
  margin-bottom: 16px;
}

.admin-section h3 {
  margin: 0 0 16px;
  color: var(--royal-blue);
  font-size: 18px;
}

/* Tablet and up */
@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-text h1 {
    font-size: 42px;
  }
  
  .logo-title {
    font-size: 18px;
  }
  
  .logo-subtitle {
    font-size: 13px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  header {
    padding: 0;
  }

  .header-top {
    padding: 16px 24px;
    justify-content: space-between;
    max-width: 1200px;
  }

  .logo-img {
    width: 56px;
    height: 56px;
  }

  .logo-title {
    font-size: 20px;
  }

  .logo-subtitle {
    font-size: 14px;
  }

  .menu-toggle {
    display: none;
  }

  /* Hide the hamburger nav on desktop - using quick nav bar instead */
  nav {
    display: none !important;
  }


  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-text h1 {
    font-size: 48px;
  }

  .hero-logo img {
    width: 33%;
    max-width: 300px;
  }

  .main-container {
    padding: 32px 20px 80px;
  }
}

/* PWA Splash Screen Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
