/* Dropdown Menu Styles */
.dropdown-menu {
  width: 500px;
  margin: 20px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(234, 179, 8, 0.3), 0 0 20px rgba(234, 179, 8, 0.2);
  background: linear-gradient(to bottom, #111111, #000000);
  position: relative;
  z-index: 10;
  border: 2px solid rgba(234, 179, 8, 0.5);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: subtle-float 6s ease-in-out infinite;
}

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

.dropdown-menu:hover {
  box-shadow: 0 15px 50px rgba(234, 179, 8, 0.4), 0 0 30px rgba(234, 179, 8, 0.3);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(45deg, #eab308, #f59e0b, #d97706, #eab308);
  border-radius: 18px;
  opacity: 0.3;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}

.dropdown-menu:hover::before {
  opacity: 0.6;
}

.dropdown-input {
  display: none;
}

.dropdown-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.95));
  color: white;
  cursor: pointer;
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
  transition: all 0.3s ease;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.dropdown-label::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.2), transparent);
  transition: left 0.7s ease;
}

.dropdown-label:hover::after {
  left: 100%;
}

.dropdown-label:hover {
  background: linear-gradient(to right, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
  color: rgb(234, 179, 8);
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
  transform: translateX(4px);
}

.dropdown-content {
  height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.95);
  transition: height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  opacity: 0;
  position: relative;
  z-index: 10;
}

.dropdown-input:checked ~ .dropdown-content {
  pointer-events: auto;
  opacity: 1;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.dropdown-link {
  display: block;
  padding: 20px 30px;
  padding-left: 45px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.dropdown-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: rgb(234, 179, 8);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.dropdown-link:hover::before {
  transform: scaleY(1);
}

.dropdown-link:hover {
  background: rgba(234, 179, 8, 0.1);
  color: rgb(234, 179, 8);
  padding-left: 42px;
  text-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
}

.arrow {
  position: relative;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgb(234, 179, 8);
  border-bottom: 2px solid rgb(234, 179, 8);
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  margin-left: 12px;
}

.arrow::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(234, 179, 8, 0.3);
  border-bottom: 2px solid rgba(234, 179, 8, 0.3);
  filter: blur(3px);
}

.dropdown-input:checked + .dropdown-label {
  background: linear-gradient(to right, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));
  color: rgb(234, 179, 8);
  border-bottom: 1px solid rgba(234, 179, 8, 0.4);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.dropdown-input:checked + .dropdown-label .arrow {
  transform: rotate(-135deg) scale(1.1);
}

/* Set heights for dropdown sections */
/* Target only the immediate next dropdown-content after the checked input */
.dropdown-input:checked + .dropdown-label + .dropdown-content {
  height: auto;
  min-height: 60px;
  animation: dropdown-reveal 0.4s ease-out;
}

/* Ensure smooth height transitions */
.dropdown-content {
  transition: height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.4s ease-out;
}

@keyframes dropdown-reveal {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Special case for groups dropdown */
#dropdown-groups:checked + .dropdown-label + .dropdown-content {
  height: auto;
  z-index: 20;  /* Ensure it stays above other dropdowns */
  margin-bottom: 10px; /* Add margin to prevent overlap */
  padding-bottom: 5px; /* Add some padding at the bottom */
}

/* Dropdown container and title */
.dropdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px auto;
  width: 100%;
  max-width: 500px;
}


/* Icon inside dropdown labels */
.dropdown-icon {
  margin-right: 12px;
  font-size: 1rem;
  color: rgb(234, 179, 8);
  transition: all 0.3s ease;
}

.dropdown-label:hover .dropdown-icon {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.dropdown-input:checked + .dropdown-label .dropdown-icon {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

@media (max-width: 768px) {
  .dropdown-container {
    width: 92%;
    max-width: 460px;
  }
  
  .dropdown-menu {
    width: 100%;
    max-width: 460px;
  }
  
  .dropdown-label {
    padding: 20px 24px;
    font-size: 1.25rem;
  }
  
  .dropdown-link {
    padding: 18px 24px;
    padding-left: 40px;
  }
  
  .dropdown-link:hover {
    padding-left: 36px;
  }
  
}

/* Custom cursor styles */
body {
  cursor: url('/assets/cursors/default-cursor.png') 16 16, auto;
}

a:hover,
button:hover {
  cursor: url('/assets/cursors/hover-cursor.png') 20 20, pointer;
}

/* Accordion styles */
.accordion-item button:hover {
  background-color: rgba(234, 179, 8, 0.1);
}
.accordion-content {
  display: none;
}
.accordion-content.show {
  display: block;
}
.accordion-item button[aria-expanded="true"] i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Sponsors Section Styles */
.sponsors-orbit-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Sun Element */
.sun-element:not(.orbit-center__icon) {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgb(234, 179, 8) 0%, rgba(234, 179, 8, 0.7) 60%, rgba(234, 179, 8, 0) 100%);
  border-radius: 50%;
  z-index: 2;
  animation: sun-pulse 4s ease-in-out infinite;
}

.sun-element:not(.orbit-center__icon)::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.3) 0%, rgba(234, 179, 8, 0) 70%);
  border-radius: 50%;
  z-index: 1;
}

.sun-element:not(.orbit-center__icon)::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image:
    linear-gradient(0deg, transparent 45%, rgba(234, 179, 8, 0.5) 50%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(234, 179, 8, 0.5) 50%, transparent 55%),
    linear-gradient(90deg, transparent 45%, rgba(234, 179, 8, 0.5) 50%, transparent 55%),
    linear-gradient(135deg, transparent 45%, rgba(234, 179, 8, 0.5) 50%, transparent 55%);
  border-radius: 50%;
  z-index: 1;
  animation: sun-rays-rotate 24s linear infinite;
}

/* Orbiting Sponsors */
.sponsors-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Sponsor styles moved to orbiting-sponsors.css */

/* Animations */
@keyframes sun-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes sun-rays-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* Apply orbit animation to current sponsor */
.sponsor-item[data-orbit-index="0"] {
  animation: orbit 30s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sponsors-orbit-container {
    height: 200px;
  }
  
  .sun-element {
    width: 180px;
    height: 180px;
  }
  
  @keyframes orbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
  }
  
  .sponsor-item {
    width: 80px;
    height: 48px;
  }
  
  .sponsor-item[data-orbit-index="0"] {
    animation-duration: 40s;
  }
  
}

/* Future sponsors animation setup */
@media (min-width: 769px) {
  .sponsor-item[data-orbit-index="1"] {
    animation: orbit 35s linear infinite;
    animation-delay: -10s;
  }
  
  .sponsor-item[data-orbit-index="2"] {
    animation: orbit 40s linear infinite;
    animation-delay: -20s;
  }
}