/* -------------------------------------------------------------
   RADIO ARHIVA DE AUR - SIMPLIFIED STYLING
   Aesthetics: Clean, Minimalist, Luxury Gold Accents, Glassmorphism
   ------------------------------------------------------------- */

:root {
    /* Color Palette - Dark Theme (Default) - Golden Retro Luxury */
    --bg-base: #0a0908;
    --bg-surface: rgba(255, 255, 255, 0.02);
    --bg-surface-solid: #11100e;
    --border-color: rgba(255, 255, 255, 0.05);
    
    /* Gold Gradients */
    --primary-grad: linear-gradient(135deg, #c5a059 0%, #edd8a5 50%, #9e7a3f 100%);
    --secondary-grad: linear-gradient(135deg, #edd8a5 0%, #b8860b 100%);
    --accent-glow: 0 0 20px rgba(197, 160, 89, 0.25);
    --cyan-glow: 0 0 20px rgba(237, 216, 165, 0.2);
    
    /* Brand Colors */
    --primary: #c5a059;
    --primary-neon: #edd8a5;
    --gold: #dfc288;
    
    /* Typography Colors */
    --text-main: #f5f4f0;
    --text-muted: #9e9c96;
    --text-white: #ffffff;
    --text-dark: #11100e;
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Radii */
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50%;

    /* Aurora Glow Colors - Dark Theme */
    --glow-1: rgba(197, 160, 89, 0.15);  /* Gold */
    --glow-2: rgba(133, 97, 40, 0.12);   /* Dark Gold/Bronze */
    --glow-3: rgba(237, 216, 165, 0.1);  /* Pale Yellow Gold */
    --glow-4: rgba(223, 194, 136, 0.08); /* Warm Amber */
}

/* Light Theme */
[data-theme="light"] {
    --bg-base: #f9f8f6;
    --bg-surface: rgba(0, 0, 0, 0.02);
    --bg-surface-solid: #ffffff;
    --border-color: rgba(0, 0, 0, 0.06);
    
    --primary-grad: linear-gradient(135deg, #9e7a3f 0%, #c5a059 50%, #856128 100%);
    --secondary-grad: linear-gradient(135deg, #c5a059 0%, #6d4e1a 100%);
    --accent-glow: 0 0 15px rgba(158, 122, 63, 0.15);
    --cyan-glow: 0 0 15px rgba(197, 160, 89, 0.15);
    
    --primary: #856128;
    --primary-neon: #9e7a3f;
    --gold: #856128;
    
    --text-main: #252422;
    --text-muted: #757370;
    --text-white: #ffffff;
    --text-dark: #f9f8f6;

    /* Aurora Glow Colors - Light Theme */
    --glow-1: rgba(197, 160, 89, 0.08);
    --glow-2: rgba(158, 122, 63, 0.05);
    --glow-3: rgba(237, 216, 165, 0.06);
    --glow-4: rgba(223, 194, 136, 0.04);
}

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

html {
    background-color: var(--bg-base);
    transition: background-color var(--transition);
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header */
.main-header {
    width: 100%;
    background: rgba(var(--bg-base) == #0a0908 ? 10 : 249, var(--bg-base) == #0a0908 ? 9 : 248, var(--bg-base) == #0a0908 ? 8 : 246, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 960px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-main);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 16px;
    box-shadow: var(--accent-glow);
}

.logo-text .highlight {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--primary-grad);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: var(--accent-glow);
}

/* Main Layout */
.minimal-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.minimal-container {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

/* Glassmorphism Cards */
.glass-player-card, .glass-sidebar-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.glass-player-card::before, .glass-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-grad);
}

/* Left Panel: Player Card elements */
.player-wrapper {
    display: flex;
    justify-content: center;
}

.vinyl-box {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glowing-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-round);
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box, var(--primary-grad) border-box;
    box-shadow: var(--accent-glow);
}

.glowing-orbit.playing {
    animation: rotate-vinyl 15s linear infinite;
}

@keyframes rotate-vinyl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cover-art-container {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-round);
    overflow: hidden;
    border: 3px solid var(--bg-surface-solid);
    z-index: 1;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    text-align: center;
    margin-bottom: 20px;
}

.live-indicator-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.badge-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: var(--radius-round);
    display: none; /* Shown in app.js when active */
}

.glowing-orbit.playing ~ .track-details .live-dot-pulse {
    display: block;
    animation: pulse-dot 1.5s infinite;
}

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

.track-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Equalizer Visualizer */
.equalizer-container {
    height: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    margin-bottom: 24px;
}

.eq-bar {
    width: 4px;
    height: 3px;
    background: var(--primary-grad);
    border-radius: 1px;
    transition: height 0.1s ease;
}

/* Controls */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    background: var(--primary-grad);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.5);
}

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

