/* DESIGN REFRESH - STAGING ONLY */

/* 1. Global Utilities */
:root {
    --primary-neon: #00f5ff;
    --accent-fire: #ff4d00;
    --secondary-neon: #7b42ff;
    --bg-dark: #0a0a0f;
    --card-bg: rgba(5, 5, 8, 0.95);
    --border-light: rgba(255, 255, 255, 0.08);
}

/* --- Modular Layout Components --- */
/* --- Modular Layout Components --- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px;
    gap: 40px;
    perspective: 1000px;
}

/* Floating Website Grid (Yellow in markup) */
.website-header-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    width: 800px;
    max-width: 95vw;
    animation: fadeInDown 0.8s ease-out;
}

/* STABLE DECK (Spotify + Profile) */
.deck-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    animation: fadeInUp 0.8s ease-out;
}

/* Spotify Sidecar (Green in markup) */
.spotify-sidecar {
    width: 320px;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateZ(0);
    will-change: transform;
}

.spotify-sidecar:hover {
    transform: translateY(-5px) translateZ(0);
}

/* Profile Card Refinement (Red in markup) */
.esco-profile-card {
    width: 450px !important;
    padding: 0 !important;
    /* REMOVED PADDING FOR FULL-WIDTH HEADER */
    border-radius: 32px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    /* REMOVED DIRECT GAP TO MANAGE PADDINGS INDIVIDUALLY */
    backdrop-filter: blur(18px);
    transform: translateZ(0);
    backface-visibility: hidden;
    overflow: hidden !important;
}

/* Avatar Header Polishing */
.avatar-container {
    width: 100%;
    height: 300px;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    background: #000;
}

.esco-profile-card:hover .avatar-container {
    border-bottom-color: var(--accent-color);
}

.esco-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esco-name {
    font-size: 2.8rem;
    font-weight: 950;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.esco-title {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.9;
}

/* Social Links Styling */
.esco-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.identity-section,
.bio-section,
.esco-socials,
.utility-row,
.dashboard-actions {
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
}

.identity-section {
    margin-top: 10px;
}

.bio-section {
    margin-bottom: 25px;
    margin-top: 20px;
}

.bio-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.utility-row {
    margin-bottom: 40px;
}

.dashboard-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.utility-row {
    width: 100%;
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.status-btn {
    flex: 1;
    padding: 12px;
    font-size: 0.75rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #00ff88;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.status-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
}

.tech-hint {
    flex: 1;
    padding: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.tech-hint:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* Website Grid & Cards */
.website-header-grid .site-card {
    padding: 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s, border-color 0.3s;
    text-align: center;
    backdrop-filter: blur(8px);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.website-header-grid .site-card h4 {
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.website-header-grid .site-card p {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin: 5px 0 0;
    opacity: 0.8;
}

.website-header-grid .site-card:hover {
    background: hsla(var(--h-primary), 100%, 50%, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Responsiveness */
@media (max-width: 1100px) {
    .deck-layout {
        flex-direction: column;
        align-items: center;
    }

    .spotify-sidecar {
        width: 450px;
        max-width: 95vw;
        height: 152px;
    }
}

@media (max-width: 768px) {
    .website-header-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 450px;
    }

    .esco-profile-card {
        padding: 20px !important;
    }

    .esco-name {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .website-header-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .spotify-sidecar {
        width: 100%;
    }
}

/* 3. Product Reveal Cards (Jon Kantner KQPdXK inspired) */
#listView.gallery {
    display: none;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    background: transparent !important;
    padding: 60px 20px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.category-tab {
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.category-tab.active {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    border-color: var(--primary-neon);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    height: 500px;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    border-color: var(--primary-neon);
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .product-card-image {
    transform: scale(1.15);
    filter: brightness(0.3) blur(2px);
}

.product-card-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 45px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .product-card-info {
    opacity: 1;
    transform: translateY(0);
}

.product-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-neon);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.product-btn {
    padding: 16px 32px;
    background: var(--primary-neon);
    color: #000;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* 4. Scrollbar Hidden (Handled in index.html) */