:root {
  --strawberry: #FF6B6B;
  --strawberry-light: #FFE4E6;
  --purple-deep: #7C3AED;
  --purple-dark: #1a0a2e;
  --bg-dark: #0d0015;
  --bg-light: #faf5ff;
  --text-dark: #e0d0f0;
  --text-light: #2d1b4e;
  --glass-dark: rgba(124, 58, 237, 0.1);
  --glass-light: rgba(255, 107, 107, 0.1);
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.dark-mode {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--purple-dark) 100%);
  color: var(--text-dark);
  min-height: 100vh;
}

.light-mode {
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff5f5 100%);
  color: var(--text-light);
  min-height: 100vh;
}

.app {
  min-height: 100vh;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}

.dark-mode .header {
  background: rgba(13, 0, 21, 0.8);
}

.light-mode .header {
  background: rgba(255, 255, 255, 0.8);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strawberry-logo {
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
}

.strawberry-logo:hover {
  transform: scale(1.1);
}

.strawberry-logo.spin {
  animation: spin 1s ease-in-out;
}

@keyframes spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.header-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--strawberry), var(--purple-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-tagline {
  font-size: 0.875rem;
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--strawberry);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.pun-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--strawberry), var(--purple-deep));
  color: white;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
  z-index: 1000;
  max-width: 90%;
  text-align: center;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-2025, .hero-2026 {
  text-align: center;
  padding: 2rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dark-mode .hero-2025 {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(124, 58, 237, 0.1));
}

.light-mode .hero-2025 {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(124, 58, 237, 0.1));
}

.dark-mode .hero-2026 {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(16, 185, 129, 0.1));
}

.light-mode .hero-2026 {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(16, 185, 129, 0.2));
}

