/**
 * FUNDAAHE - Competitions Page Styles
 * Dark immersive experience for competitions (intentional)
 * Uses gold accents from branding palette
 */

/* ===== COMPETITIONS HERO ===== */
#header {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#header.scrolled {
  background: rgba(10, 14, 26, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom-color: rgba(255, 213, 79, 0.15);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4) !important;
}

html.light #header.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06) !important;
  border-bottom-color: rgba(29, 78, 137, 0.08);
}

html.light #header.scrolled h1 {
  color: var(--teal) !important;
}

html.light #header.scrolled .navbar-link {
  color: #374151 !important;
}

html.light #header.scrolled .navbar-link:hover {
  color: var(--teal) !important;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes shine-sweep {
  0% { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(200%) skewX(-20deg); }
}

.hero-gradient {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1525 50%, #0a0e1a 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-gentle 8s ease-in-out infinite;
}

.delay-0 {
  animation-delay: 0s;
}

.delay-2000 {
  animation-delay: 2s;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: #FFD54F;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD54F, transparent);
  transform: translateX(-50%);
  transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

/* ===== COMPETITION SECTIONS ===== */
.comp-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .comp-section {
    min-height: 100vh;
    padding: 4rem 0;
  }
}

.comp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 60%, rgba(3,136,138,0.10) 0%, transparent 50%),
              radial-gradient(ellipse at 85% 40%, rgba(29,78,137,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.comp-section:nth-child(even) {
  background: linear-gradient(135deg, #0a0e1a 0%, #0b1120 50%, #0a0e1a 100%);
}

.comp-section:nth-child(odd) {
  background: linear-gradient(135deg, #09111e 0%, #0c1422 50%, #09111e 100%);
}

.empty-state-section {
  min-height: 70vh;
  padding: 4rem 0;
}

/* ===== HERO BADGE ===== */
.hero-badge {
  background: rgba(255,213,79,0.1);
}

.text-gradient-gold-animated {
  background: linear-gradient(90deg, #FFD54F, #FFE68F, #FFD54F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-bounce {
  animation: scroll-bounce 2s ease infinite;
}

/* ===== CTA SECTION ===== */
.cta-section-dark {
  background: linear-gradient(180deg, #080810, #0a0e1a);
}

.cta-glow {
  position: relative;
}

.cta-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,213,79,0.1), transparent, rgba(255,213,79,0.05));
  border-radius: 2rem;
  filter: blur(40px);
}

/* ===== COMPETITION IMAGE WRAPPER ===== */
.comp-image-wrapper {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,213,79,0.08);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-section:hover .comp-image-wrapper {
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(3,136,138,0.2), 0 0 80px rgba(29,78,137,0.1);
  transform: translateY(-3px);
}

/* Gradient border overlay */
.comp-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(3,136,138,0.7), rgba(29,78,137,0.5), rgba(255,213,79,0.4)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 10;
  pointer-events: none;
}

.comp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.comp-section:hover .comp-image {
  transform: scale(1.05);
  filter: brightness(1.05) contrast(1.02);
}

.comp-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,0.3) 0%, transparent 50%, rgba(10,14,26,0.5) 100%);
  pointer-events: none;
}

/* ===== COMPETITION STATUS BADGES ===== */
.comp-status {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-status.open {
  color: #22c55e;
  border-color: rgba(34,197,94,0.5);
  box-shadow: 0 0 30px rgba(34,197,94,0.25);
}

.comp-status.open::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.comp-status.closed {
  color: #9ca3af;
  border-color: rgba(156,163,175,0.25);
}

/* ===== YEAR BADGE ===== */
.comp-year {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(255,213,79,0.25), rgba(255,213,79,0.15));
  border: 1px solid rgba(255,213,79,0.4);
  border-radius: 100px;
  color: #FFD54F;
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 20;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255,213,79,0.2);
}

/* ===== COMPETITION CONTENT ===== */
.comp-content {
  padding: 2rem 0;
  position: relative;
}

@media (min-width: 1024px) {
  .comp-content {
    padding: 3rem 0;
  }
}

.comp-number {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0.08;
  position: absolute;
  top: -10px;
  right: 0;
  color: #FFD54F;
  pointer-events: none;
  font-style: italic;
  z-index: 0;
}

