/**
 * DOC IND - Modern UI System (Premium Industrial Aesthetic)
 * Focus: Light Theme, Glassmorphism, Subtle Animations.
 */

:root {
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary: #0f172a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-900: #0f172a;

    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal {
    animation: reveal 0.5s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* --- GLASSMORPHISM --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-pill-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.1);
    border-radius: 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.glass-card-static {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.light .glass-card-static {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

.glass-card-static:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

/* --- DARK MODE PREMIUM --- */
.dark-premium,
.dark {
    background-color: #020617;
    /* slate-950 */
    color: #f8fafc;
    /* slate-50 */
}

.light body {
    background-color: #f8fafc;
    color: #0f172a;
}

.dark-premium .glass-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

/* --- FOOTER UTILS --- */
.footer-divider {
    height: 1px;
    background: linear-gradient(to r, transparent, rgba(16, 185, 129, 0.3), transparent);
}

/* --- BENTO GRID UTILS --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.bento-item {
    border-radius: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}



/* --- TYPOGRAPHY & SCALING --- */
@media (min-width: 1024px) {
    html {
        font-size: 80%;
        /* Otimizado para 1366x768 */
    }
}

@media (min-width: 1900px) {
    html {
        font-size: 100%;
        /* Otimizado para 1920x1080 (Zoom 125%) */
    }
}

h1,
h2,
h3,
.heading-display {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

body {
    font-family: 'Space Grotesk', sans-serif;
}

/* --- BUTTONS --- */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(16, 185, 129, 0.4);
}

.btn-premium:active {
    transform: scale(0.98);
}

/* --- PATTERNS --- */
.bg-grid {
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

.bg-dot-white {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 24px 24px;
}

/* --- CART SIDEBAR --- */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
}

.cart-modal.active {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

/* --- BUTTONS & BUBBLES --- */
.cart-bubble {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: growIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes growIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* --- SEJA MEMBRO ENHANCED --- */
.btn-be-member {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-be-member::before {
    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.5s;
}

.btn-be-member:hover::before {
    left: 100%;
}

.btn-be-member:hover {
    background: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.5);
}

.btn-be-member.pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}