/* Volume */
.volume-container {
    width: 100%;
    max-width: 240px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-btn {
    color: var(--text-muted);
    font-size: 16px;
    transition: color var(--transition);
}

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

.volume-slider-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-round);
    background: var(--gold);
    transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-progress {
    position: absolute;
    left: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--secondary-grad);
    pointer-events: none;
    width: 85%;
}

/* Right Panel: Side Card Elements */
.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dedication Form & Feed Styles */
.dedication-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 10px 14px;
    font-size: 13px;
    transition: all var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.15);
}

.form-group textarea {
    height: 70px;
    resize: none;
}

.btn-submit {
    background: var(--primary-grad);
    color: var(--text-dark);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--accent-glow);
    transition: all var(--transition);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

/* Feed Messages */
.feed-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 10px;
}

.feed-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    animation: fade-in-slide 0.3s ease-out;
}

@keyframes fade-in-slide {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
}

.feed-author {
    font-weight: 700;
    color: var(--gold);
}

.feed-time {
    color: var(--text-muted);
}

.feed-text {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.4;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 110;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(150%);
    transition: transform var(--transition);
}

.toast.show {
    transform: translateY(0);
}

.toast-icon {
    color: var(--primary);
    font-size: 18px;
}

.toast-body h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
}

.toast-body p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Footer */
.minimal-footer {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    background: var(--bg-surface-solid);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive grid styling */
@media (max-width: 768px) {
    .minimal-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .glass-player-card, .glass-sidebar-card {
        padding: 24px 20px;
    }
}

/* =============================================================
   Animated Background Glows & Grid Overlay
   ============================================================= */

.background-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-base);
    transition: background-color var(--transition);
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.85;
    mix-blend-mode: screen;
    transition: transform 2s ease, opacity 2s ease, background 1s ease;
}

/* Light mode optimization for color blending and visibility */
[data-theme="light"] .glow-blob {
    mix-blend-mode: multiply;
    filter: blur(100px);
    opacity: 0.45;
}

.glow-1 {
    top: -15%;
    left: -15%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
    animation: drift-glow-1 25s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -15%;
    right: -15%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, var(--glow-2) 0%, transparent 70%);
    animation: drift-glow-2 30s infinite alternate ease-in-out;
}

.glow-3 {
    top: 35%;
    left: 45%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--glow-3) 0%, transparent 70%);
    animation: drift-glow-3 28s infinite alternate ease-in-out;
}

.glow-4 {
    bottom: 15%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--glow-4) 0%, transparent 70%);
    animation: drift-glow-4 22s infinite alternate ease-in-out;
}

/* Drifting Keyframes */
@keyframes drift-glow-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vw, 12vh) scale(1.1); }
    100% { transform: translate(-4vw, 4vh) scale(0.95); }
}

@keyframes drift-glow-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-12vw, -8vh) scale(0.9); }
    100% { transform: translate(4vw, -15vh) scale(1.05); }
}

@keyframes drift-glow-3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6vw, 8vh) scale(1.15); }
    100% { transform: translate(10vw, -4vh) scale(0.9); }
}

@keyframes drift-glow-4 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12vw, -6vh) scale(0.9); }
    100% { transform: translate(-8vw, 10vh) scale(1.1); }
}

/* Active Audio State (Interactive Pulse & Speed) */
.background-glows.playing .glow-1 {
    animation-duration: 14s;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.24) 0%, transparent 70%);
}
.background-glows.playing .glow-2 {
    animation-duration: 17s;
    background: radial-gradient(circle, rgba(133, 97, 40, 0.2) 0%, transparent 70%);
}
.background-glows.playing .glow-3 {
    animation-duration: 15s;
    background: radial-gradient(circle, rgba(237, 216, 165, 0.18) 0%, transparent 70%);
}
.background-glows.playing .glow-4 {
    animation-duration: 13s;
    background: radial-gradient(circle, rgba(223, 194, 136, 0.15) 0%, transparent 70%);
}

[data-theme="light"] .background-glows.playing .glow-1 {
    background: radial-gradient(circle, rgba(197, 160, 89, 0.14) 0%, transparent 70%);
}
[data-theme="light"] .background-glows.playing .glow-2 {
    background: radial-gradient(circle, rgba(158, 122, 63, 0.09) 0%, transparent 70%);
}
[data-theme="light"] .background-glows.playing .glow-3 {
    background: radial-gradient(circle, rgba(237, 216, 165, 0.1) 0%, transparent 70%);
}
[data-theme="light"] .background-glows.playing .glow-4 {
    background: radial-gradient(circle, rgba(223, 194, 136, 0.08) 0%, transparent 70%);
}

/* Premium Micro-dot Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.95;
    mix-blend-mode: overlay;
}

[data-theme="light"] .grid-overlay {
    background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1.2px, transparent 1.2px);
    opacity: 0.8;
    mix-blend-mode: normal;
}
