/* ============================================
   VORTEX RECORDS - DESIGN SYSTEM
   Modern, cohesive design with consistent spacing
   ============================================ */

/* === COLOR PALETTE === */
:root {
    --vortex-black: #000000;
    --vortex-dark: #0a0a0a;
    --vortex-gray-900: #1a1a1a;
    --vortex-gray-800: #2a2a2a;
    --vortex-gray-700: #3a3a3a;
    --vortex-gray-500: #6b7280;
    --vortex-gray-300: #d1d5db;
    --vortex-gray-100: #f3f4f6;
    --vortex-white: #ffffff;
    
    /* Accent colors - refined palette */
    --vortex-blue: #3b82f6;
    --vortex-blue-light: #60a5fa;
    --vortex-blue-dark: #2563eb;
    
    /* Spacing system (8px rhythm) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE STYLES === */
body.bg-black {
    background: var(--vortex-black) !important;
    color: var(--vortex-white);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
.chrome-glow {
    color: var(--vortex-white);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
    animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
    }
    50% {
        text-shadow: 0 0 60px rgba(59, 130, 246, 0.7), 0 0 80px rgba(59, 130, 246, 0.3);
    }
}

.chrome-glow-soft {
    color: var(--vortex-gray-100);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* === NAVIGATION === */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: var(--space-2) 0;
}

.navbar-brand {
    color: var(--vortex-white) !important;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform var(--transition-base);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.logo-glow {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    transition: filter var(--transition-base);
    animation: logoGlowPulse 4s ease-in-out infinite;
}

.logo-glow:hover {
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
}

@keyframes logoGlowPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)); 
    }
    50% { 
        filter: drop-shadow(0 0 32px rgba(59, 130, 246, 0.6)); 
    }
}

.navbar-nav .nav-link {
    color: var(--vortex-gray-300) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--vortex-blue);
    transition: transform var(--transition-base);
}

.navbar-nav .nav-link:hover {
    color: var(--vortex-white) !important;
    background: rgba(59, 130, 246, 0.1);
}

.navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* === BUTTONS === */
.btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover, .btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--vortex-blue) 0%, var(--vortex-blue-dark) 100%);
    color: var(--vortex-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--vortex-blue-light) 0%, var(--vortex-blue) 100%);
}

.btn-secondary {
    background: var(--vortex-gray-800);
    color: var(--vortex-white);
    border: 1px solid var(--vortex-gray-700);
}

.btn-secondary:hover {
    background: var(--vortex-gray-700);
    border-color: var(--vortex-blue);
}

.btn .fs-5 {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* === SOCIAL ICONS === */
.social-icon img {
    transition: all var(--transition-base);
    filter: brightness(0.9);
}

.social-icon:hover img {
    transform: translateY(-4px) scale(1.1);
    filter: brightness(1) drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

/* === FORMS === */
.form-control, .form-select {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--vortex-gray-700);
    color: var(--vortex-white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-control:focus, .form-select:focus {
    background: rgba(26, 26, 26, 0.8);
    border-color: var(--vortex-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: var(--vortex-white);
    outline: none;
}

.form-control::placeholder {
    color: var(--vortex-gray-500);
}

.form-label {
    color: var(--vortex-gray-300);
    font-weight: 500;
    margin-bottom: var(--space-1);
    font-size: 0.9rem;
}

/* === TRACK STYLES === */
.unreleased-track {
    background: var(--vortex-gray-900) !important;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--vortex-gray-800);
}

.unreleased-img {
    filter: grayscale(0.6) blur(0.5px) brightness(0.7);
    transition: filter var(--transition-base);
}

.unreleased-text {
    color: var(--vortex-gray-500) !important;
    text-shadow: none !important;
}

/* Pre-save hover effect */
.track-content {
    position: relative;
    z-index: 1;
    transition: filter var(--transition-base);
}

.presave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.95));
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
    border-radius: var(--radius-lg);
}

