/* =========================================
   DYNAMIC THEME VARIABLES
   ========================================= */
:root {
    /* DEFAULT: EPIC CINEMATIC THEME */
    --primary: #8a0303; /* Deep Blood Red */
    --primary-bright: #c20606; 
    --black: #050505;
    --charcoal: #121212;
    --card-bg: #1A1A1A;
    --text: #F0F0F0;
    --text-muted: #B0B0B0;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Fonts & Shapes */
    --font-head: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --radius-btn: 0px;
    --radius-card: 0px;
    --text-shadow-hero: 0 0 30px rgba(0,0,0,0.9);
}

body.theme-lofi {
    /* ALTERNATE: DARK LOFI THEME (Deep Purple & Blue) */
    --primary: #5A2E98; /* Deep Midnight Purple */
    --primary-bright: #0088D1; /* Dark Electric Blue */
    --black: #08070D; /* Deep Indigo Black */
    --charcoal: #14121E; 
    --card-bg: #1C1929; /* Dark Blue-Grey */
    --text: #ffffff;
    --text-muted: #a39eb5;
    --border-color: rgba(0, 136, 209, 0.2);
    
    /* Fonts & Shapes */
    --font-head: 'Outfit', sans-serif; /* Modern, Structured */
    --font-body: 'Montserrat', sans-serif;
    --radius-btn: 25px; /* Restored Rounded Look */
    --radius-card: 15px; /* Restored Rounded Cards */
    --text-shadow-hero: 0px 5px 20px rgba(90, 46, 152, 0.8);
}

/* =========================================
   GLOBAL STYLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--black); color: var(--text); 
    font-family: var(--font-body); line-height: 1.6; 
    transition: background-color 0.4s ease, color 0.4s ease; 
}
h1, h2, h3, .logo { 
    font-family: var(--font-head); text-transform: uppercase; 
    letter-spacing: 2px; color: white; transition: 0.4s ease;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* HEADER & NAV */
header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 5%; background: rgba(5, 5, 5, 0.95); 
    border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; 
    backdrop-filter: blur(10px); height: 80px; transition: 0.4s ease;
}
body.theme-lofi header { background: rgba(8, 7, 13, 0.95); }

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 35px; width: auto; opacity: 0.9; } 
.logo { font-size: 1.4rem; font-weight: 700; }
.logo span { color: var(--primary-bright); transition: 0.4s ease; }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { font-size: 0.9rem; letter-spacing: 1px; color: var(--text-muted); font-weight: 500; font-family: var(--font-head); }
.nav-links a:hover { color: var(--primary-bright); }

/* VIBE TOGGLE SWITCH (Physical UI) */
.vibe-toggle-wrapper { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.vibe-label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; color: #555; transition: 0.3s; letter-spacing: 1px; }
.vibe-label.active { color: var(--primary-bright); text-shadow: 0 0 8px rgba(255,255,255,0.2); }

.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { 
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #8a0303; /* Epic Red */
    transition: .4s; border-radius: 34px; 
    border: 1px solid rgba(255,255,255,0.2);
}
.slider:before { 
    position: absolute; content: ""; height: 14px; width: 14px; 
    left: 3px; bottom: 3px; background-color: white; 
    transition: .4s; border-radius: 50%; box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
input:checked + .slider { background-color: #0088D1; /* Lofi Dark Blue */ }
input:checked + .slider:before { transform: translateX(22px); }


/* HERO */
.hero { 
    position: relative; height: 85vh; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-align: center; overflow: hidden; 
}
.video-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: -2; opacity: 0.7; filter: contrast(1.2) saturate(0.8);
    transition: opacity 0.5s ease;
}
body.theme-lofi .video-bg { filter: contrast(1.1) saturate(1.0); opacity: 0.6; }

.overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(5,5,5,0.5) 0%, var(--black) 95%); 
    z-index: -1; transition: 0.4s ease;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: var(--text-shadow-hero); line-height: 1.1; }
.hero p { max-width: 700px; font-size: 1.3rem; color: #ddd; margin: 0 15px 40px; font-weight: 300; }

/* BUTTONS */
.btn { 
    display: inline-block; padding: 15px 35px; 
    background: transparent; border: 2px solid var(--text); 
    color: var(--text); font-family: var(--font-head); font-weight: 700; 
    cursor: pointer; transition: 0.3s; letter-spacing: 2px; 
    border-radius: var(--radius-btn);
}
.btn:hover { background: var(--text); color: var(--black); }

.btn-solid { background: var(--primary); border-color: var(--primary); color: white; }
.btn-solid:hover { background: var(--primary-bright); border-color: var(--primary-bright); color: white; box-shadow: 0 0 20px rgba(0,0,0,0.5); }

.btn-group { display: flex; gap: 20px; justify-content: center; }

/* SECTIONS */
.section { padding: 100px 5%; text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-bright); }
.section-subtitle { color: var(--text-muted); margin-bottom: 30px; font-size: 1rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* ALBUM FILTER NAV */
.album-filter-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }
.filter-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
    padding: 10px 25px; font-family: var(--font-head); font-size: 1rem; cursor: pointer;
    border-radius: var(--radius-btn); transition: 0.3s;
}
.filter-btn:hover { color: var(--text); border-color: var(--primary-bright); }
.filter-btn.active { background: var(--primary); border-color: var(--primary-bright); color: white; }

