/* 
 * DONTBLAMELEXI MUSIC - Radio Dismuke (1920s-1930s Vintage Art Deco Theme)
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Marcellus&family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

:root {
  --gold-primary: #d4af37;
  --gold-light: #f5eaae;
  --gold-dark: #8c6a15;
  --gold-gradient: linear-gradient(135deg, #f5eaae 0%, #d4af37 50%, #99741d 100%);
  --gold-border-gradient: linear-gradient(45deg, #8c6a15, #f5eaae, #d4af37, #8c6a15);
  
  --bg-dark: #0a040f;
  --bg-card: rgba(23, 11, 33, 0.85);
  --bg-card-border: rgba(212, 175, 55, 0.35);
  
  --purple-glow: rgba(147, 51, 234, 0.25);
  --amber-glow: rgba(255, 170, 51, 0.4);
  
  --text-gold: #f3e5ab;
  --text-muted: #bda9ce;
  
  --font-heading: 'Cinzel Decorative', 'Playfair Display', serif;
  --font-subheading: 'Marcellus', 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 20%, #30173f 0%, #15091d 60%, #07020b 100%),
    url('assets/art_deco_hero.jpg');
  background-blend-mode: color-dodge, multiply;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text-gold);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Overlay dark vignette & vintage film grain */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(5, 2, 8, 0.85) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}

.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

/* Art Deco Decorative Frame Border */
.art-deco-frame {
  border: 3px solid var(--gold-primary);
  outline: 1px solid var(--gold-dark);
  outline-offset: 4px;
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  box-shadow: 
    0 0 35px rgba(0, 0, 0, 0.8),
    inset 0 0 40px rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Art Deco Corner Ornaments */
.art-deco-frame::before,
.art-deco-frame::after {
  content: "✦";
  position: absolute;
  font-size: 1.5rem;
  color: var(--gold-primary);
  text-shadow: 0 0 8px var(--gold-primary);
}
.art-deco-frame::before { top: -14px; left: -14px; }
.art-deco-frame::after { top: -14px; right: -14px; }

/* Top Header */
.site-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header-badge {
  display: inline-block;
  font-family: var(--font-subheading);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold-light);
  border: 1px solid var(--gold-dark);
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(212, 175, 55, 0.1);
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.on-air-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-left: 10px;
}

.on-air-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.site-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.site-subtitle {
  font-family: var(--font-subheading);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 1.5rem 0;
}
.header-divider span {
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}
.header-divider i {
  color: var(--gold-primary);
  font-size: 1rem;
}

/* Vintage Radio Player Cabinet */
.radio-cabinet {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .radio-cabinet {
    grid-template-columns: 1fr;
  }
}

.radio-main-panel {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Vacuum Tubes Display */
.vacuum-tubes-container {
  display: flex;
  justify-content: center;
  gap: 35px;
  background: rgba(10, 4, 15, 0.7);
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.vacuum-tube {
  position: relative;
  width: 46px;
  height: 85px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.5) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px 20px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.tube-filament {
  width: 12px;
  height: 40px;
  background: #3a2205;
  border-radius: 6px;
  position: relative;
  transition: all 0.5s ease;
}

.tube-filament::after {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 18px;
  background: #ff5500;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.2;
  transition: all 0.5s ease;
}

.is-playing .tube-filament::after {
  background: #ffaa00;
  filter: blur(4px);
  opacity: 1;
  box-shadow: 0 0 15px #ffaa00, 0 0 25px #ff6600;
}

.tube-base {
  width: 32px;
  height: 10px;
  background: #251a29;
  border-top: 1px solid var(--gold-dark);
  border-radius: 2px;
}

/* Radio Tuning Scale & Dial */
.tuning-dial-panel {
  background: linear-gradient(180deg, #15091d 0%, #0a040f 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 6px;
  padding: 1.2rem;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.9), 0 0 15px rgba(212, 175, 55, 0.15);
  position: relative;
}

.dial-frequency-scale {
  height: 55px;
  border-bottom: 2px solid var(--gold-dark);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 10px 6px;
  background: repeating-linear-gradient(90deg, 
    transparent 0px, transparent 18px, 
    rgba(212, 175, 55, 0.3) 18px, rgba(212, 175, 55, 0.3) 20px);
}

.scale-num {
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  color: var(--gold-light);
}

.dial-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30%;
  width: 3px;
  background: #ff3333;
  box-shadow: 0 0 8px #ff3333;
  transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.dial-needle::after {
  content: "";
  position: absolute;
  top: -4px; left: -4px;
  width: 11px; height: 11px;
  background: #ff3333;
  border-radius: 50%;
}

/* Now Playing Information Card */
.now-playing-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(35, 18, 52, 0.6);
  border: 1px solid var(--gold-border-gradient);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
}

.record-visualizer-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0,0,0,0.8);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.is-playing .vinyl-disc {
  animation: spin 3s linear infinite;
}

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

.track-meta {
  flex-grow: 1;
  overflow: hidden;
}

.track-label-small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.track-title {
  font-family: var(--font-subheading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.track-artist {
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Audio Controls & Visualizer */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-play-master {
  background: var(--gold-gradient);
  color: #0f0516;
  font-family: var(--font-subheading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-play-master:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
}

.btn-play-master:active {
  transform: translateY(0);
}

.volume-control-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vol-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

.volume-slider {
  appearance: none;
  width: 120px;
  height: 6px;
  background: #251532;
  border-radius: 3px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 8px var(--gold-primary);
}

.audio-visualizer-canvas {
  width: 100%;
  height: 45px;
  background: rgba(10, 4, 15, 0.8);
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Side Panel: Station Channels & Vintage Gramophone Graphic */
.radio-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.channel-selector-card {
  background: rgba(22, 11, 31, 0.7);
  border: 1px solid var(--gold-dark);
  border-radius: 6px;
  padding: 1.2rem;
}

.card-title-small {
  font-family: var(--font-subheading);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 6px;
}

.station-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.station-btn {
  background: rgba(35, 17, 49, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-gold);
  padding: 10px 14px;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.station-btn * {
  pointer-events: none;
}

.station-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
}

.station-btn.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent);
  border-left: 4px solid var(--gold-primary);
  color: #ffffff;
  font-weight: 600;
}

.station-freq {
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-family: var(--font-subheading);
}

/* Sound FX Toggles */
.fx-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.fx-toggle-btn {
  background: rgba(15, 6, 22, 0.8);
  border: 1px solid var(--gold-dark);
  color: var(--text-muted);
  padding: 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.fx-toggle-btn.active {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Station Details Section */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .info-section {
    grid-template-columns: 1fr;
  }
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 1.8rem;
  border-radius: 4px;
}

.info-box h3 {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-external-link {
  display: inline-block;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn-external-link:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--gold-primary);
  text-decoration: none;
}
