/* 
 * VOCU FM Premium Styles v2.0
 * Design: Dark Mode + Glassmorphism + VOCU Green
 */

:root {
    --primary-green: #76b900;
    --primary-green-glow: rgba(118, 185, 0, 0.5);
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background dynamic elements */
.glass-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, #1a3a0e 0%, #0a0a0a 70%);
    z-index: -1;
}

.glass-background::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--primary-green);
    filter: blur(150px);
    opacity: 0.15;
    animation: pulse-bg 10s infinite alternate;
}

@keyframes pulse-bg {
    from { transform: scale(1); opacity: 0.1; }
    to { transform: scale(1.5); opacity: 0.2; }
}

/* Main Container */
.app-container {
    width: 100%;
    max-width: 450px;
    height: 100dvh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 5px 0;
}

.main-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    animation: logo-entrance 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

@keyframes logo-entrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Player Section */
.player-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    perspective: 1000px;
}

.player-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.player-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    height: 30px;
}

.visualizer-bar {
    width: 4px;
    height: 40%;
    background: var(--primary-green);
    border-radius: 2px;
    opacity: 0.3;
    transition: height 0.3s ease;
}

.playing .visualizer-bar {
    opacity: 1;
    animation: bounce 1s ease-in-out infinite;
}

.bar-1 { animation-delay: 0.1s; }
.bar-2 { animation-delay: 0.3s; }
.bar-3 { animation-delay: 0.2s; }
.bar-4 { animation-delay: 0.4s; }
.bar-5 { animation-delay: 0.1s; }

@keyframes bounce {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

/* Track Info */
.track-info {
    margin: 5px 0;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 400;
}

/* Play Button Custom */
.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: var(--primary-green);
    color: black;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--primary-green-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary-green);
}

.play-button:active {
    transform: scale(0.95);
}

.playing .play-button {
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Status */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.listeners-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.peak-count {
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 10px;
    opacity: 0.6;
    font-size: 0.7rem;
    display: flex;
    gap: 3px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-green);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.online-label {
    color: var(--text-dim);
}

/* Ads Slider */
.ads-section {
    margin: 5px 0;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    background: var(--glass-bg);
    border-radius: 15px;
    padding: 8px 0;
    border: 1px solid var(--glass-border);
}

.ads-track {
    display: flex;
    width: calc(150px * 5); /* Ajustado a los 3 items + 2 duplicados */
    animation: slide-infinite 15s linear infinite;
}

.ad-item {
    min-width: 120px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.ad-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
}

@keyframes slide-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 3)); }
}

/* Footer con Botones Visibles */
.main-footer {
    padding-bottom: 5px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.footer-btn {
    flex: 1;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px 5px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
    white-space: nowrap;
}

.footer-btn:hover {
    background: var(--glass-border);
    color: #fff;
}

/* Responsive adjustments */
@media (max-height: 650px) {
    .main-logo { height: 40px; }
    .player-card { padding: 15px; gap: 10px; }
    .play-button { width: 70px; height: 70px; }
    .track-info { min-height: 35px; }
}

/* For larger screens */
@media (min-width: 768px) {
    .app-container {
        max-width: 400px;
    }
}
