/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES (Wedding Design System)
   ========================================================================== */
:root {
  /* Color Palette - Matching User's Wedding Website */
  --color-bg: #FAF7F2;          /* Warm Off-White / Sand */
  --color-card-bg: #FFFFFF;      /* Clean White */
  --color-card-glass: rgba(255, 255, 255, 0.7);
  --color-primary: #1A365D;     /* Navy / Dark Blue */
  --color-primary-light: #2B4C7E;
  --color-secondary: #4A5D78;   /* Muted Slate Blue */
  --color-accent: #EA580C;      /* Vibrant Orange (Ablauf) */
  --color-royal-blue: #1D4ED8;  /* Royal Blue (Die Details) */
  --color-error: #DC2626;       /* Vibrant Red for Stop/Danger buttons */
  
  --color-text: #1B365D;        /* Deep Navy for high readability */
  --color-text-muted: #4A5D78;  /* Muted Slate Blue */
  --color-border: #ECE8E1;      /* Soft beige-gray border */
  
  --color-success: #10B981;     /* Soft Green */
  --color-success-light: #ECFDF5;
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;

  /* Fonts */
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #ECE8E1; /* Darker beige to frame the app on desktop */
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* App Wrapper (Smart Viewport Constraint) */
.app-container {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* ==========================================================================
   HEADER (Based on Screenshot)
   ========================================================================== */
.app-header {
  padding: 36px 24px;
  background: var(--color-card-bg);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--color-royal-blue);
  display: block;
}

.brand-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-accent);
  line-height: 1.4;
}

/* ==========================================================================
   MAIN AREA
   ========================================================================== */
