/* Dark Theme Variables */
:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-yellow: #FFD700;
    --accent-yellow-hover: #FFA500;
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(255, 215, 0, 0.2);
    --text-light: #ffffff;
    --text-muted: #999999;
    --text-secondary: #666666;
    --border-subtle: rgba(255, 255, 255, 0.1);
}

/* Base Styles with Performance Optimizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--primary-dark);
    color: var(--text-light);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    will-change: scroll-position;
}

/* Remove animated background for cleaner look */

/* Navigation */
.navbar {
    background: var(--primary-dark) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--accent-yellow) !important;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    color: var(--accent-yellow-hover) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--accent-yellow) !important;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* Blockquote Style */
.blockquote-custom {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
    border-left: 4px solid var(--accent-yellow);
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 650px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.blockquote-custom::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-yellow);
    position: absolute;
    left: -0.25rem;
    top: -0.5rem;
    font-family: Georgia, serif;
    opacity: 0.7;
}

.blockquote-custom::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent-yellow);
    position: absolute;
    right: 0.5rem;
    bottom: -1.25rem;
    font-family: Georgia, serif;
    opacity: 0.7;
}

/* Glass Morphism Effects */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--accent-yellow);
}

.glass-modal {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
}

.glass-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-light) !important;
    backdrop-filter: blur(10px);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-yellow) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25) !important;
    color: var(--text-light) !important;
}

.glass-input::placeholder {
    color: var(--text-muted) !important;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
}

.hero-section h1 {
    font-size: 4rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Track Items */
.track-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.track-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
}

.track-item:last-child {
    border-bottom: none !important;
}

/* Featured Track */
.featured-track-section .glass-effect {
    border: 1px solid var(--glass-border);
}

.featured-track-section .glass-effect:hover {
    border-color: var(--accent-yellow);
}

/* Buttons */
.btn-primary {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--accent-yellow-hover);
    border-color: var(--accent-yellow-hover);
    color: #000;
}

.btn-outline-primary {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #000;
}

/* Remove old button styles */

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border-radius: 25px;
    padding: 0.75rem 2rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 15px;
}

.alert-warning {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Badge */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Form Elements */
.form-label {
    color: var(--accent-yellow);
    font-weight: 500;
}

.form-range {
    background: transparent;
}

.form-range::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    background: var(--accent-yellow);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.form-range::-moz-range-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 6px;
    border: none;
}

.form-range::-moz-range-thumb {
    background: var(--accent-yellow);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Navigation responsive layout */
.navbar-brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* CRITICAL: Desktop navigation - hide mobile buttons, show desktop buttons */
.navbar-buttons-mobile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.navbar-buttons-desktop {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .track-card {
        margin-bottom: 1rem;
    }
    
    .player-container {
        padding: 120px 15px 50px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .control-btn.play-pause {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* CRITICAL: Mobile navigation - show mobile buttons, hide desktop buttons */
    .navbar-buttons-mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .navbar-buttons-desktop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Adjust navbar height for mobile layout */
    .navbar {
        padding: 1rem 0 0.5rem;
    }
    
    .main-content {
        padding-top: 100px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-yellow);
    animation: spin 1s ease-in-out infinite;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-yellow-hover);
}

/* Text Selection */
::selection {
    background: var(--accent-yellow);
    color: #000;
}

::-moz-selection {
    background: var(--accent-yellow);
    color: #000;
}