@media (min-width: 1024px) {
  .comp-number {
    top: -20px;
  }
}

.comp-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.comp-section:hover .comp-title {
  background: linear-gradient(90deg, #FFD54F, var(--teal-light), #FFD54F);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 3s ease infinite;
}

.comp-desc {
  color: rgba(200, 220, 235, 0.7);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .comp-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }
}

/* ===== META GRID ===== */
.comp-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .comp-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

.meta-card {
  padding: 0.875rem;
  background: rgba(3,136,138,0.04);
  border: 1px solid rgba(3,136,138,0.12);
  border-radius: 0.75rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.meta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(3,136,138,0.12), transparent);
  transition: left 0.6s ease;
}

.meta-card:hover::before {
  left: 100%;
}

@media (min-width: 640px) {
  .meta-card {
    padding: 1.25rem;
    border-radius: 1rem;
  }
}

.meta-card:hover {
  background: rgba(3,136,138,0.10);
  border-color: rgba(3,136,138,0.30);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(3,136,138,0.15);
}

.meta-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(3,136,138,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--teal-light);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .meta-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
  }
}

.meta-card-label {
  font-size: 0.65rem;
  color: rgba(3,136,138,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .meta-card-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}

.meta-card-value {
  font-size: 0.85rem;
  color: rgba(220, 235, 245, 0.95);
  font-weight: 600;
}

@media (min-width: 640px) {
  .meta-card-value {
    font-size: 1rem;
  }
}

/* ===== CATEGORIES ===== */
.comp-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .comp-categories {
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
}

.comp-category {
  padding: 0.4rem 0.875rem;
  background: linear-gradient(135deg, rgba(3,136,138,0.15), rgba(29,78,137,0.10));
  border: 1px solid rgba(3,136,138,0.30);
  border-radius: 100px;
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.comp-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(3,136,138,0.2), transparent);
  transition: left 0.5s ease;
}

.comp-category:hover::before {
  left: 100%;
}

@media (min-width: 640px) {
  .comp-category {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
}

.comp-category:hover {
  background: rgba(3,136,138,0.25);
  border-color: rgba(3,136,138,0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(3,136,138,0.2);
}

/* ===== ACTION BUTTONS ===== */
.comp-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .comp-actions {
    gap: 1rem;
  }
}

.btn-epic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #FFD54F, #FFC107);
  color: #0a0e1a;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 0.875rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(255,213,79,0.3);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 160px;
}

@media (min-width: 640px) {
  .btn-epic {
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 1rem;
    flex: 0 0 auto;
  }
}

.btn-epic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-epic:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255,213,79,0.4);
}

.btn-epic:hover::before {
  left: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(3,136,138,0.08);
  border: 2px solid rgba(3,136,138,0.25);
  color: var(--teal-light);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.875rem;
  transition: all 0.3s;
  flex: 1;
  min-width: 140px;
}

@media (min-width: 640px) {
  .btn-ghost {
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 1rem;
    flex: 0 0 auto;
  }
}

.btn-ghost:hover {
  background: rgba(3,136,138,0.18);
  border-color: rgba(3,136,138,0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(3,136,138,0.2);
}

/* ===== DIVIDER LINE ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(3,136,138,0.3) 30%, rgba(3,136,138,0.6) 50%, rgba(3,136,138,0.3) 70%, transparent 100%);
  margin: 0;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(3,136,138,0.8);
}

/* ===== CTA SECTION DETAILED ===== */
.cta-glow-box {
  position: relative;
  background: linear-gradient(135deg, rgba(255,213,79,0.1), rgba(255,213,79,0.02));
  border: 1px solid rgba(255,213,79,0.2);
  border-radius: 1.5rem;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cta-glow-box {
    border-radius: 2rem;
    padding: 4rem 2rem;
  }
}

@media (min-width: 1024px) {
  .cta-glow-box {
    padding: 5rem;
  }
}

.cta-glow-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent, #FFD54F, transparent, #FFD54F, transparent);
  border-radius: inherit;
  animation: gradient-shift 4s linear infinite;
  opacity: 0.5;
  z-index: -1;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #FFD54F, #FFC107);
  color: #0a0e1a;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 0.875rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(255,213,79,0.4);
}

