/* --- GLOBAL VARIABLES --- */
:root {
    --bg-color: #030303;
    --text-color: #e0e0e0;
    --accent-color: #8a2be2;
    --accent-rgb: 138, 43, 226;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --grain-opacity: 0.05;
}

/* Base Reset & Vibe */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    text-transform: lowercase;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, font-family 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

/* --- Floating Animations --- */
@keyframes float-heavy {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-light {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float-tilt {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1.5deg); }
}

.float-1 { animation: float-heavy 6s ease-in-out infinite; display: inline-block; }
.float-2 { animation: float-light 4s ease-in-out infinite; display: inline-block; }
.float-3 { animation: float-tilt 5s ease-in-out infinite; display: inline-block; }

/* --- Custom Cursor Styles --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    transition: background-color 0.3s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out;
}

/* --- Ambient Background Canvas --- */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.1) 0%, rgba(10, 20, 60, 0.05) 30%, rgba(0,0,0, 0) 70%);
    z-index: -2;
    pointer-events: none;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-48%, -52%) scale(1.1); }
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    transition: opacity 0.3s ease;
}

/* Navigation */
nav.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem 2rem;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 100%);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav.main-nav a {
    color: var(--text-color);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

nav.main-nav a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- GOOGLE AUTH STYLES --- */
.auth-container {
    position: absolute;
    right: 2rem;
    display: flex;
    align-items: center;
}

#user-profile {
    display: none;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

#user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
}

#user-name {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}

#sign-out-btn {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-left: 10px;
}

/* Section Layout */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 600px;
}

/* Typography & Breathing Glow */
@keyframes breathingGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1), 0 0 20px rgba(var(--accent-rgb), 0.05); }
    50% { text-shadow: 0 0 25px rgba(var(--accent-rgb), 0.4), 0 0 50px rgba(var(--accent-rgb), 0.2); }
}

h1.hero {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    animation: float-heavy 7s ease-in-out infinite, breathingGlow 5s ease-in-out infinite;
    display: inline-block;
}

.coordinates {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    font-family: monospace;
}

.socials a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    color: var(--text-color);
    opacity: 0.6;
    text-decoration: none;
    font-size: 0.8rem;
}

.socials a:hover {
    opacity: 1;
    transform: scale(1.15) translateY(-5px) rotate(-3deg);
}

