@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.glass-morphism, .glass-panel {
    background: rgba(14, 14, 14, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel-premium {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 
                0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(222, 142, 255, 0.2);
}

.glass-input {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--secondary);
    background: rgba(0, 0, 0, 0.3);
}

.synthetic-silk-gradient, .premium-gradient {
    background: linear-gradient(135deg, #de8eff 0%, #d779ff 100%);
}

.ambient-glow-primary, .text-glow-primary {
    box-shadow: 0 0 40px rgba(185, 10, 252, 0.05); text-shadow: 0 0 15px rgba(222, 142, 255, 0.4);
}

.holographic-glow {
    box-shadow: 0 0 40px -10px rgba(185, 10, 252, 0.15);
}

.holographic-chip {
    background: rgba(38, 38, 38, 0.4);
    border-top: 1px solid #00eefc;
    box-shadow: inset 0 0 10px rgba(0, 238, 252, 0.05);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.scanner-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #00eefc, transparent);
    position: absolute;
    top: 0;
    left: 0;
    animation: scan 4s linear infinite;
    box-shadow: 0 0 15px #00eefc;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes scanner {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Neural Scanline Wipe Transitions */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0e0e0e;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.page-transition-overlay.active-in {
    animation: transitionSlideIn 0.6s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

.page-transition-overlay.active-out {
    animation: transitionSlideOut 0.6s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

/* Glowing Scanline Edge */
.page-transition-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: #00eefc;
    box-shadow: 
        0 0 15px #00eefc,
        0 0 30px #00eefc,
        0 0 60px rgba(222, 142, 255, 0.5);
}

@keyframes transitionSlideIn {
    0% { left: -100%; }
    100% { left: 0; }
}

@keyframes transitionSlideOut {
    0% { left: 0; }
    100% { left: 100%; }
}

body {
    transition: opacity 0.5s ease;
}

body.page-ready {
    opacity: 1;
}

:root {
    --primary: #de8eff;
    --secondary: #00eefc;
    --background: #0e0e0e;
    --surface: #0e0e0e;
    --surface-container: #1a1a1a;
}

/* Animations added */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav Hide */
#mobile-menu {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/*                                AI ASSISTANT                                */
/* -------------------------------------------------------------------------- */

.ai-assistant-chip {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Premium Product Catalog --- */

.product-card-premium {
    position: relative;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background: #131313;
}

.product-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 14, 14, 0.8), transparent 30%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.product-card-premium:hover .product-image-container::after {
    opacity: 0.4;
}

.scanline-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 238, 252, 0.05) 50%, transparent);
    background-size: 100% 4px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-premium:hover .scanline-effect {
    opacity: 1;
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

.product-reveal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.4);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.product-card-premium:hover .product-reveal-overlay {
    opacity: 1;
    backdrop-filter: blur(4px);
}

.v-btn-catalog {
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 14, 14, 0.6);
    color: white;
}

.v-btn-catalog:hover {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(222, 142, 255, 0.4);
}

.product-meta-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 15;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-left: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-price-reveal {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--primary);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-premium:hover .product-price-reveal {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.ai-assistant-chip:hover {
    transform: scale(1.05) translateY(-5px);
}

.ai-chip-inner {
    background: rgba(14, 14, 14, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(222, 142, 255, 0.2);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ai-status-dot {
    width: 10px;
    height: 10px;
    background: #00eefc;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #00eefc;
}

.ai-status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid #00eefc;
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.ai-assistant-panel {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 400px;
    height: 550px;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 101;
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 
                inset 0 0 20px rgba(0, 238, 252, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ai-assistant-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-panel-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.ai-panel-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.ai-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-panel-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

.ai-panel-body {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    scroll-behavior: smooth;
}

.ai-msg {
    max-width: 85%;
    padding: 1rem 1.25rem;
    font-size: 0.825rem;
    line-height: 1.6;
    position: relative;
    animation: msgIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-msg-received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    color: #adaaaa;
    border-radius: 4px 1.25rem 1.25rem 1.25rem;
    border-left: 1px solid rgba(0, 238, 252, 0.3);
}

.ai-msg-sent {
    align-self: flex-end;
    background: rgba(222, 142, 255, 0.08);
    color: #ffffff;
    border-radius: 1.25rem 1.25rem 4px 1.25rem;
    border-right: 1px solid rgba(222, 142, 255, 0.3);
    text-align: right;
}

.ai-panel-footer {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-input-container {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.ai-input-container:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(222, 142, 255, 0.1);
}

.ai-input-field {
    flex-grow: 1;
    background: transparent;
    border: none !important;
    padding: 0.875rem 0;
    color: #ffffff;
    font-size: 0.825rem;
    outline: none !important;
    font-family: 'Manrope', sans-serif;
}

.ai-send-btn {
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.ai-send-btn:hover {
    color: #ffffff;
    transform: translateX(2px) scale(1.1);
}

/* Hide scrollbar for AI panel body */
.ai-panel-body::-webkit-scrollbar {
    width: 2px;
}
.ai-panel-body::-webkit-scrollbar-thumb {
    background: rgba(0, 238, 252, 0.2);
}
