/* 
 * Analog Grooves - Global Style System
 * Design System: Vintage Hi-Fi / Brushed Metal / Cinematic Soul
 * Features: Dark/Light Mode, Custom Animations, Responsive Hiyerarşi
 */

/* ==========================================
   1. DESIGN TOKENS (VARIABLES)
   ========================================== */

:root {
    --bg: #121212;
    --card-bg: #1a1a1a;
    --accent: #ffb300;
    --text-main: #f4f4f5;
    --text-muted: #888888;
    --border: rgba(255,255,255,0.05);
    --drawer-bg: #121212;
    --container-bg: rgba(255,255,255,0.02);
    --container-border: rgba(255,255,255,0.05);
}

body.light-mode {
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #0a0a0a;
    --text-muted: #666666;
    --border: rgba(0,0,0,0.08);
    --drawer-bg: #ffffff;
    --container-bg: rgba(0,0,0,0.03);
    --container-border: rgba(0,0,0,0.05);
}

/* ==========================================
   2. LIGHT MODE OVERRIDES (OPTIMIZED)
   ========================================== */

body.light-mode {
    background-image: none !important;
}

/* Global Text Colors for Light Mode */
body.light-mode h1, body.light-mode h2, body.light-mode h3, 
body.light-mode h4, body.light-mode p, body.light-mode span:not(.text-white) {
    color: var(--text-main) !important;
}

/* Keep Specific Branding Colors */
body.light-mode .text-accent { color: #92400e !important; }
body.light-mode .text-zinc-500, body.light-mode .text-zinc-600 { color: #4b5563 !important; }

/* Force White Text on CTA Buttons */
body.light-mode .hero-btn-sync span, 
body.light-mode .hero-btn-sync svg,
body.light-mode .luxury-btn span,
body.light-mode .luxury-btn svg {
    color: #ffffff !important;
}

/* Drawer Specific Light Mode Tweaks */
body.light-mode .detail-drawer {
    box-shadow: -20px 0 60px rgba(0,0,0,0.05);
}

body.light-mode #drawerTitle, 
body.light-mode #drawerSlogan {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
}

body.light-mode .lyrics-container {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05) !important;
}

body.light-mode .lyrics-container,
body.light-mode .lyrics-container span {
    color: #1a1a1a !important;
}

body.light-mode .lyrics-container .italic {
    color: #666666 !important;
}

/* ==========================================
   3. BASE STYLES & LAYOUT
   ========================================== */

body {
    font-family: 'Roboto Condensed', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    background-attachment: fixed;
    transition: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1), color 0.8s ease;
    /* Vintage Texture */
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.02) 0%, transparent 30%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(255,255,255,0.01) 1px, rgba(255,255,255,0.01) 2px);
}

body.drawer-open main, 
body.drawer-open header {
    filter: blur(8px) brightness(0.7);
}

.serif-font { font-family: 'Roboto Condensed', sans-serif; }

.davis-name {
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--accent);
}

/* ==========================================
   4. COMPONENT: ALBUM CARDS
   ========================================== */

.album-card {
    background: var(--card-bg);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid var(--border);
    position: relative;
}

.album-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

body:not(.light-mode) .album-card:hover {
    border-color: rgba(255, 179, 0, 0.6);
    box-shadow: 0 0 60px rgba(255, 179, 0, 0.1);
    background: #111111;
}

/* Image Grayscale Effect (Dark Mode only) */
body:not(.light-mode) .album-card .album-image-container img {
    opacity: 0.4;
    filter: grayscale(1) contrast(1.2);
    transition: all 1.2s ease;
}

body:not(.light-mode) .album-card:hover .album-image-container img,
body:not(.light-mode) .album-card.color-pulse .album-image-container img {
    opacity: 1;
    filter: grayscale(0) contrast(1);
}

body:not(.light-mode) .album-card.color-pulse .album-image-container img {
    transition: all 0.2s ease-out !important;
}

body:not(.light-mode) .album-card.color-pulse {
    border-color: rgba(255, 179, 0, 0.6);
    box-shadow: 0 0 40px rgba(255, 179, 0, 0.2);
    transition: all 0.2s ease-out !important;
}

/* Image Effect (Light Mode: Reverse - Color to Grayscale) */
body.light-mode .album-card .album-image-container img {
    opacity: 1;
    filter: grayscale(0) contrast(1);
    transition: all 1.2s ease;
}

body.light-mode .album-card:hover .album-image-container img,
body.light-mode .album-card.color-pulse .album-image-container img {
    opacity: 0.5;
    filter: grayscale(1) contrast(1.2);
}

body.light-mode .album-card.color-pulse .album-image-container img {
    transition: all 0.2s ease-out !important;
}

body.light-mode .album-card.color-pulse {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-out !important;
}

/* ==========================================
   5. COMPONENT: BUTTONS (CTA & LUXURY)
   ========================================== */

.hero-btn-sync {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-btn-sync:hover {
    transform: translateY(-5px) scale(1.02) !important;
    filter: brightness(1.1);
}

.contact-btn {
    background: var(--accent) !important;
    color: #000000 !important;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.luxury-btn {
    background: #FF0000;
    color: #fff;
    border: none;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.luxury-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.8s;
}

.luxury-btn:hover::after { left: 100%; }

/* ==========================================
   6. COMPONENT: DRAWERS & MISC
   ========================================== */

.detail-drawer {
    background: var(--drawer-bg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s ease;
}

/* Open States */
body.album-drawer-open #detailDrawer,
body.contact-drawer-open #contactDrawer {
    transform: translateX(0);
    box-shadow: -20px 0 60px rgba(0,0,0,0.1);
}

body.light-mode.album-drawer-open #detailDrawer,
body.light-mode.contact-drawer-open #contactDrawer {
    box-shadow: -30px 0 70px rgba(0,0,0,0.15);
    border-left: 1px solid rgba(0,0,0,0.05);
}

body.album-drawer-open #drawerOverlay,
body.contact-drawer-open #drawerOverlay {
    display: block !important;
    opacity: 1 !important;
}

body.album-drawer-open, body.contact-drawer-open {
    overflow: hidden !important;
}

/* Drawer Content Animations */
.drawer-content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.album-drawer-open .drawer-content-section,
body.contact-drawer-open .drawer-content-section {
    opacity: 1;
    transform: translateY(0);
}

.detail-drawer::-webkit-scrollbar { width: 4px; }
.detail-drawer::-webkit-scrollbar-thumb { background: rgba(255,179,0,0.1); border-radius: 10px; }
.detail-drawer::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.track-title-slim {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
}

.lyrics-container {
    line-height: 1.4;
    letter-spacing: 0.02em;
    white-space: normal;
}

.pagination-num {
    transition: all 0.5s ease;
    position: relative;
}

.pagination-num.active {
    color: #ffb300 !important;
}

.pagination-num.active::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 2px;
    background: var(--accent);
}

/* ==========================================
   7. ANIMATIONS (PREMIUM EFFECTS)
   ========================================== */

@keyframes ambientFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes breatheAmber {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.1); }
    50% { box-shadow: 0 0 35px rgba(245, 158, 11, 0.4); }
}

.artist-glow {
    animation: breatheAmber 8s ease-in-out infinite;
    border-color: rgba(255,179,0,0.4) !important;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