/* ALBUMS GRID */
.album-grid { 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; max-width: 1400px; margin: 0 auto; 
}
.album-card { 
    background: var(--charcoal); padding: 25px; border: 1px solid var(--border-color); 
    border-radius: var(--radius-card); transition: 0.4s ease; text-align: left; 
    width: 320px; display: flex; flex-direction: column;
}
.album-card:hover { transform: translateY(-5px); border-color: var(--primary-bright); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.cover-art { width: 100%; aspect-ratio: 1/1; background: #222; margin-bottom: 20px; object-fit: cover; border-radius: calc(var(--radius-card) / 2); border: 1px solid rgba(255,255,255,0.05); }
.album-card h3 { font-size: 1.2rem; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; text-align: center; }

.album-links { display: flex; gap: 15px; font-size: 1.2rem; justify-content: center; margin-bottom: 20px; }
.album-links i { color: var(--text-muted); transition: 0.3s; }
.album-links i:hover { color: var(--primary-bright); cursor: pointer; transform: scale(1.1); }

/* LICENSING */
/* Fixed: Thin border all around */
.license-disclaimer { 
    margin-bottom: 50px; font-size: 0.9rem; color: var(--text-muted); 
    border: 1px solid var(--border-color); display: inline-block; padding: 15px 30px; 
    background: rgba(0, 0, 0, 0.3); border-radius: var(--radius-btn);
}

.license-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1400px; margin: 0 auto; }

.license-card { 
    background: var(--card-bg); border: 1px solid var(--border-color); 
    border-radius: var(--radius-card); padding: 30px; text-align: left; 
    position: relative; display: flex; flex-direction: column; transition: 0.4s ease;
}
.license-card.featured { border: 2px solid var(--primary-bright); }

body:not(.theme-lofi) .license-card.featured { background: linear-gradient(180deg, #1f0505 0%, var(--card-bg) 100%); }
body.theme-lofi .license-card.featured { background: linear-gradient(180deg, #0e122b 0%, var(--card-bg) 100%); }

.license-card h4 { font-size: 1.3rem; margin-bottom: 10px; color: white; }
.price { font-size: 2rem; font-weight: 700; color: var(--primary-bright); margin-bottom: 20px; font-family: var(--font-body); transition: 0.4s ease; }
.price span { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }

.features-list { list-style: none; margin-bottom: 30px; color: #ccc; flex-grow: 1; }
.features-list li { margin-bottom: 10px; display: flex; align-items: start; gap: 8px; font-size: 0.85rem; }
.features-list li::before { content: "▸"; color: var(--primary-bright); transition: 0.4s; }

/* CONTACT */
.contact-container { max-width: 700px; margin: 0 auto; background: var(--card-bg); padding: 50px; border: 1px solid var(--border-color); border-radius: var(--radius-card); }
input, textarea { 
    width: 100%; padding: 18px; background: rgba(0,0,0,0.5); 
    border: 1px solid var(--border-color); color: white; margin-bottom: 20px; 
    font-family: var(--font-body); font-size: 1rem; border-radius: calc(var(--radius-btn) / 2);
}
input:focus, textarea:focus { border-color: var(--primary-bright); outline: none; }
button[type="submit"] { width: 100%; font-size: 1.1rem; }

/* FOOTER */
footer { background: var(--black); padding: 60px 5%; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; transition: 0.4s; }
.footer-logo { font-family: var(--font-head); font-size: 1.5rem; color: white; margin-bottom: 20px; display: block; letter-spacing: 3px;}
.footer-email-form { max-width: 500px; margin: 20px auto 40px; }
.footer-email-form p { margin-bottom: 15px; font-size: 0.9rem; color: var(--text-muted); }
.email-row { display: flex; gap: 10px; }
.email-row input { margin-bottom: 0; }
.email-row button { width: auto; padding: 0 30px; margin-bottom: 0; }
.footer-links button { background: none; border: none; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; margin-top: 10px; }
.footer-links button:hover { color: var(--primary-bright); }

/* MODALS */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(8px); }
.modal-content { background-color: var(--card-bg); color: var(--text); margin: 5% auto; padding: 40px; border: 1px solid var(--primary-bright); width: 90%; max-width: 700px; border-radius: var(--radius-card); position: relative; max-height: 80vh; overflow-y: auto; text-align: left; }
.close { color: var(--text-muted); float: right; font-size: 28px; cursor: pointer; }
.close:hover { color: var(--primary-bright); }
.modal h1, .modal h2, .modal h3 { color: var(--primary-bright); margin-bottom: 15px; }

/* MOBILE */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .btn-group { flex-direction: column; }
    header { height: auto; flex-direction: column; gap: 20px; padding: 20px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .email-row { flex-direction: column; }
    .email-row button { width: 100%; }
}