/* Math on Your Toes - Satirical Musical Website CSS */

:root {
  --broadway-gold: #FFD700;
  --curtain-red: #DC143C;
  --spotlight-white: #FFFEF7;
  --chalkboard-green: #2F4F2F;
  --accessibility-blue: #0066CC;
  --dark-bg: #2C1810;
  --light-text: #333;
  --stage-purple: #4A148C;
  --warning-orange: #FF8C00;
  --theater-navy: #1A237E;
  --cream: #FFF8E1;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--light-text);
  background: linear-gradient(135deg, var(--cream) 0%, var(--spotlight-white) 100%);
  overflow-x: hidden;
}

/* Accessibility Features */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accessibility-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accessibility-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accessibility-controls button {
  background: var(--accessibility-blue);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.accessibility-controls button:hover,
.accessibility-controls button:focus {
  background: #0052a3;
  outline: 2px solid var(--broadway-gold);
}

/* High Contrast Mode */
body.high-contrast {
  background: black;
  color: white;
}

body.high-contrast .hero-section {
  background: black;
}

body.high-contrast .broadway-title {
  color: var(--broadway-gold);
  text-shadow: 2px 2px 4px black;
}

/* Large Font Mode */
body.large-font {
  font-size: 1.2em;
}

body.large-font h1 { font-size: 3.5em; }
body.large-font h2 { font-size: 2.5em; }
body.large-font h3 { font-size: 2em; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(45deg, var(--theater-navy) 0%, var(--stage-purple) 50%, var(--curtain-red) 100%);
  overflow: hidden;
}

.spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 254, 247, 0.4) 0%, rgba(74, 20, 140, 0.6) 70%);
  animation: spotlight-pulse 4s ease-in-out infinite alternate;
}

@keyframes spotlight-pulse {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  color: var(--spotlight-white);
}

.broadway-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
}

.title-main {
  display: block;
  background: linear-gradient(45deg, var(--broadway-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-lights {
  display: inline-block;
  animation: twinkle 1.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  font-style: italic;
  opacity: 0.9;
}

.satirical-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--broadway-gold);
  backdrop-filter: blur(10px);
}

.stars {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.review p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.review cite {
  font-weight: bold;
  opacity: 0.8;
}

/* Video Section */
.video-section {
  padding: 4rem 0;
  background: var(--dark-bg);
  position: relative;
}

.theater-curtains {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(90deg, var(--curtain-red) 0%, #654321 100%);
  z-index: 1;
}

.curtain-left {
  left: -50px;
  border-radius: 0 20px 20px 0;
}

.curtain-right {
  right: -50px;
  border-radius: 20px 0 0 20px;
}

.stage {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #3E2723 100%);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  border: 3px solid var(--broadway-gold);
}

.marquee-header {
  color: var(--broadway-gold);
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-container {
  position: relative;
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

video {
  width: 100%;
  height: auto;
  display: block;
}

.content-warning {
  background: var(--warning-orange);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
  font-weight: bold;
  border: 2px solid #ff6600;
}

/* Context Section */
.context-section {
  padding: 4rem 0;
  background: var(--cream);
}

.context-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--curtain-red);
  text-align: center;
  margin-bottom: 3rem;
}

.harmful-attitudes {
  list-style: none;
  max-width: 800px;
  margin: 2rem auto;
}

.harmful-attitudes li {
  background: #ffebee;
  border-left: 4px solid #e53935;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
}

.harmful-attitudes li:before {
  content: "❌ ";
  margin-right: 0.5rem;
}

/* Research Section */
.research-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--chalkboard-green) 0%, #1e3a1e 100%);
  color: white;
}

.research-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--broadway-gold);
  text-align: center;
  margin-bottom: 3rem;
}

.myth-reality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.myth-column h3 {
  color: #ff6b6b;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.reality-column h3 {
  color: #4ecdc4;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.myth-item, .reality-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.myth-item h4 {
  color: #ff8a80;
  margin-bottom: 0.5rem;
}

