/* Main CSS File */
/* Additional styles beyond what's in style.css */

/* Hero Background Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 11, 11, 0.6);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Video Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Player Loading State */
.player-btn.loading {
    position: relative;
    pointer-events: none;
}

.player-btn.loading i {
    opacity: 0;
}

.player-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Status Indicator Animation */
.player-status .fa-circle {
    font-size: 0.6rem;
    margin-right: 6px;
}

.player-status.online .fa-circle {
    color: #4CAF50;
}

.player-status.offline .fa-circle {
    color: #ff4444;
}

.player-status.buffering .fa-circle {
    color: #FF9800;
    animation: pulse 1s ease-in-out infinite;
}

/* Custom Scrollbar for Volume Slider */
.volume-slider {
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    transition: var(--transition);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    border: none;
}

/* Download Buttons Hover Effect */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: var(--transition);
}

.download-btn:hover::before {
    left: 100%;
}

/* Social Links Animation */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 188, 212, 0.1);
    transition: var(--transition);
    transform: translate(-50%, -50%);
}

.social-link:hover::after {
    width: 200%;
    height: 200%;
}

/* Now Playing Animation */
.player-song, .player-artist {
    transition: var(--transition);
}

.player-song.updating, .player-artist.updating {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card);
    color: var(--text);
    padding: 12px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: #4CAF50;
}

.toast.error {
    border-color: #ff4444;
}

.toast.info {
    border-color: var(--secondary);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: var(--primary);
    color: var(--text);
    z-index: 1000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 20px;
}

/* Print Styles */
@media print {
    .hero-background,
    .player-section,
    .server-status,
    .social-section,
    .download-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 20px;
        background: white !important;
    }
    
    .hero-title {
        -webkit-text-fill-color: black;
        background: none !important;
    }
    
    .hero-tagline {
        color: #333;
    }
}

/* RTL Support */
.rtl .player-controls {
    direction: ltr;
}

.rtl .volume-control {
    direction: ltr;
}

/* Dark Mode Optimization */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B0B0B;
        --card: #181818;
        --text: #FFFFFF;
        --text-secondary: #BDBDBD;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .player-card {
        border: 2px solid var(--text-secondary);
    }
    
    .player-btn {
        border: 2px solid currentColor;
    }
    
    .status-item {
        border: 2px solid var(--text-secondary);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}