.year-badge {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-2025 .year-badge {
  background: linear-gradient(135deg, #FF6B6B, #FFE66D, #4ECDC4, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-2026 .year-badge {
  background: linear-gradient(135deg, var(--purple-deep), #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-chaos {
  height: 80px;
  position: relative;
  margin-bottom: 1rem;
}

.floating-emoji {
  position: absolute;
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.floating-emoji:nth-child(1) { left: 10%; top: 20%; }
.floating-emoji:nth-child(2) { left: 30%; top: 50%; }
.floating-emoji:nth-child(3) { left: 50%; top: 10%; }
.floating-emoji:nth-child(4) { left: 70%; top: 60%; }
.floating-emoji:nth-child(5) { left: 85%; top: 30%; }
.floating-emoji:nth-child(6) { left: 20%; top: 70%; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
}

.hero-organized {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mini-niche {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-text {
  font-size: 1.25rem;
  font-weight: 600;
}

.hero-bridge {
  position: relative;
  padding: 2rem;
}

.bridge-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

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

.bridge-berry {
  font-size: 4rem;
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

.bridge-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.bridge-badge {
  background: var(--strawberry);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* Timeline */
.timeline-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.timeline-container {
  overflow-x: auto;
  padding: 2rem 0;
  scrollbar-width: thin;
}

.timeline-track {
  display: flex;
  justify-content: space-between;
  min-width: 600px;
  position: relative;
  padding: 2rem 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 4px;
  background: linear-gradient(90deg, var(--strawberry), var(--purple-deep));
  transform: translateY(-50%);
  border-radius: 2px;
}

.timeline-point {
  position: relative;
  cursor: pointer;
  text-align: center;
  flex: 1;
  transition: transform 0.3s ease;
}

.timeline-point:hover {
  transform: scale(1.05);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-deep);
  border: 4px solid;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.dark-mode .timeline-dot {
  border-color: var(--bg-dark);
}

.light-mode .timeline-dot {
  border-color: var(--bg-light);
}

.timeline-point.active .timeline-dot {
  background: var(--strawberry);
  transform: scale(1.3);
  box-shadow: 0 0 20px var(--strawberry);
}

.timeline-point.bridge-point .timeline-dot {
  background: var(--strawberry);
}

.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
}

.timeline-title {
  font-weight: 600;
  margin: 0.25rem 0;
}

.timeline-subtitle {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Era Details */
.era-details {
  margin-top: 2rem;
}

.era-card {
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dark-mode .era-card {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.light-mode .era-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.era-header {
  margin-bottom: 1.5rem;
}

.era-header h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.platform-card {
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.dark-mode .platform-card {
  background: rgba(255, 255, 255, 0.05);
}

.light-mode .platform-card {
  background: rgba(124, 58, 237, 0.05);
}

.platform-card:hover {
  transform: translateY(-5px);
}

.platform-name {
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.platform-tagline {
  font-size: 0.75rem;
  opacity: 0.6;
  font-family: 'JetBrains Mono', monospace;
}

.era-vibes {
  font-size: 1.5rem;
  text-align: center;
}

/* Bridge Era */
.bridge-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(124, 58, 237, 0.15)) !important;
}

.bridge-badge-large {
  display: inline-block;
  background: linear-gradient(135deg, var(--strawberry), var(--purple-deep));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.bridge-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.meta-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  opacity: 0.6;
  font-style: italic;
  margin-top: 1.5rem;
}

/* Niche Grid */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.niche-card {
  padding: 1.25rem;
  border-radius: 1rem;
  text-align: center;
  border: 2px solid var(--niche-color);
  background: color-mix(in srgb, var(--niche-color) 10%, transparent);
  transition: all 0.3s ease;
}

.niche-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--niche-color) 30%, transparent);
}

.niche-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.niche-name {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Interactive Section */
.interactive-section {
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.quiz-container {
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
}

.dark-mode .quiz-container {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.light-mode .quiz-container {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.quiz-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--strawberry), var(--purple-deep));
  transition: width 0.3s ease;
}

.quiz-question {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 107, 107, 0.3);
  background: transparent;
  border-radius: 1rem;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: left;
}

.dark-mode .quiz-option {
  color: var(--text-dark);
}

.light-mode .quiz-option {
  color: var(--text-light);
}

.quiz-option:hover {
  border-color: var(--strawberry);
  background: rgba(255, 107, 107, 0.1);
  transform: translateX(5px);
}

.quiz-result {
  text-align: center;
  padding: 2rem;
}

.quiz-result h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.result-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(124, 58, 237, 0.2));
  margin-bottom: 1.5rem;
}

.result-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--strawberry), var(--purple-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.result-desc {
  opacity: 0.8;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--strawberry), var(--purple-deep));
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--strawberry);
}

.dark-mode .btn-secondary {
  color: var(--text-dark);
}

.light-mode .btn-secondary {
  color: var(--text-light);
}

.btn-secondary:hover {
  background: rgba(255, 107, 107, 0.1);
}

/* Prediction Generator */
.prediction-section {
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.prediction-generator {
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  text-align: center;
}

.dark-mode .prediction-generator {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.light-mode .prediction-generator {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.prediction-generator h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.prediction-generator > p {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.prediction-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 500px) {
  .prediction-input-group {
    flex-direction: column;
  }
}

.prediction-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 107, 107, 0.3);
  border-radius: 1rem;
  background: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.dark-mode .prediction-input {
  color: var(--text-dark);
}

.light-mode .prediction-input {
  color: var(--text-light);
}

.prediction-input:focus {
  outline: none;
  border-color: var(--strawberry);
}

.prediction-input::placeholder {
  opacity: 0.5;
}

.prediction-result {
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(124, 58, 237, 0.1));
  animation: fadeIn 0.3s ease;
}

.prediction-result p {
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
}

/* Stats */
.stats-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.stat-card {
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.dark-mode .stat-card {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--strawberry), var(--purple-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  margin-top: 0.5rem;
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 107, 107, 0.2);
  margin-top: 4rem;
}

.footer-main {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--strawberry);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-era {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.footer-social {
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--strawberry);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.dark-mode .social-link {
  color: var(--text-dark);
}

.light-mode .social-link {
  color: var(--text-light);
}

.social-link:hover {
  background: var(--strawberry);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 107, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 107, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-title {
    font-size: 1.1rem;
  }
  
  .header-tagline {
    display: none;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .year-badge {
    font-size: 2rem;
  }
  
  .bridge-berry {
    font-size: 3rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}