@media (min-width: 640px) {
  .btn-cta {
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    border-radius: 1rem;
  }
}

@media (min-width: 1024px) {
  .btn-cta {
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    box-shadow: 0 15px 50px rgba(255,213,79,0.4);
  }
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255,213,79,0.5);
}

@media (min-width: 1024px) {
  .btn-cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255,213,79,0.5);
  }
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */

html.light .hero-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, var(--navy) 100%);
}

html.light .nav-link {
  color: rgba(255,255,255,0.7);
}

html.light .nav-link:hover,
html.light .nav-link.active {
  color: #FFD54F;
}

html.light .cta-section-dark {
  background: linear-gradient(180deg, var(--navy-dark), var(--navy));
}

html.light .comp-section {
  background: #E8EEF4;
}

html.light .comp-title {
  color: var(--navy);
}

html.light .comp-section:hover .comp-title {
  background: linear-gradient(90deg, var(--teal), var(--navy), var(--teal));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.light .comp-desc {
  color: #374151;
}

html.light .comp-number {
  color: var(--navy);
  opacity: 0.06;
}

html.light .meta-card {
  background: rgba(29,78,137,0.03);
  border-color: rgba(29,78,137,0.08);
}

html.light .meta-card:hover {
  background: rgba(3,136,138,0.05);
  border-color: rgba(3,136,138,0.15);
}

html.light .meta-card-icon {
  background: rgba(3,136,138,0.08);
  color: var(--teal);
}

html.light .meta-card-label {
  color: #4b5563;
}

html.light .meta-card-value {
  color: var(--navy);
}

html.light .comp-category {
  background: linear-gradient(135deg, rgba(3,136,138,0.08), rgba(3,136,138,0.04));
  border-color: rgba(3,136,138,0.2);
  color: var(--teal);
}

html.light .comp-category:hover {
  background: rgba(3,136,138,0.12);
  box-shadow: 0 5px 20px rgba(3,136,138,0.1);
}

html.light .comp-year {
  background: linear-gradient(135deg, rgba(3,136,138,0.15), rgba(3,136,138,0.08));
  border-color: rgba(3,136,138,0.3);
  color: var(--teal);
  box-shadow: 0 4px 20px rgba(3,136,138,0.15);
}

html.light .comp-status.open {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
}

html.light .btn-epic {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  box-shadow: 0 6px 20px rgba(3,136,138,0.25);
}

html.light .btn-epic:hover {
  box-shadow: 0 10px 30px rgba(3,136,138,0.35);
}

html.light .btn-ghost {
  background: rgba(3,136,138,0.06);
  border: 2px solid rgba(3,136,138,0.2);
  color: var(--teal);
}

html.light .btn-ghost:hover {
  background: rgba(3,136,138,0.12);
  border-color: rgba(3,136,138,0.4);
  color: var(--teal-dark);
  box-shadow: 0 8px 25px rgba(3,136,138,0.15);
}

html.light .section-divider {
  background: linear-gradient(90deg, transparent 0%, rgba(3,136,138,0.2) 30%, rgba(3,136,138,0.4) 50%, rgba(3,136,138,0.2) 70%, transparent 100%);
}

html.light .section-divider::after {
  background: var(--teal);
  box-shadow: 0 0 15px rgba(3,136,138,0.5);
}

html.light .hero-badge {
  background: rgba(3,136,138,0.08);
}

html.light .comp-image-overlay {
  background: linear-gradient(to top, rgba(248,249,251,0.9) 0%, transparent 50%);
}

html.light .cta-glow-box {
  background: linear-gradient(135deg, rgba(3,136,138,0.06), rgba(3,136,138,0.02));
  border-color: rgba(3,136,138,0.15);
}

html.light .cta-glow-box::before {
  background: conic-gradient(from 0deg, transparent, var(--teal), transparent, var(--teal), transparent);
  opacity: 0.3;
}

html.light .btn-cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  box-shadow: 0 10px 30px rgba(3,136,138,0.3);
}

html.light .btn-cta:hover {
  box-shadow: 0 15px 40px rgba(3,136,138,0.4);
}

/* ============================================
   COMPETITION DETAIL PAGE STYLES
   ============================================ */

/* ===== DETAIL HERO ===== */
.detail-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1525 50%, #0a0e1a 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}

