/* Lumi Home Center - Premium Dark Glassmorphism Theme */

:root {
    /* Glassmorphic Palette */
    --bg-color: #050811; /* Deep space black/slate canvas */
    --card-bg: rgba(11, 20, 38, 0.55); /* Dark frosted glass */
    --card-border: rgba(255, 255, 255, 0.08); /* Luminous thin glass edge */
    
    --text-primary: #f8fafc; /* Crisp white */
    --text-secondary: #cbd5e1; /* Soft silver gray */
    --text-muted: #64748b; /* Muted slate gray */
    
    /* Blue Details (For core layout headings & global elements) */
    --blue-accent: #3b82f6; /* Primary Royal Sapphire */
    --blue-light: rgba(59, 130, 246, 0.08); /* Soft Blue Tint */
    --blue-dark: #0f172a; /* Deep Navy */
    --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #06b6d4 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* Card Custom Unique Accents */
.card-teal {
    --card-accent: #2dd4bf;
    --card-accent-rgb: 45, 212, 191;
    --card-gradient: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
}

.card-indigo {
    --card-accent: #818cf8;
    --card-accent-rgb: 129, 140, 248;
    --card-gradient: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
}

.card-violet {
    --card-accent: #a78bfa;
    --card-accent-rgb: 167, 139, 250;
    --card-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.card-rose {
    --card-accent: #fb7185;
    --card-accent-rgb: 251, 113, 133;
    --card-gradient: linear-gradient(135deg, #db2777 0%, #fb7185 100%);
}

.card-amber {
    --card-accent: #fbbf24;
    --card-accent-rgb: 251, 191, 36;
    --card-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
}

.card-cyan {
    --card-accent: #22d3ee;
    --card-accent-rgb: 34, 211, 238;
    --card-gradient: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
}

/* Reset and Core Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Floating Glassmorphic Ambient Spheres (Blues, Cyans, and Lavenders) */
.glass-bg-sphere {
    display: block;
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.sphere-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 70%);
    top: -10%;
    left: -5%;
    animation: floatSphere1 22s infinite alternate ease-in-out;
}

.sphere-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0) 70%);
    bottom: -10%;
    right: -10%;
    animation: floatSphere2 25s infinite alternate ease-in-out;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0) 70%);
    top: 35%;
    left: 40%;
    animation: floatSphere3 18s infinite alternate ease-in-out;
}

.sphere-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
    bottom: 10%;
    left: 5%;
    animation: floatSphere4 20s infinite alternate ease-in-out;
}

@keyframes floatSphere1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.15); }
}

@keyframes floatSphere2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-100px, -60px) scale(0.9); }
}

@keyframes floatSphere3 {
    0% { transform: translate(0, 0) scale(0.95); }
    100% { transform: translate(60px, -70px) scale(1.12); }
}

@keyframes floatSphere4 {
    0% { transform: translate(0, 0) scale(1.05); }
    100% { transform: translate(-50px, 60px) scale(0.95); }
}

/* Container */
.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 90px 24px;
    position: relative;
    z-index: 1;
}

/* Header styling */
header {
    text-align: center;
    margin-bottom: 60px;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.logo-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 18px;
}

.subtitle {
    font-size: 1.08rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Controls bar */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 460px;
    min-width: 280px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
}

#searchBar {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(13, 22, 38, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    outline: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#searchBar:focus {
    border-color: var(--blue-accent);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    background: rgba(21, 32, 54, 0.7);
}

#searchBar:focus + .search-icon {
    color: var(--blue-accent);
}

#clearSearch {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

#clearSearch:hover {
    color: var(--text-primary);
}

.info-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: rgba(13, 22, 38, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.info-toggle-btn:hover {
    background: rgba(21, 32, 54, 0.7);
    border-color: var(--blue-accent);
    color: var(--blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.1);
}

.info-toggle-btn.active {
    background: var(--text-primary);
    color: #050811;
    border-color: var(--text-primary);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.08);
}

/* Accordion Details */
.info-accordion {
    max-height: 0;
    overflow: hidden;
    background: rgba(11, 20, 38, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    margin-bottom: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.info-accordion.open {
    max-height: 800px;
    margin-bottom: 50px;
    padding: 32px;
    opacity: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.info-col h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blue-dot {
    width: 6px;
    height: 6px;
    background-color: var(--blue-accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--blue-accent);
}

.info-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 32px;
    transition: opacity 0.3s ease;
}

/* Card Container */
.card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 24px;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: 
        0 8px 24px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--card-accent-rgb), 0.5);
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(var(--card-accent-rgb), 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* Card Background Image Layer */
.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.9; /* Slightly dim by default to feel integrated with the dark background */
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.card:hover .card-bg-image {
    transform: scale(1.05);
    opacity: 1.0;
}

/* Thin Top Accent Line (Disabled) */
.card-border-line {
    display: none;
}

/* Spotlight overlay inside card (Disabled) */
.card-glow {
    display: none;
}

/* Minimal overlay for the text */
.card-front-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 5;
}

.card-front-content h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500; /* Minimal normal text weight */
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.015em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Empty State search */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: 24px;
    max-width: 600px;
    margin: 40px auto 0 auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.empty-state svg {
    color: var(--blue-accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer styling */
footer {
    margin-top: 85px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.08), transparent);
    margin-bottom: 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-meta {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.76rem;
}

/* Soft Spotlight Glow following mouse in background */
.cursor-glow {
    position: fixed;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.02) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Responsive configurations */
@media (max-width: 900px) {
    header h1 {
        font-size: 2.3rem;
    }
    
    .container {
        padding: 50px 20px;
    }
    
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .info-toggle-btn {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.9rem;
    }
    
    .logo-area {
        margin-bottom: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
