/* static/theme.css — High-End Design System (Absolute Rounded v7.5) */

:root {
    /* BC Absolute Palette */
    --color-bc-yellow: #fee889;
    --color-bc-teal: #65958d;
    --color-bc-black: #444444;
    --color-bc-white: #fefdfe;

    /* Accent Colors */
    --color-accent-lavender: #c1abe5;
    --color-accent-peach: #f7d7a3;
    --color-accent-pink: #fadadd;
    --color-accent-grey: #bebebe;

    /* Semantic Tokens */
    --color-primary: var(--color-bc-yellow);
    --color-accent: var(--color-bc-teal);
    --color-bg: #f5f1eb;
    --color-surface: #fefdfe;

    /* Text System - Polished Typography */
    --color-text: #444444;
    --color-text-header: #121212;
    --color-text-muted: #777777;
    --color-text-light: #bebebe;

    /* Borders & Dividers */
    --color-border: rgba(0, 0, 0, 0.04);
    --color-border-dark: rgba(0, 0, 0, 0.08);

    /* Measurements - Softer & Rounder */
    --radius-xl: 42px;
    --radius-lg: 32px;
    --radius-md: 18px;
    --radius-sm: 10px;

    /* Shadows (Ultra Soft) */
    --shadow-lux: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px -12px rgba(0, 0, 0, 0.08);

    /* Glassmorphism & Blurs */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: 20px;

    /* Transitions & Ease */
    --ease-lux: cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Dynamic Bouncy Ease */
    --duration-fast: 0.2s;
    --duration-norm: 0.4s;
    --duration-slow: 0.6s;
}

/* Luxury Reset */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    letter-spacing: -0.015em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text-header);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

/* ── Glow Animations ── */
@keyframes glow-pink {
    0% {
        box-shadow: 0 0 10px rgba(250, 218, 221, 0.4);
    }

    50% {
        box-shadow: 0 0 35px rgba(250, 218, 221, 1), 0 0 50px rgba(250, 218, 221, 0.6);
    }

    100% {
        box-shadow: 0 0 10px rgba(250, 218, 221, 0.4);
    }
}

@keyframes glow-yellow {
    0% {
        box-shadow: 0 0 10px rgba(254, 232, 137, 0.4);
    }

    50% {
        box-shadow: 0 0 45px rgba(254, 232, 137, 1), 0 0 65px rgba(254, 232, 137, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(254, 232, 137, 0.4);
    }
}

@keyframes lux-shine {
    0% {
        left: -100%;
    }

    25% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Interactive Elements */
.bc-btn,
.tab-btn,
.menu-card,
.res-item,
.style-token,
.style-chip,
.size-btn,
.luxury-card,
.field-pro {
    transition: all var(--duration-fast) var(--ease-lux);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    user-select: none;
}

/* Pill Shapes for all buttons */
.bc-btn,
.tab-btn,
.res-item,
.style-token,
.style-chip,
.size-btn,
.field-pro,
.nav-pill {
    border-radius: 999px !important;
}

/* Shine Effect for Primary Buttons */
.bc-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 65px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    left: -100%;
    animation: lux-shine 5s infinite linear;
}

/* Active State Styles - Vibrant Gold */
.tab-btn.active {
    background: var(--color-bc-yellow) !important;
    color: var(--color-bc-black) !important;
    transform: scale(1.1);
    font-weight: 900;
    animation: glow-yellow 3s infinite ease-in-out;
    border-color: var(--color-bc-yellow) !important;
}

.bc-btn-primary {
    background: var(--color-primary);
    color: var(--color-bc-black);
    animation: glow-yellow 4s infinite ease-in-out;
}

/* Soft Rounded Cards & Boxes */
.luxury-card,
.menu-card,
.settings-box,
.sub-header {
    border-radius: var(--radius-xl) !important;
}

#gen-img-h {
    border-radius: var(--radius-xl);
}

/* Hover & Active Effects */
.bc-btn:active,
.tab-btn:active,
.menu-card:active,
.luxury-card:active,
.res-item:active {
    transform: scale(0.92) !important;
    filter: brightness(0.95);
}

.luxury-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.glass-nav {
    background: rgba(245, 241, 235, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--color-border);
}

/* Logo breathing */
.logo-giant {
    transition: transform 0.6s var(--ease-lux);
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.06));
}

.logo-giant:hover {
    transform: scale(1.1) rotate(1deg);
}

/* Chat bubble aesthetics */
.bub {
    border-radius: var(--radius-md) !important;
}

.bub-u {
    border-bottom-right-radius: 4px !important;
}


/* ── Toggle Switch ── */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--color-bc-yellow);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}


/* ── Sticker Boutique Aesthetics ── */
.sticker-wrapper {
    position: relative;
    padding: 15px;
    background: #fff;
    border-radius: 30px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s var(--ease-lux);
    animation: sticker-drop 0.6s var(--ease-lux) both;
}

.sticker-wrapper img {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

@keyframes sticker-drop {
    0% {
        transform: translateY(-50px) rotate(-10deg) scale(0.8);
        opacity: 0;
    }

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

/* ── New Design Components (Stitch Inspired) ── */

.lux-glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--duration-norm) var(--ease-lux);
}

.chat-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.chat-bubble-ai {
    background: var(--color-surface);
    color: var(--color-text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--color-border);
}

.chat-bubble-user {
    background: var(--color-bc-black);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.bottom-action-pill {
    background: var(--color-surface);
    border: 1px solid var(--color-border-dark);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    box-shadow: var(--shadow-lux);
    transition: border-color var(--duration-fast);
}

.bottom-action-pill:focus-within {
    border-color: var(--color-bc-yellow);
}

.floating-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bc-black);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all var(--duration-fast) var(--ease-lux);
}

.floating-send-btn:active {
    transform: scale(0.9) rotate(-15deg);
}

.nav-bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 15px 30px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--duration-fast);
}

.nav-item.active {
    color: var(--color-bc-black);
}

.nav-item span.icon {
    font-size: 24px;
    transition: transform var(--duration-fast) var(--ease-lux);
}

.nav-item.active span.icon {
    transform: translateY(-2px);
    color: var(--color-bc-yellow);
}