/* ===== RADIO CENTRAL 105.7 - LANDING ===== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --bg: #0A0E1A;
  --card: #111827;
  --primary: #00A3FF;
  --primary-glow: rgba(0, 163, 255, 0.3);
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --border: rgba(0, 163, 255, 0.2);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}

/* Animated Gradient Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 163, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 163, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 163, 255, 0.08) 0%, transparent 50%);
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* Particles Canvas */
#particlesCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

/* Visualizer */
.visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.player.playing .visualizer {
  opacity: 1;
}

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

/* Logo */
.logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 255, 1) 0%, rgba(0, 163, 255, 0.6) 20%, rgba(0, 163, 255, 0.2) 45%, transparent 65%);
  filter: blur(40px);
  animation: logoGlow 2.5s ease-in-out infinite;
}

.logo-glow::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.4) 0%, transparent 60%);
  filter: blur(50px);
  animation: logoGlowInner 2.5s ease-in-out infinite reverse;
}

@keyframes logoGlow {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.4);
    opacity: 1;
  }
}

@keyframes logoGlowInner {
  0%, 100% { 
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% { 
    transform: scale(1.5);
    opacity: 1;
  }
}

.logo {
  position: relative;
  width: 220px;
  height: auto;
  filter: drop-shadow(0 0 30px var(--primary-glow));
  animation: logoCombined 1.5s ease-in-out infinite, logoEntrance 0.8s ease-out;
}

@keyframes logoCombined {
  0%, 100% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-3px) scale(1.12); }
  40% { transform: translateY(0) scale(1); }
  60% { transform: translateY(-2px) scale(1.08); }
  80% { transform: translateY(0) scale(1); }
}

@keyframes logoEntrance {
  from { 
    opacity: 0; 
    transform: scale(0.8) translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

/* Status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 163, 255, 0.15);
  background: rgba(0, 163, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.reconnecting {
  background: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-dot.error {
  background: #EF4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: none;
}

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

/* Player */
.player {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 163, 255, 0.15);
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.player.playing {
  border-color: rgba(0, 163, 255, 0.5);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3), 0 0 40px var(--primary-glow);
}

/* Glow Pulse */
.glow-pulse {
  position: absolute;
  top: 50%;
  left: 38px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.6) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Player Visual - contains icon or equalizer */
.player-visual {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid var(--border);
}

.radio-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.equalizer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.player.playing .radio-icon { opacity: 0; }
.player.playing .equalizer { opacity: 1; }

.equalizer span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleY(0.3);
  transform-origin: center;
}

.equalizer span:nth-child(1) { height: 16px; }
.equalizer span:nth-child(2) { height: 24px; }
.equalizer span:nth-child(3) { height: 20px; }
.equalizer span:nth-child(4) { height: 28px; }
.equalizer span:nth-child(5) { height: 14px; }

/* Play Button */
.play-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 25px var(--primary-glow);
  -webkit-tap-highlight-color: transparent;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(0, 163, 255, 0.5);
}

.play-btn:active {
  transform: scale(0.95);
}

.icon-loading {
  animation: spin 1s linear infinite;
}

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

.player-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.player-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.vol-btn:hover {
  color: var(--text);
}

.vol-slider {
  width: 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 163, 255, 0.2);
  outline: none;
}

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

.vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

/* Social Icons */
.socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 163, 255, 0.12);
  color: var(--text-muted);
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.social-icon:nth-child(1) { animation-delay: 0.1s; }
.social-icon:nth-child(2) { animation-delay: 0.2s; }
.social-icon:nth-child(3) { animation-delay: 0.3s; }
.social-icon:nth-child(4) { animation-delay: 0.4s; }

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

.social-icon:hover {
  border-color: var(--primary);
  background: rgba(0, 163, 255, 0.1);
  color: var(--primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 15px var(--primary-glow);
}

.social-icon.wa:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

/* Footer */
.footer {
  font-size: 12px;
  color: var(--text-muted);
}

/* Share Button */
.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 163, 255, 0.2);
  background: rgba(0, 163, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.share-btn:hover {
  background: rgba(0, 163, 255, 0.15);
  border-color: rgba(0, 163, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
}

.share-btn:active {
  transform: scale(0.97);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 360px) {
  body { padding: 16px; }
  .landing-content { gap: 24px; }
  .logo { width: 160px; }
  .status { font-size: 10px; padding: 5px 12px; }
  .player { padding: 12px 14px; gap: 10px; }
  .player-visual { width: 38px; height: 38px; }
  .play-btn { width: 38px; height: 38px; }
  .player-title { font-size: 12px; }
  .volume { gap: 6px; }
  .vol-slider { width: 50px; }
  .social-icon { width: 40px; height: 40px; }
  .equalizer span:nth-child(1) { height: 10px; }
  .equalizer span:nth-child(2) { height: 16px; }
  .equalizer span:nth-child(3) { height: 12px; }
  .equalizer span:nth-child(4) { height: 20px; }
  .equalizer span:nth-child(5) { height: 8px; }
}

@media (max-width: 480px) {
  body { padding: 20px; }
  .logo { width: 200px; }
  .player { padding: 14px 16px; gap: 12px; }
  .player-visual { width: 44px; height: 44px; }
  .play-btn { width: 44px; height: 44px; }
  .vol-slider { width: 60px; }
  .equalizer span:nth-child(1) { height: 12px; }
  .equalizer span:nth-child(2) { height: 18px; }
  .equalizer span:nth-child(3) { height: 14px; }
  .equalizer span:nth-child(4) { height: 22px; }
  .equalizer span:nth-child(5) { height: 10px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .logo { width: 240px; }
  .player { padding: 18px 24px; }
}

@media (min-width: 769px) {
  .logo { width: 260px; }
  .player { padding: 20px 28px; }
  .player-title { font-size: 16px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  body {
    align-items: flex-start;
    padding-top: 16px;
  }
  .landing-content { gap: 16px; }
  .logo { width: 120px; }
  .status { padding: 4px 12px; font-size: 10px; }
  .player { padding: 10px 16px; gap: 10px; }
  .player-visual { width: 36px; height: 36px; }
  .play-btn { width: 36px; height: 36px; }
  .equalizer span:nth-child(1) { height: 8px; }
  .equalizer span:nth-child(2) { height: 14px; }
  .equalizer span:nth-child(3) { height: 10px; }
  .equalizer span:nth-child(4) { height: 18px; }
  .equalizer span:nth-child(5) { height: 6px; }
}

@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
  }
}

/* Promo Modal */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.promo-overlay.visible {
  display: flex !important;
}

.promo-modal {
  position: relative;
  max-width: 500px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 163, 255, 0.3);
  animation: promoIn 0.4s ease-out;
}

@keyframes promoIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.promo-modal img {
  width: 100%;
  display: block;
}

.promo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  z-index: 201;
  transition: background 0.2s;
}

.promo-close:hover {
  background: rgba(239, 68, 68, 0.8);
}

@media (max-width: 360px) {
  .promo-overlay { padding: 12px; }
  .promo-modal { border-radius: 12px; }
  .promo-close { width: 28px; height: 28px; font-size: 18px; line-height: 28px; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .promo-overlay {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
  .logo-glow { animation: none; }
  .status-dot { animation: none; }
  .social-icon { animation: none; opacity: 1; }
  .glow-pulse { display: none; }
  body::before { animation: none; }
  #particlesCanvas { display: none; }
}
