﻿/* veks-core/assets/css/innovative-furniture.css */
.veks-innovative {
    background-color: #151515;
    color: #fff;
    padding: 120px 0;
    position: relative;
    width: 100%;
}

.veks-innovative__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Content Area */
.veks-innovative__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.veks-innovative__eyebrow {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}

.veks-innovative__title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    font-weight: 400;
    color: #fff;
}

.veks-innovative__description {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    max-width: 500px;
}

/* Visual / Image Area */
.veks-innovative__visual {
    position: relative;
    border-radius: 4px;
    width: 100%;
}

.veks-innovative__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
    border-radius: 4px;
}

.veks-innovative__image--empty {
    background: #222;
}

/* Hotspots */
.veks-innovative__hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.veks-innovative__hotspot-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 10;
}

.veks-innovative__hotspot-wrapper.is-active {
    z-index: 30;
}

.veks-innovative__hotspot-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background: #ff5722;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 0 15px;
    
    /* Initial state for Entrance Animation */
    opacity: 0;
    transform: scale(0.65);
}

/* Intersection Observer Active State */
.veks-innovative__hotspots-container.is-visible .veks-innovative__hotspot-btn {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hs-delay, 0) * 120ms), 
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hs-delay, 0) * 120ms),
                box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.veks-innovative__hotspot-icon-plus {
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}

/* Animations (No media query restriction so they always play) */
    
/* Idle Button Scale (Starts after entrance) */
.veks-innovative__hotspots-container.is-visible.is-idle .veks-innovative__hotspot-wrapper:not(.is-active) .veks-innovative__hotspot-btn {
    animation: veksIdlePulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: calc(var(--hs-delay, 0) * -500ms);
}

/* Fire Ring Pulse (Starts immediately on visible) */
.veks-innovative__hotspot-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid #ff5722;
    opacity: 0;
    pointer-events: none;
}

.veks-innovative__hotspots-container.is-visible .veks-innovative__hotspot-wrapper:not(.is-active) .veks-innovative__hotspot-btn::before {
    animation: veksContinuousPulse 2s infinite ease-out;
    animation-delay: calc(var(--hs-delay, 0) * -500ms);
}

@keyframes veksIdlePulse {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    50% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(255,87,34,0.15); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
}

@keyframes veksContinuousPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px rgba(255,87,34,0.8); }
    100% { transform: scale(2.2); opacity: 0; border-width: 0px; box-shadow: 0 0 0 rgba(255,87,34,0); }
}

/* Hover */
.veks-innovative__hotspot-wrapper:not(.is-active) .veks-innovative__hotspot-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255, 87, 34, 0.12), 0 4px 10px rgba(0,0,0,0.3);
    animation: none; /* Pause idle animation on hover */
}

.veks-innovative__hotspot-wrapper:not(.is-active) .veks-innovative__hotspot-btn:hover::before {
    animation: none;
    opacity: 0;
}

.veks-innovative__hotspot-wrapper:not(.is-active) .veks-innovative__hotspot-btn:hover .veks-innovative__hotspot-icon-plus {
    transform: scale(1.1);
}

/* Ripple Effect */
.veks-innovative__hotspot-btn::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    border: 2px solid #ff5722;
    opacity: 0;
    pointer-events: none;
}

.veks-innovative__hotspot-wrapper.is-rippling .veks-innovative__hotspot-btn::after {
    animation: veksRipple 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes veksRipple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Focus Visible */
.veks-innovative__hotspot-btn:focus-visible {
    outline: 2px solid #ff5722;
    outline-offset: 4px;
}

/* Active State */
.veks-innovative__hotspot-wrapper.is-active .veks-innovative__hotspot-btn {
    background: #fff;
    color: #111;
    border-color: #ff5722;
    transform: scale(1.05); /* Slight enlargement when active */
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.2);
}

.veks-innovative__hotspot-wrapper.is-active .veks-innovative__hotspot-icon-plus {
    transform: rotate(45deg);
}

/* Card */
.veks-innovative__card {
    position: absolute;
    width: 280px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 6px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 20;
    pointer-events: auto;
    
    /* Default position (handled dynamically by JS mostly) */
    top: 50%;
    left: 100%;
    transform: translate(35px, -50%) scale(0.95);
}

.veks-innovative__hotspot-wrapper.is-active .veks-innovative__card {
    opacity: 1;
    visibility: visible;
    transform: translate(35px, -50%) scale(1);
}

/* Smart Positioning Modifiers (applied by JS) */
.veks-innovative__hotspot-wrapper.pos-left .veks-innovative__card {
    left: auto;
    right: 100%;
    transform: translate(-35px, -50%) scale(0.95);
}
.veks-innovative__hotspot-wrapper.pos-left.is-active .veks-innovative__card {
    transform: translate(-35px, -50%) scale(1);
}

.veks-innovative__hotspot-wrapper.pos-top .veks-innovative__card {
    top: auto;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -35px) scale(0.95);
}
.veks-innovative__hotspot-wrapper.pos-top.is-active .veks-innovative__card {
    transform: translate(-50%, -35px) scale(1);
}

.veks-innovative__hotspot-wrapper.pos-bottom .veks-innovative__card {
    top: 100%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, 35px) scale(0.95);
}
.veks-innovative__hotspot-wrapper.pos-bottom.is-active .veks-innovative__card {
    transform: translate(-50%, 35px) scale(1);
}


.veks-innovative__card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    display: none; /* Only show on mobile */
}
.veks-innovative__card-close:hover {
    color: #fff;
}

.veks-innovative__card-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ff5722;
}

.veks-innovative__card-description {
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
}

/* Breakpoints */
@media (min-width: 992px) {
    .veks-innovative__inner {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }
    .veks-innovative__title {
        font-size: 48px;
    }
    .veks-innovative__image {
        aspect-ratio: 16/7;
    }
}

/* Mobile Bottom Sheet Override */
@media (max-width: 767px) {
    .veks-innovative__card {
        position: fixed;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%) !important;
        padding: 30px 20px;
        background: #1e1e1e;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 9999;
    }

    .veks-innovative__hotspot-wrapper.is-active .veks-innovative__card {
        transform: translateY(0) !important;
    }

    .veks-innovative__card-close {
        display: block;
    }

    /* Dim background on mobile when active */
    body.veks-innovative-sheet-open::after {
        content: '';
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s;
    }
}

