/**
 * Section Background Colors
 * 
 * Implements alternating red/blue theme for sections
 * Using light variations for better readability
 */

/* Hero section - Red theme */
.hero,
#home {
  background: var(--color-red-light) !important;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(214, 45, 32, 0.02) 0 12px,
    transparent 12px 24px
  ) !important;
}

/* About section - Blue theme */
#about,
.about-section {
  background: var(--color-blue-light) !important;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.02) 0 12px,
    transparent 12px 24px
  ) !important;
}

/* Sponsors section - White theme */
.sponsors {
  background: var(--color-white-light) !important;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(31, 41, 55, 0.02) 0 12px,
    transparent 12px 24px
  ) !important;
}

/* Schedule section - Red theme */
#schedule {
  background: var(--color-red-light) !important;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(214, 45, 32, 0.02) 0 12px,
    transparent 12px 24px
  ) !important;
}

/* Course section - Blue theme */
#course {
  background: var(--color-blue-light) !important;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.02) 0 12px,
    transparent 12px 24px
  ) !important;
}

/* Register section - Red theme */
#register {
  background: var(--color-red-light) !important;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(214, 45, 32, 0.02) 0 12px,
    transparent 12px 24px
  ) !important;
}

/* Contact section - Blue theme */
#contact {
  background: var(--color-blue-light) !important;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.02) 0 12px,
    transparent 12px 24px
  ) !important;
}

/* Section text colors for better contrast */
.hero h1,
.hero h2,
.hero p {
  color: var(--color-dark) !important;
}

/* Override for specific blue elements */
.hero .prologue-card-title {
  color: var(--color-secondary) !important;
}

#schedule h2 {
  color: var(--color-secondary) !important;
}

#schedule p {
  color: var(--color-dark) !important;
}

#about h2,
.about-section h2 {
  color: var(--color-secondary) !important;
  text-align: center !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.2em !important;
}

#about p,
.about-section p {
  color: var(--color-dark) !important;
  text-align: justify;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.2em;
}

/* Mobile responsive text alignment for about section */
@media (max-width: 768px) {
  #about p,
  .about-section p {
    text-align: left;
    padding: 0 4%;
  }
}

#course h2 {
  color: var(--color-secondary) !important;
}

#course p {
  color: var(--color-dark) !important;
}

/* Register section text colors for red background */
#register h2 {
  color: var(--color-secondary) !important;
}

#register h3,
#register p {
  color: var(--color-dark) !important;
}

/* Register button styling */
.register-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--theme-red), #d62d20);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(214, 45, 32, 0.3);
  margin: 0.75rem auto;
  width: fit-content;
  justify-content: center;
}

.register-button .register-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
}

.register-button i {
  flex-shrink: 0;
  font-size: 1rem;
}

/* Register deadline text styling for register section */
.register-button .register-deadline {
  display: block;
  font-size: 0.65rem;
  font-weight: normal;
  margin-top: 1px;
  opacity: 0.9;
  text-align: center;
  line-height: 1;
}

.register-button:hover {
  background: linear-gradient(135deg, #d62d20, var(--theme-red));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 45, 32, 0.4);
}

.register-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(214, 45, 32, 0.3);
}

.register-button i {
  font-size: 1.2rem;
}

/* Contact section text colors for blue background */
#contact h2,
#contact h3,
#contact p {
  color: var(--color-dark) !important;
}

#contact h2 {
  color: var(--color-secondary) !important;
}

/* Location note styling */
.location-note {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--color-dark) !important;
  opacity: 0.8;
}

/* Sponsors section text colors for white background */
.sponsors h2,
.sponsors p {
  color: var(--color-dark) !important;
}

/* Ace icon styling for section headers */
.ace-icon {
  color: var(--color-secondary) !important;
  font-size: 1.2em;
  margin-right: 0.5em;
  font-family: 'Stardos Stencil', 'Cinzel', serif;
  display: inline-block;
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}

section:hover .ace-icon {
  transform: rotate(5deg) scale(1.1);
}

/* Ensure countdown timer text is readable on blue background */
.countdown-title {
  color: #ffffff !important;
}

.countdown-date {
  color: #ffffff !important;
}

.hero .countdown-date {
  color: #ffffff !important;
}

.countdown-item span {
  color: var(--color-dark) !important;
}

/* Schedule item styling for red background */
#schedule .schedule-item {
  background: rgba(255, 255, 255, 0.9) !important;
  border-left: 4px solid var(--color-secondary) !important;
}

#schedule .schedule-item:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-left-color: var(--color-secondary) !important;
}

/* Course map container styling for blue background */
.interactive-map-container {
  background: rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin: 20px 0 !important;
}

/* Hotspot styling adjustments for blue background */
.hotspot .hotspot-dot {
  background: var(--color-primary) !important;
  border: 2px solid var(--color-accent) !important;
}

.hotspot:hover .hotspot-dot {
  background: var(--color-red-medium) !important;
  transform: scale(1.2) !important;
}

/* Info panel styling */
.map-info-panel {
  background: var(--color-accent) !important;
  border: 2px solid var(--color-secondary) !important;
  color: var(--color-dark) !important;
}

.map-info-panel h4 {
  color: var(--color-primary) !important;
}
