/* SHAC - Walk Through Music - Paperbag Brown Theme */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paperbag brown palette */
  --brown-darkest: #2a1f15;
  --brown-dark: #3d2e21;
  --brown-medium: #5c4a37;
  --brown-light: #8b7355;
  --brown-lighter: #a89074;
  --brown-lightest: #d4c4af;

  /* Accent colors */
  --cream: #f5f0e8;
  --warm-white: #faf7f2;
  --gold: #d4a574;
  --rust: #8b5a3c;

  /* Functional colors */
  --text-primary: var(--warm-white);
  --text-secondary: var(--brown-lightest);
  --text-muted: var(--brown-lighter);

  --bg-dark: var(--brown-darkest);
  --bg-medium: var(--brown-dark);
  --bg-light: var(--brown-medium);

  --accent-primary: var(--gold);
  --accent-secondary: var(--rust);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(180deg, var(--brown-darkest) 0%, var(--brown-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 90, 60, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.title {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.2em;
  color: var(--cream);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Demo Container */
.demo-container {
  width: 100%;
  max-width: 1000px;
  height: 650px;
  background: var(--bg-medium);
  border: 2px solid var(--brown-light);
  border-radius: 16px;
  margin: 3rem auto 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.demo-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--brown-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Reload Button */
.reload-button {
  display: block;
  margin: 0 auto 1.5rem;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  color: var(--warm-white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 90, 60, 0.25);
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.reload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 90, 60, 0.35);
}

.reload-button:active {
  transform: translateY(0);
}

.demo-hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Navigation Links */
.nav-links-section {
  padding: 60px 0;
  background: var(--bg-medium);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.nav-link:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.nav-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.nav-text {
  font-weight: 500;
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--bg-dark);
}

.about h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--cream);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content > p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.about-content strong {
  color: var(--accent-primary);
  font-weight: 600;
}

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

.feature {
  background: var(--bg-medium);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--brown-light);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Player Section */
.player-section {
  padding: 100px 0;
  background: var(--bg-medium);
}

.player-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--cream);
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.player-toggle {
  display: block;
  margin: 0 auto 2rem;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  color: var(--warm-white);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 90, 60, 0.25);
}

.player-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 90, 60, 0.35);
  background: linear-gradient(135deg, var(--accent-primary), var(--gold));
}

.player-toggle:active {
  transform: translateY(0);
}

.player-embed {
  width: 100%;
  max-width: 1100px;
  height: 700px;
  margin: 0 auto 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--brown-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.player-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.text-link {
  display: block;
  text-align: center;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.text-link:hover {
  color: var(--gold);
  transform: translateX(4px);
}


/* Navigation Links Section */
.nav-links-section {
  padding: 60px 0;
}

.nav-links-section:last-of-type {
  background: var(--bg-dark);
}

/* Technical Section */
.technical {
  padding: 100px 0;
  background: var(--bg-dark);
}

.technical h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--cream);
}

.tech-flow {
  max-width: 900px;
  margin: 0 auto;
}

.tech-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

.tech-intro strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.tech-details {
  margin-bottom: 3rem;
}

.detail-row {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--brown-light);
  gap: 0.5rem;
}

.detail-row:first-child {
  border-top: 1px solid var(--brown-light);
}

.detail-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  font-weight: 600;
}

.detail-value {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.future-content {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
}

.future-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  padding: 60px 0 40px;
  background: var(--brown-darkest);
  text-align: center;
  border-top: 1px solid var(--brown-light);
}

footer p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-links span {
  margin: 0 0.75rem;
  color: var(--brown-light);
}

.footer-tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--brown-lighter);
  margin-top: 1.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .title {
    letter-spacing: 0.08em;
  }

  .subtitle {
    letter-spacing: 0.05em;
  }

  .demo-container {
    height: 500px;
  }

  .main-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .player-embed {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .demo-container {
    height: 300px;
  }

  .nav-link {
    font-size: 1rem;
  }
}
