/* ========== ONE CARIBBEAN RADIO — PREMIUM CARIBBEAN REDESIGN ========== */
/* Layered override: keeps all existing selectors, elevates the visual design */

/* ── DESIGN TOKENS ── */
:root {
  /* Refined palette */
  --green: #F5A623;
  --green-light: #FFBE4F;
  --green-dark: #D4891A;
  --bg-base: #080808;
  --bg-elevated: #111111;
  --bg-card: #151515;
  --bg-highlight: #1c1c1c;
  --bg-hover: #222222;
  --gray-dark: #333333;
  --gray-mid: #666666;
  --gray-light: #aaaaaa;
  --accent: #F5A623;
  --accent-hover: #FFBE4F;
  --primary: #F5A623;
  --success: #2ecc71;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(245, 166, 35, 0.15);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── GLOBAL ── */
body {
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(245, 166, 35, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, .section-title {
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-title {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SIDEBAR ── */
.sidebar {
  background: linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.sidebar-logo {
  background: linear-gradient(135deg, var(--accent) 0%, #E8941A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(245, 166, 35, 0.3));
}

.nav-item {
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  border-radius: inherit;
}

.nav-item:hover::before {
  opacity: 1;
}

.nav-item.active {
  background: rgba(245, 166, 35, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.2);
}

.nav-item.active svg {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.4));
}

.nav-item svg {
  transition: all var(--transition-smooth);
}

.nav-item:hover svg {
  transform: scale(1.12);
  color: var(--accent);
}

/* ── HEADER ── */
.header {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.search-input-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: all var(--transition-smooth);
}

.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.search-input {
  color: #fff;
  font-weight: 500;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ── LISTENERS BADGE ── */
.listeners-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.listeners-pulse {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(46, 204, 113, 0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 16px rgba(46, 204, 113, 0.8); }
}

/* ── MAIN CONTENT ── */
.main-content {
  background: var(--bg-base);
}

/* ── SONG CARDS ── */
.song-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.song-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.song-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.song-card:hover::before {
  opacity: 1;
}

.song-card .song-artwork,
.song-card .card-img {
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth);
}

.song-card:hover .song-artwork,
.song-card:hover .card-img {
  transform: scale(1.04);
}

/* Play button overlay on cards */
.song-card .play-btn,
.play-overlay {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
  transition: all var(--transition-spring);
  transform: translateY(8px);
  opacity: 0;
}

.song-card:hover .play-btn,
.song-card:hover .play-overlay {
  transform: translateY(0);
  opacity: 1;
}

.play-btn:hover,
.play-overlay:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.5);
}

/* ── CONTENT GRIDS ── */
.song-grid, .artists-grid, .radio-stations-grid, .live-sessions-grid {
  gap: 20px;
}

/* ── CHANNEL SECTIONS ── */
.channel-section {
  margin-bottom: 2.5rem;
}

.channel-section .section-title,
.channel-header .channel-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── ARTIST CARDS ── */
.artist-card {
  transition: all var(--transition-smooth);
}

.artist-card:hover {
  transform: translateY(-4px);
}

.artist-card img {
  transition: transform var(--transition-smooth);
  border: 2px solid rgba(255, 255, 255, 0.06);
}

.artist-card:hover img {
  transform: scale(1.06);
  border-color: rgba(245, 166, 35, 0.3);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}

/* ── RADIO STATION CARDS ── */
.radio-card, .station-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.radio-card:hover, .station-card:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* ── BOTTOM PLAYER BAR ── */
.player {
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.player-artwork img {
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-smooth);
}

.player:hover .player-artwork img {
  transform: scale(1.05);
}

.player-song-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.player-controls button {
  transition: all var(--transition-fast);
  border-radius: 999px;
}

.player-controls button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
}

.player-controls .play-pause-btn,
.player-controls .btn-play {
  background: #fff;
  color: #000;
  border-radius: 999px;
  transition: all var(--transition-spring);
}

.player-controls .play-pause-btn:hover,
.player-controls .btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Progress bar */
.progress-bar, .player-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  height: 4px;
  cursor: pointer;
  transition: height var(--transition-fast);
}

.progress-bar:hover, .player-progress:hover {
  height: 6px;
}

.progress-fill, .player-progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 999px;
  position: relative;
}