.app-main {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.welcome-decor {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  animation: bounceNote 3s ease-in-out infinite;
}

@keyframes bounceNote {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

.intro-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.intro-card strong {
  color: var(--color-primary);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 16px;
}

/* ==========================================================================
   TABS
   ========================================================================== */
.mode-tabs {
  display: flex;
  background: #ECE8E1;
  padding: 4px;
  border-radius: var(--border-radius-md);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 0;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-btn.active {
  background: var(--color-card-bg);
  color: var(--color-royal-blue);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
  flex-direction: column;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: flex;
}

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

/* ==========================================================================
   STEP CARD COMPONENT
   ========================================================================== */
.step-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  position: relative;
}

.step-card.disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(30%);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-number {
  background: var(--color-accent);
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.step-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary);
}

.step-body {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.step-body p {
  margin-bottom: 14px;
}

.sub-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* ==========================================================================
   INTERACTIVE ELEMENTS: STEP 2 (GENRE SELECTOR & SONGS)
   ========================================================================== */
.genre-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.genre-btn {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.genre-btn.active {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.song-list-container {
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 12px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-note-center {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.song-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.song-item:hover, .song-item.selected {
  border-color: var(--color-royal-blue);
  background: var(--color-card-bg);
  box-shadow: var(--shadow-sm);
}

.song-item.selected {
  border-left: 4px solid var(--color-royal-blue);
}

.song-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.song-artist {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.manual-youtube-tip {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ==========================================================================
   INTERACTIVE ELEMENTS: STEP 3 (AMPLIFIERS)
   ========================================================================== */
.amp-simulator {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.amp-unit {
  background: #222222;
  border-radius: var(--border-radius-md);
  border: 2px solid #333333;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.amp-label-plate {
  font-size: 0.7rem;
  font-weight: 800;
  color: #CCCCCC;
  letter-spacing: 1px;
  font-family: var(--font-sans);
}

.amp-power-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amp-toggle-btn {
  background: #444444;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.amp-indicator-led {
  width: 10px;
  height: 10px;
  background: #FF3333;
  border-radius: 50%;
  box-shadow: 0 0 5px #FF0000;
  transition: background 0.3s, box-shadow 0.3s;
}

.amp-indicator-led.active {
  background: #00FF00;
  box-shadow: 0 0 8px #00FF00;
}

.status-msg-amp {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-accent);
}

.status-msg-amp.success {
  color: var(--color-success);
}

/* ==========================================================================
   INTERACTIVE ELEMENTS: STEP 4 (SOUNDCHECK)
   ========================================================================== */
.soundcheck-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}

.sound-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  width: 100%;
}

.wave-bar {
  width: 6px;
  height: 4px;
  background: var(--color-border);
  border-radius: 3px;
  transition: height 0.1s ease, background 0.2s;
}

.sound-wave-container.animating .wave-bar {
  background: var(--color-royal-blue);
  animation: jump 0.6s infinite ease-in-out alternate;
}

/* Sound wave jump offsets */
.sound-wave-container.animating .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.sound-wave-container.animating .wave-bar:nth-child(2) { animation-delay: 0.3s; }
.sound-wave-container.animating .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.sound-wave-container.animating .wave-bar:nth-child(4) { animation-delay: 0.4s; }
.sound-wave-container.animating .wave-bar:nth-child(5) { animation-delay: 0.15s; }
.sound-wave-container.animating .wave-bar:nth-child(6) { animation-delay: 0.35s; }
.sound-wave-container.animating .wave-bar:nth-child(7) { animation-delay: 0.25s; }
.sound-wave-container.animating .wave-bar:nth-child(8) { animation-delay: 0.45s; }

@keyframes jump {
  0% { height: 4px; }
  100% { height: 36px; }
}

.soundcheck-feedback {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-muted);
}

/* ==========================================================================
   INTERACTIVE ELEMENTS: STEP 5 (YOUTUBE EMBED PLAYER & WARNING)
   ========================================================================== */
.youtube-player-wrapper {
  margin: 16px 0;
}

.tablet-frame-bezel {
  background: #111111;
  border-radius: var(--border-radius-md);
  padding: 10px;
  border: 6px solid #222222;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iframe-placeholder-content {
  color: #888888;
  text-align: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.placeholder-icon {
  font-size: 2rem;
}

.tablet-frame-bezel iframe {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.neighbors-warning-card {
  background: rgba(234, 88, 12, 0.05);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-top: 18px;
  text-align: center;
}

.warning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.warning-header h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-accent);
}

/* ==========================================================================
   INTERACTIVE ELEMENTS: STEP 6 (CLEANUP CHECKLIST)
   ========================================================================== */
.cleanup-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.cleanup-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cleanup-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-royal-blue);
}

.cleanup-checklist label {
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
}

.thank-you-box {
  background: var(--color-success-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius-md);
  padding: 12px;
  text-align: center;
  display: none;
  animation: fadeIn 0.4s;
}

.thank-you-box h4 {
  font-family: var(--font-serif);
  color: var(--color-success);
  font-size: 1rem;
}

/* ==========================================================================
   LIVE INSTRUMENTS CSS
   ========================================================================== */
.instrument-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.instrument-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.instrument-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.instrument-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.alert-box-warning {
  background: rgba(245, 176, 65, 0.08);
  border-left: 4px solid var(--color-accent);
  padding: 14px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-top: 14px;
  margin-bottom: 16px;
}

.alert-box-warning p {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.search-tutorial-box {
  margin: 16px 0;
  background: rgba(245, 176, 65, 0.08);
  border-left: 3px solid var(--color-accent);
  padding: 14px;
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
}

.search-tutorial-box h4 {
  margin: 0 0 8px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-tutorial-box ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
}

.search-helper-box {
  display: none;
  margin-top: 14px;
  padding: 12px;
  background: rgba(30, 80, 180, 0.08);
  border-left: 3px solid var(--color-royal-blue);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  line-height: 1.4;
}

.search-helper-box code {
  display: inline-block;
  margin-top: 6px;
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: bold;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
}

.showtime-controls {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

.showtime-controls .btn-primary,
.showtime-controls .btn-danger {
  width: 100%;
  max-width: 300px;
  padding: 12px 24px;
  font-size: 1.05rem;
}

.support-card {
  margin-top: 24px;
  border-color: rgba(29, 78, 216, 0.3);
  background: rgba(29, 78, 216, 0.05);
  text-align: center;
}

.support-card .warning-header {
  justify-content: center;
}

.support-card p {
  font-size: 0.88rem;
  margin: 8px 0 0 0;
  color: var(--color-text-muted);
}

.mb-12 {
  margin-bottom: 12px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hidden {
  display: none;
}

.rules-list li {
  font-size: 0.85rem;
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
}

.rules-list li::before {
  content: "📍";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.75rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary, .btn-danger {
  border: none;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-royal-blue);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--color-error);
}

.btn-danger:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

.btn-primary:active, .btn-danger:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.btn-secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  padding: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-card-bg);
  margin-top: auto;
}

/* ==========================================================================
   CUSTOM REDESIGN ADDITIONS (Wedding/Karaoke Station)
   ========================================================================== */
.amp-toggle-btn.muted {
  background: #DC2626; /* Deep Red for Muted */
  color: #FFFFFF;
}

.amp-toggle-btn.unmuted {
  background: #16A34A; /* Vibrant Green for Unmuted */
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

.tape-arrow {
  background: #FACC15; /* Yellow Adhesive Tape Color */
  color: #1E293B;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-block;
  transform: rotate(-2deg);
  letter-spacing: 0.5px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px dashed rgba(0, 0, 0, 0.15);
}

.warning-box-alert {
  border-left: 4px solid #DC2626;
  background: rgba(220, 38, 38, 0.04);
  padding: 14px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: 16px 0;
}

.warning-box-alert p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #991B1B;
  line-height: 1.5;
}

/* Song Item Selection highlight */
.song-item.selected {
  border-left: 4px solid var(--color-accent);
  background: rgba(234, 88, 12, 0.03);
}

/* Active soundwave bars transition */
.sound-wave-container.animating .wave-bar {
  background: var(--color-royal-blue);
}

.soundcheck-area button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}