.reality-item h4 {
  color: #80cbc4;
  margin-bottom: 0.5rem;
}

.research-link {
  color: var(--broadway-gold);
  text-decoration: none;
  border-bottom: 1px dotted;
}

.research-link:hover {
  text-decoration: underline;
}

/* Lyrics Section */
.lyrics-section {
  padding: 4rem 0;
  background: var(--spotlight-white);
}

.lyrics-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--curtain-red);
  text-align: center;
  margin-bottom: 3rem;
}

.playbill-page {
  max-width: 800px;
  margin: 0 auto;
  background: #faf8f3;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--broadway-gold);
}

.lyrics-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--curtain-red);
  border-bottom: 2px solid var(--broadway-gold);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
  font-size: 2rem;
}

.subtitle-text {
  text-align: center;
  font-size: 1.2rem;
  color: var(--curtain-red);
  margin-bottom: 2rem;
}

.lyrics-content h4 {
  font-family: 'Playfair Display', serif;
  color: var(--curtain-red);
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem 0;
  border-left: 3px solid var(--broadway-gold);
  padding-left: 1rem;
}

.verse {
  margin: 2rem 0;
  padding: 1rem;
  border-left: 3px solid var(--broadway-gold);
  background: rgba(255, 215, 0, 0.1);
}

.character {
  font-weight: bold;
  color: var(--curtain-red);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.lyric {
  margin: 0.5rem 0;
  font-style: italic;
  line-height: 1.8;
}

.highlighted-quote {
  background: rgba(255, 215, 0, 0.3);
  padding: 2px 4px;
  border-radius: 3px;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.annotation {
  font-size: 0.9rem;
  color: #666;
  font-style: normal;
  margin-top: 0.5rem;
}

.director-note {
  text-align: center;
  font-style: italic;
  color: var(--curtain-red);
  margin-top: 2rem;
  font-weight: bold;
}


/* Resources Section */
.resources-section {
  padding: 4rem 0;
  background: var(--dark-bg);
  color: white;
}

.resources-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--broadway-gold);
  text-align: center;
  margin-bottom: 3rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.resource-card h3 {
  color: var(--broadway-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.resource-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--accessibility-blue);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.resource-link:hover {
  background: #0052a3;
}

/* Easter Egg Section */
.easter-egg-section {
  padding: 3rem 0;
  text-align: center;
  background: rgba(255, 215, 0, 0.1);
}

.accommodation-button {
  background: var(--accessibility-blue);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.accommodation-button:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.accommodation-response {
  margin-top: 2rem;
  padding: 2rem;
  background: #e8f5e8;
  border: 2px solid #4caf50;
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accommodation-response p {
  margin-bottom: 1rem;
  color: var(--chalkboard-green);
}

.hidden {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-content h3 {
  color: var(--broadway-gold);
  margin-bottom: 1rem;
}



/* Responsive Design */
@media (max-width: 768px) {
  .broadway-title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .satirical-reviews {
    grid-template-columns: 1fr;
  }
  
  .myth-reality-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stage {
    padding: 1.5rem;
  }
  
  .playbill-page {
    padding: 1.5rem;
  }
  
  .accessibility-controls {
    top: 10px;
    right: 10px;
    padding: 5px;
    gap: 5px;
  }
  
  .accessibility-controls button {
    padding: 6px 8px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .broadway-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .hero-section,
  .video-section,
  .context-section,
  .research-section,
  .lyrics-section,
  .resources-section {
    padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  .accessibility-controls,
  .video-container,
  .modal {
    display: none;
  }
  
  .hero-section {
    background: white;
    color: black;
  }
  
  .broadway-title {
    color: black;
  }
}

/* Focus Management */
*:focus {
  outline: 2px solid var(--accessibility-blue);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--accessibility-blue);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .spotlight-overlay {
    animation: none;
  }
  
  .title-lights {
    animation: none;
  }
}