.progress-fill::after, .player-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform var(--transition-fast);
}

.progress-bar:hover .progress-fill::after,
.player-progress:hover .player-progress-fill::after {
  transform: translateY(-50%) scale(1);
}

/* Volume */
.volume-slider {
  accent-color: var(--accent);
}

/* ── MODALS ── */
.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-close {
  transition: all var(--transition-fast);
  border-radius: 999px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* ── BUTTONS ── */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--green-dark));
  color: #000;
  border: none;
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.btn-upgrade {
  background: linear-gradient(135deg, #F5A623, #E8941A, #D4891A);
  color: #000;
  font-weight: 800;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.3);
}

.btn-upgrade:hover {
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.5);
  transform: translateY(-2px);
}

/* ── GENRE FILTER CHIPS ── */
.genre-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  transition: all var(--transition-smooth);
  padding: 8px 18px;
}

.genre-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.genre-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.3);
}

/* ── FEED ── */
.feed-tab-fullscreen {
  background: var(--bg-base);
}

.feed-stage-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-stage-dot {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

/* ── LIVE BADGE ── */
.live-count-badge {
  background: #e22134;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(226, 33, 52, 0.5);
  animation: pulse-glow-red 2s ease-in-out infinite;
}

@keyframes pulse-glow-red {
  0%, 100% { box-shadow: 0 0 8px rgba(226, 33, 52, 0.5); }
  50% { box-shadow: 0 0 16px rgba(226, 33, 52, 0.8); }
}

/* ── AUTH FORMS ── */
.auth-container, .auth-box {
  background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.auth-container input,
.auth-box input,
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #fff;
  transition: all var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

/* ── BRAND STORY ── */
.ocr-brand-story {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.05), rgba(245, 166, 35, 0.02));
  border: 1px solid rgba(245, 166, 35, 0.08);
  border-radius: var(--radius-lg);
}

.ocr-benefit-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.ocr-benefit-card:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.ocr-benefit-card__accent {
  background: linear-gradient(180deg, var(--accent), transparent);
}

/* ── PLAN BADGES ── */
.plan-badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 3px 10px;
}

.plan-badge.plus {
  background: linear-gradient(135deg, var(--accent), var(--green-dark));
  color: #000;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

.plan-badge.free {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

/* ── LOADING SPINNER ── */
.spinner {
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
}

/* ── MOBILE BOTTOM NAV ── */
.mobile-nav {
  background: linear-gradient(180deg, #111111 0%, #080808 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-nav-item {
  transition: all var(--transition-smooth);
}

.mobile-nav-item.active {
  color: var(--accent);
}

.mobile-nav-item.active svg {
  filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.4));
}

/* ── AVATAR DROPDOWN ── */
.avatar-dropdown-menu {
  background: linear-gradient(180deg, #1e1e1e 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(20px);
}

.avatar-dropdown-menu a,
.avatar-dropdown-menu button {
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.avatar-dropdown-menu a:hover,
.avatar-dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ── SONG QUICK MENU ── */
.song-quick-menu {
  background: linear-gradient(180deg, #1e1e1e 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.song-quick-menu-item {
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.song-quick-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ── LEGAL OVERLAY ── */
.legal-content {
  background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

/* ── SEARCH RESULTS ── */
.search-result-item {
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ── ANIMATION UTILITIES ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.section {
  animation: fadeInUp 0.4s ease-out both;
}

/* Stagger sections */
.section:nth-child(2) { animation-delay: 0.05s; }
.section:nth-child(3) { animation-delay: 0.1s; }
.section:nth-child(4) { animation-delay: 0.15s; }

/* ── PLATFORM LINKS FOOTER ── */
.ocr-platform-links {
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.03), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ocr-link-column a {
  transition: color var(--transition-fast);
}

.ocr-link-column a:hover {
  color: var(--accent);
}

/* ── TOOLTIP POLISH ── */
[title] {
  position: relative;
}

/* ── FOCUS STATES ── */
*:focus-visible {
  outline: 2px solid rgba(245, 166, 35, 0.5);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid rgba(245, 166, 35, 0.5);
  outline-offset: 2px;
}
