/* MUNMX 25 Custom Styles */

/* Cache control for fresh content */
:root {
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --primary-focus: rgba(30, 58, 138, 0.125);
  --munmx-blue: #1e3a8a;
  --munmx-navy: #0f172a;
  --munmx-light-blue: #3b82f6;
  --munmx-gold: #fbbf24;
  --munmx-white: #ffffff;
  --munmx-gradient: linear-gradient(135deg, #0f172a, #1e3a8a, #3b82f6);
  --celebration-gradient: linear-gradient(135deg, #0f172a, #1e3a8a);
  --color: #000000;
  --h1-color: #000000;
  --h2-color: #000000;
  --h3-color: #000000;
  --h4-color: #000000;
  --h5-color: #000000;
  --h6-color: #000000;
}

/* All text is black for better readability */
body, main, section, article, div, p, span, small, strong, em {
  color: #000000 !important;
}

/* Blue sections - all text must be white */
.registration-redirect, 
.registration-redirect *, 
.registration-redirect h4,
.registration-redirect p,
.registration-redirect small,
.filter-btn,
.committee-info-section a,
button[style*="background: linear-gradient"],
button[style*="background: #1e3a8a"],
button[style*="background: #059669"],
button[style*="background: #d97706"],
button[style*="background: #dc2626"] {
  color: white !important;
}

/* Ensure blue gradient sections have white text */
[style*="background: linear-gradient(135deg, #1e3a8a"],
[style*="background: linear-gradient(135deg, #1e3a8a"] *,
.celebration-banner,
.celebration-banner * {
  color: white !important;
}

/* All logos are white - no theme switching needed */

/* Logo styling */
.logo-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.prepa-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.prepa-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.munmx-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.munmx-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.footer-logos {
  margin-bottom: 20px;
}

.prepa-footer-logo, .munmx-footer-logo {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.prepa-footer-logo:hover, .munmx-footer-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Instagram text styling - white in footer (blue box) */
.instagram-text {
  color: white !important;
}

.instagram-text a {
  color: white !important;
  text-decoration: none;
}

.instagram-text a:hover {
  color: #fbbf24 !important;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .logo-container {
    justify-content: center;
  }
  
  .prepa-logo {
    height: 50px !important;
    margin-right: 15px !important;
  }
  
  .munmx-logo {
    height: 45px !important;
  }
  
  .footer-logos {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px !important;
  }
  
  .prepa-footer-logo {
    height: 90px !important;
  }
  
  .munmx-footer-logo {
    height: 80px !important;
  }
}

/* Theme toggle button */
#theme-toggle {
  transition: all 0.3s ease;
  color: var(--color);
  font-size: 1.2rem;
}

#theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Base styling */
html {
  height: 100%;
  width: 100%;
}

/* Custom header styling */
nav {
  background: var(--munmx-gradient) !important;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
  border-bottom: 3px solid var(--munmx-gold);
}

nav ul li img {
  transition: transform 0.3s ease;
}

nav ul li img:hover {
  transform: scale(1.05);
}

/* Hero section enhancements */
main {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  padding-top: 2rem;
}

h1 {
  color: white !important;
  font-family: 'Montserrat', 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 4px;
  padding: 1rem;
  background: var(--munmx-gradient);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
  border: 3px solid var(--munmx-gold);
  text-transform: uppercase;
}

/* Anniversary celebration banner */
.celebration-banner {
  background: var(--celebration-gradient) !important;
  padding: 25px !important;
  border-radius: 15px !important;
  margin: 25px 0 !important;
  color: white !important;
  text-align: center !important;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
  animation: celebrationGlow 3s ease-in-out infinite alternate;
  border: 2px solid var(--munmx-gold);
}

@keyframes celebrationGlow {
  0% { box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4); }
  100% { box-shadow: 0 12px 40px rgba(30, 58, 138, 0.6), 0 0 20px rgba(251, 191, 36, 0.3); }
}

.celebration-banner h4 {
  color: white !important;
  font-size: 1.5rem;
  margin: 0 0 15px 0 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 900;
}

.celebration-banner p {
  color: white !important;
  font-size: 1.2rem;
  margin: 10px 0 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 600;
}

/* Form styling */
form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--munmx-light-blue);
}