.detail-image-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,213,79,0.08);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-image-wrapper:hover {
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 50px rgba(255,213,79,0.15);
  transform: translateY(-5px);
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.detail-image-wrapper:hover .detail-image {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.05);
}

.detail-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.9) 0%, transparent 50%);
  pointer-events: none;
}

.detail-year {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(255,213,79,0.25), rgba(255,213,79,0.15));
  border: 1px solid rgba(255,213,79,0.4);
  border-radius: 100px;
  color: #FFD54F;
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 20;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255,213,79,0.2);
}

.detail-status {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 20;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-status.open {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.4);
  box-shadow: 0 0 30px rgba(34,197,94,0.3);
}

.detail-status.open::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.detail-status.closed {
  background: rgba(107,114,128,0.15);
  color: #6b7280;
  border: 1px solid rgba(107,114,128,0.3);
}

.detail-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.detail-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .detail-desc {
    font-size: 1.2rem;
    line-height: 1.8;
  }
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .detail-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
  }
}

/* ===== CONTENT SECTIONS ===== */
.section-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
}

.section-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,213,79,0.2);
  transform: translateY(-2px);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: #FFD54F;
  font-size: 1.25rem;
}

.rules-content {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-size: 1rem;
}

.rules-content p {
  margin-bottom: 1rem;
}

.rules-content ul, .rules-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.rules-content li {
  margin-bottom: 0.5rem;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.4s;
}

.category-card:hover {
  background: rgba(255,213,79,0.08);
  border-color: rgba(255,213,79,0.2);
  transform: translateY(-2px);
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.category-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.category-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-meta i {
  color: #FFD54F;
}

.category-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFD54F;
  margin-bottom: 0.5rem;
}

.badge-free {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ===== SIDEBAR COMPONENTS ===== */
.sidebar-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li i {
  color: #FFD54F;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.info-list li strong {
  color: white;
  font-weight: 600;
}

/* ===== GRADIENT BACKGROUND ===== */
.bg-gradient-dark {
  background: linear-gradient(180deg, #080810, #0a0e1a);
}

/* ============================================
   LIGHT MODE OVERRIDES FOR DETAIL PAGE
   ============================================ */

html.light .detail-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, var(--navy) 100%);
}

html.light .detail-title {
  color: var(--navy);
}

html.light .detail-desc {
  color: #4b5563;
}

html.light .section-card {
  background: rgba(29,78,137,0.03);
  border-color: rgba(29,78,137,0.08);
}

html.light .section-card:hover {
  background: rgba(3,136,138,0.05);
  border-color: rgba(3,136,138,0.15);
}

html.light .section-title i {
  color: var(--teal);
}

html.light .rules-content {
  color: #4b5563;
}

html.light .category-card {
  background: rgba(29,78,137,0.03);
  border-color: rgba(29,78,137,0.08);
}

html.light .category-card:hover {
  background: rgba(3,136,138,0.05);
  border-color: rgba(3,136,138,0.15);
}

html.light .category-name {
  color: var(--navy);
}

html.light .category-desc {
  color: #4b5563;
}

html.light .category-meta {
  color: #4b5563;
}

html.light .category-meta i {
  color: var(--teal);
}

html.light .category-price {
  color: var(--teal);
}

html.light .sidebar-card {
  background: rgba(29,78,137,0.03);
  border-color: rgba(29,78,137,0.08);
}

html.light .sidebar-title {
  color: var(--navy);
}

html.light .info-list li {
  color: #4b5563;
  border-color: rgba(29,78,137,0.05);
}

html.light .info-list li i {
  color: var(--teal);
}

html.light .info-list li strong {
  color: var(--navy);
}

html.light .detail-year {
  background: linear-gradient(135deg, rgba(3,136,138,0.15), rgba(3,136,138,0.08));
  border-color: rgba(3,136,138,0.3);
  color: var(--teal);
  box-shadow: 0 4px 20px rgba(3,136,138,0.15);
}

html.light .detail-status.open {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
}

html.light .bg-gradient-dark {
  background: linear-gradient(180deg, var(--navy-dark), var(--navy));
}

html.light .detail-image-overlay {
  background: linear-gradient(to top, rgba(248,249,251,0.9) 0%, transparent 50%);
}