/* --- DISCOGRAPHY / ALBUM STYLES --- */
.spotify-container {
    width: 100%;
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.discography {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: left;
}

.album-container {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.album-container:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
}

.album-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.album-header:hover {
    background: rgba(var(--accent-rgb), 0.05);
}

.album-title-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.album-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.album-year {
    font-size: 0.75rem;
    color: #777;
    font-family: monospace;
}

.album-toggle {
    font-size: 1.2rem;
    color: #777;
    transition: transform 0.3s ease;
}

.album-tracks {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    opacity: 0;
}

.album-tracks.open {
    max-height: 1500px;
    opacity: 1;
}

.tracks-inner {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.track-row {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: transform 0.3s ease, padding-left 0.3s ease;
}

.track-row:hover {
    transform: translateX(8px);
    padding-left: 10px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
}

.track-num {
    width: 30px;
    font-size: 0.85rem;
    color: #666;
    font-family: monospace;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.track-name {
    font-size: 1rem;
    color: #ddd;
    font-weight: 500;
}

.track-meta-row {
    display: flex;
    align-items: center;
}

.explicit-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border: 1px solid #777;
    font-size: 0.5rem;
    color: #777;
    border-radius: 2px;
    margin-right: 6px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

.track-artist {
    font-size: 0.7rem;
    color: #777;
}

/* --- CATALOG & MERCH GRID --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
    text-align: left;
}

.product-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image-box {
    width: 100%;
    aspect-ratio: 1/1;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.product-card:hover .product-image-box {
    border-color: rgba(var(--accent-rgb, 138,43,226), 0.5);
    box-shadow: 0 20px 40px rgba(var(--accent-rgb, 138,43,226), 0.15);
}

.product-info {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    font-size: 1rem;
    color: var(--text-color, #e0e0e0);
    font-weight: 500;
}

.product-price {
    font-family: monospace;
    color: var(--accent-color, #8a2be2);
    font-size: 0.9rem;
}

.sold-out-tag {
    font-size: 0.75rem;
    color: #777;
    text-decoration: line-through;
    margin-left: 10px;
}

/* --- FULL SCREEN PRODUCT PAGE MODAL --- */
.product-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color, #030303);
    z-index: 15000;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    color: var(--text-color, #e0e0e0);
    font-family: var(--font-family, sans-serif);
}

.product-page-overlay.active {
    transform: translateX(0);
}

.product-page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3rem;
    opacity: 0.6;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    width: fit-content;
    text-transform: lowercase;
    cursor: pointer;
}

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

.product-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 800px) {
    .product-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .auth-container {
        position: relative;
        right: 0;
        justify-content: center;
        margin-top: 1rem;
    }
    nav.main-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

.pp-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #444;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.pp-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pp-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.pp-price {
    font-size: 1.5rem;
    font-family: monospace;
    color: var(--accent-color, #8a2be2);
    margin-bottom: 2.5rem;
}

.pp-desc {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* --- SIZES STYLING --- */
.pp-sizes-container {
    display: none; 
    margin-bottom: 2rem;
}

.pp-sizes-label {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-btn {
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--text-color);
    padding: 8px 16px;
    font-family: monospace;
    transition: all 0.3s ease;
}

.size-btn:hover, .size-btn.active {
    border-color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
}

.pp-buy-btn {
    background: var(--text-color, #e0e0e0);
    color: var(--bg-color, #030303);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family, sans-serif);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-bottom: 2rem;
    cursor: pointer;
}

.pp-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(var(--accent-rgb, 138,43,226), 0.2);
}

.pp-buy-btn.disabled {
    background: #222;
    color: #555;
    text-decoration: line-through;
    pointer-events: none;
}

.pp-extra-info {
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    line-height: 1.6;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

footer {
    padding: 4rem;
    font-size: 0.7rem;
    opacity: 0.5;
    letter-spacing: 0.3em;
    text-align: center;
    width: 100%;
    animation: float-light 6s infinite;
    display: inline-block;
}

/* --- DEV PANEL & EDITOR STYLES --- */
.dev-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: monospace;
    text-transform: uppercase;
}

.dev-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dev-modal {
    background: #111;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(var(--accent-rgb), 0.2);
    text-align: center;
    min-width: 300px;
}

.dev-modal h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
    font-size: 1rem;
}

.dev-input {
    width: 100%;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    font-family: monospace;
    text-align: center;
    outline: none;
    border-radius: 4px;
    transition: border-color 0.3s;
    margin-bottom: 10px;
}

.dev-input:focus { border-color: var(--accent-color); }
.dev-error { color: #ff3333; font-size: 0.75rem; display: none; margin-top: 10px; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.shake { animation: shake 0.4s; border-color: #ff3333 !important; }

.dev-panel-ui {
    width: 95%;
    max-width: 900px;
    height: 80vh;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.15);
    overflow: hidden;
}

.dev-header {
    background: #151515;
    padding: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-color);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.dev-editor-content { overflow-y: auto; padding: 20px; }
.dev-section-title { color: #fff; margin-bottom: 15px; font-size: 0.9rem; border-bottom: 1px solid #333; padding-bottom: 5px; margin-top: 10px; }
.dev-editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; color: #aaa; font-size: 0.75rem; text-align: left; margin-bottom: 20px; }
.control-group { background: #111; padding: 15px; border: 1px solid #222; border-radius: 6px; }
.control-group label { display: block; margin-bottom: 10px; color: var(--accent-color); }
.control-group input[type="color"], .control-group input[type="range"], .control-group select { width: 100%; background: none; border: none; cursor: pointer; }
.control-group select { background: #000; color: #fff; border: 1px solid #333; padding: 8px; font-family: monospace; }
.close-dev { background: none; border: none; color: #fff; cursor: pointer; font-family: monospace; }
.close-dev:hover { color: #ff3333; }