/* Committee selection styling */
select {
  border: 2px solid var(--munmx-light-blue) !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  padding: 12px !important;
}

optgroup {
  font-weight: bold;
  padding: 10px 0;
}

optgroup[label*="BEGINNER"] {
  background-color: #dcfce7;
  color: #166534;
}

optgroup[label*="INTERMEDIATE"] {
  background-color: #dbeafe;
  color: #0f172a;
}

optgroup[label*="ADVANCED"] {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Button enhancements */
button[type="submit"] {
  background: var(--munmx-gradient) !important;
  color: white !important;
  border: none !important;
  padding: 15px 30px !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3) !important;
}

button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4) !important;
}

/* Image styling */
figure img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

figure img:hover {
  transform: scale(1.02);
}

/* Footer enhancements */
footer {
  background: var(--munmx-gradient) !important;
  color: white !important;
  margin-top: 3rem !important;
  padding: 2rem 0 !important;
  border-top: 4px solid var(--munmx-gold);
}

/* Ensure all footer text is white */
footer *, footer strong, footer h4, footer small {
  color: white !important;
}

/* Ensure date and location in main content is always black */
main hgroup h2 {
  color: black !important;
}

/* Ensure main content links are always black */
main a {
  color: black !important;
}

/* Navigation links should be white */
nav a {
  color: white !important;
}

/* Ensure all titles/headings in main content are always black */
main h1, main h2, main h3, main h4, main h5, main h6 {
  color: black !important;
}

/* Exception: Welcome title should be white */
main hgroup h1 {
  color: white !important;
}

/* Links inside blue boxes should be white, except registration button */
.committee-info-section a {
  color: white !important;
}

/* Registration button text should be black */
.registration-redirect a[role="button"] {
  color: black !important;
}

/* Stay Updated title should be black */
section[aria-label="Subscribe example"] h2 {
  color: black !important;
}

footer a {
  color: white !important;
  text-decoration: none !important;
  text-decoration-color: var(--munmx-gold) !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
}

footer a:hover {
  color: white !important;
  text-decoration: underline !important;
  text-decoration-color: var(--munmx-gold) !important;
  text-decoration-thickness: 3px !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.8) !important;
}

/* Instagram link special styling */
footer a[href*="instagram"] {
  color: white !important;
  font-weight: bold !important;
}

footer a[href*="instagram"]:hover {
  color: white !important;
  text-decoration: underline !important;
  text-decoration-color: #e1306c !important;
  text-decoration-thickness: 3px !important;
  text-shadow: 0 0 10px rgba(225, 48, 108, 0.6) !important;
}

/* Subscribe section */
section[aria-label="Subscribe example"] {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 3rem 0;
  margin-top: 2rem;
}

section[aria-label="Subscribe example"] article {
  background: white;
  border: 2px solid var(--munmx-light-blue);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive design improvements */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  nav ul li img {
    height: 30px !important;
    margin-right: 10px !important;
  }
  
  .celebration-banner {
    padding: 20px !important;
    margin: 20px 0 !important;
  }
  
  .celebration-banner h4 {
    font-size: 1.2rem;
  }
  
  .celebration-banner p {
    font-size: 1rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main section {
  animation: fadeInUp 0.8s ease-out;
}

/* MUNMX Gallery Styles */
.munmx-gallery, .munmx-experience-gallery {
  margin: 30px 0;
}

.munmx-gallery .hero-image {
  text-align: center;
  margin: 20px 0;
}

.munmx-gallery .hero-image img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.munmx-gallery .hero-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2) !important;
}

.gallery-grid figure img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid figure img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* White logos remain consistent across all themes */

/* Dark mode adjustments for gallery */
[data-theme="dark"] .munmx-gallery figure,
[data-theme="dark"] .munmx-experience-gallery figure {
  background: var(--card-background-color);
  border: 1px solid var(--card-border-color);
  border-radius: 10px;
  padding: 10px;
}

[data-theme="dark"] .gallery-grid figure img,
[data-theme="dark"] .munmx-gallery .hero-image img {
  border: 1px solid var(--muted-border-color);
}

/* Responsive gallery */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .munmx-experience-gallery figure:last-child img {
    width: 90% !important;
  }
}