.presave-text {
    color: var(--vortex-blue-light);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.presave-hover-trigger:hover .track-content {
    filter: blur(2px) brightness(0.6);
}

.presave-hover-trigger:hover .presave-overlay {
    opacity: 1;
}

.presave-hover-trigger:hover .presave-text {
    opacity: 1;
    transform: translateY(0);
}

/* === SHIMMER EFFECT === */
.shimmer {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, 
        var(--vortex-gray-300) 0%, 
        var(--vortex-white) 50%, 
        var(--vortex-gray-300) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2.5s infinite linear;
    font-weight: 600;
    font-size: 1.15rem;
}

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

/* === ALERTS & NOTIFICATIONS === */
.alert {
    border-radius: var(--radius-lg);
    border: 1px solid;
    padding: var(--space-2) var(--space-3);
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--vortex-blue-light);
}

/* === MODALS === */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    z-index: 1050;
}

.modal-content {
    background: var(--vortex-gray-900);
    border: 1px solid var(--vortex-gray-700);
    border-radius: var(--radius-xl);
    color: var(--vortex-white);
}

.modal-header {
    border-bottom: 1px solid var(--vortex-gray-700);
    padding: var(--space-3);
}

.modal-body {
    padding: var(--space-3);
    color: var(--vortex-gray-300);
    line-height: 1.7;
}

.modal-title {
    color: var(--vortex-white);
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.btn-close:hover {
    opacity: 1;
}

/* Modal trigger links */
a[data-bs-toggle="modal"] {
    color: var(--vortex-blue-light);
    text-decoration: underline;
    cursor: pointer;
    transition: color var(--transition-base);
}

a[data-bs-toggle="modal"]:hover {
    color: var(--vortex-blue);
    text-decoration: underline;
}

/* === CARDS === */
.card {
    background: var(--vortex-gray-900);
    border: 1px solid var(--vortex-gray-800);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.card-body {
    padding: var(--space-3);
}

/* === DASHBOARD STYLES === */
.sidebar {
    min-height: 100vh;
    background: var(--vortex-gray-900);
    color: var(--vortex-white);
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    border-right: 1px solid var(--vortex-gray-800);
}

.sidebar .nav-link {
    color: var(--vortex-gray-300);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-1);
    transition: all var(--transition-base);
    font-weight: 500;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--vortex-white);
    border-left: 3px solid var(--vortex-blue);
    padding-left: 13px;
}

.main-content {
    margin-left: 240px;
    padding: var(--space-4);
}

.navbar.dashboard-navbar {
    margin-left: 240px;
    background: var(--vortex-gray-100) !important;
    border-bottom: 1px solid var(--vortex-gray-300);
}

/* === NEXT RELEASE STYLES === */
.next-release-link {
    text-decoration: none;
    color: var(--vortex-white);
    transition: all var(--transition-base);
    display: inline-block;
}

.next-release {
    position: relative;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.next-release::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--vortex-blue);
    visibility: hidden;
    transform: scaleX(0);
    transition: all var(--transition-base);
}

.next-release-link:hover {
    color: var(--vortex-blue-light);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.next-release-link:hover .next-release::before {
    visibility: visible;
    transform: scaleX(1);
}

/* === UTILITY CLASSES === */
.fade-out {
    transition: opacity var(--transition-slow);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        padding: var(--space-2);
    }
    
    .navbar.dashboard-navbar {
        margin-left: 200px;
    }
}

@media (max-width: 576px) {
    :root {
        --space-4: 24px;
        --space-6: 40px;
    }
    
    .chrome-glow {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

/* === LIGHT THEME OVERRIDES (for dashboard login) === */
body:not(.bg-black) .form-control,
body:not(.bg-black) .form-select {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #1a1a1a;
}

body:not(.bg-black) .form-control:focus,
body:not(.bg-black) .form-select:focus {
    background: #ffffff;
    border-color: var(--vortex-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: #1a1a1a;
}

body:not(.bg-black) .form-control::placeholder {
    color: #9ca3af;
}

body:not(.bg-black) .form-label {
    color: #374151;
    font-weight: 600;
}

body:not(.bg-black) .alert {
    border-width: 1px;
    font-weight: 500;
}

body:not(.bg-black) .alert-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

body:not(.bg-black) .card {
    background: #ffffff;
    border: none;
}
