/**
 * ============================================================================
 * BITH IMAGE HOTSPOTS WIDGET - CSS
 * ============================================================================
 *
 * 8 Premium Interactive Hotspot Skins
 *
 * Skins:
 * 1. Classic Pin & Tooltip
 * 2. Pulse Dot
 * 3. Glassmorphism Popover
 * 4. Numbered Steps Sequence
 * 5. Product Card Reveal
 * 6. Neumorphic Marker
 * 7. Icon Morph
 * 8. Focus Mode Overlay
 *
 * @package Bith_Core
 * @since 1.0.0
 */

/* ============================================================================
   BASE STYLES
   ============================================================================ */

.bith-image-hotspots {
    position: relative;
    display: block;
    width: 100%;
    border-radius: var(--bith-widget-radius-lg);
    overflow: hidden;
    box-shadow: var(--bith-widget-shadow-lg);
}

.bith-image-hotspots__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.bith-hotspot {
    position: absolute;
    z-index: 10;
    cursor: pointer;
}

/* ============================================================================
   SKIN 1: CLASSIC PIN & TOOLTIP
   ============================================================================ */

.bith-image-hotspots--skin-1 .bith-hotspot--classic-pin {
    transform: translate(-50%, -100%);
}

.bith-hotspot__pin-marker {
    width: 36px;
    height: 36px;
    color: var(--bith-widget-primary, #6366f1);
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.4));
    transition: transform var(--bith-widget-transition-normal), color var(--bith-widget-transition-normal);
    animation: bith-hotspot-pin-bounce 2s ease-in-out infinite;
}

.bith-hotspot__pin-marker svg {
    width: 100%;
    height: 100%;
}

.bith-hotspot--classic-pin:hover .bith-hotspot__pin-marker {
    transform: scale(1.2);
    color: var(--bith-widget-primary-hover, #4f46e5);
}

@keyframes bith-hotspot-pin-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Classic Tooltip */
.bith-hotspot__tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: var(--bith-widget-surface, #ffffff);
    border-radius: var(--bith-widget-radius-md);
    padding: 16px;
    box-shadow: var(--bith-widget-shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--bith-widget-transition-normal),
        transform var(--bith-widget-transition-normal),
        visibility var(--bith-widget-transition-normal);
    pointer-events: none;
}

.bith-hotspot--classic-pin:hover .bith-hotspot__tooltip,
.bith-hotspot--classic-pin.is-active .bith-hotspot__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bith-hotspot__tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--bith-widget-surface, #ffffff);
}

.bith-hotspot__title {
    margin: 0 0 6px 0;
    font-family: var(--bith-widget-font-heading);
    font-size: var(--bith-widget-text-base);
    font-weight: var(--bith-widget-font-bold);
    color: var(--bith-widget-text-heading, #0f172a);
    line-height: var(--bith-widget-leading-tight);
}

.bith-hotspot__description {
    margin: 0;
    font-size: var(--bith-widget-text-sm);
    color: var(--bith-widget-text-secondary, #64748b);
    line-height: var(--bith-widget-leading-normal);
}

/* ============================================================================
   SKIN 2: PULSE DOT
   ============================================================================ */

.bith-image-hotspots--skin-2 .bith-hotspot--pulse-dot {
    transform: translate(-50%, -50%);
}

.bith-hotspot__dot-core {
    width: 16px;
    height: 16px;
    background: var(--bith-widget-gradient-primary, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));
    border-radius: var(--bith-widget-radius-full);
    position: relative;
    z-index: 3;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.bith-hotspot__pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--bith-widget-primary, #6366f1);
    border-radius: var(--bith-widget-radius-full);
    animation: bith-hotspot-pulse-expand 2s ease-out infinite;
}

.bith-hotspot__pulse-ring--delay {
    animation-delay: 0.5s;
}

@keyframes bith-hotspot-pulse-expand {
    0% {
        width: 16px;
        height: 16px;
        opacity: 1;
    }

    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* Pill Tooltip */
.bith-hotspot__tooltip--pill {
    bottom: calc(100% + 20px);
    background: var(--bith-widget-text-heading, #0f172a);
    color: var(--bith-widget-surface, #ffffff);
    padding: 8px 16px;
    border-radius: var(--bith-widget-radius-full);
    white-space: nowrap;
    width: auto;
    transform: translateX(-50%) translateY(10px) scale(0.9);
}

.bith-hotspot__tooltip--pill::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bith-widget-text-heading, #0f172a);
}

.bith-hotspot__tooltip--pill .bith-hotspot__tooltip-arrow {
    display: none;
}

.bith-hotspot__tooltip-label {
    font-size: var(--bith-widget-text-sm);
    font-weight: var(--bith-widget-font-medium);
}

.bith-hotspot--pulse-dot:hover .bith-hotspot__tooltip--pill,
.bith-hotspot--pulse-dot.is-active .bith-hotspot__tooltip--pill {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* ============================================================================
   SKIN 3: GLASSMORPHISM POPOVER
   ============================================================================ */

.bith-image-hotspots--skin-3 .bith-hotspot--glass-marker {
    transform: translate(-50%, -50%);
}

.bith-hotspot__glass-dot {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--bith-widget-radius-full);
    border: 3px solid var(--bith-widget-primary, #6366f1);
    transition: transform var(--bith-widget-transition-normal),
        background var(--bith-widget-transition-normal),
        border-color var(--bith-widget-transition-normal);
    box-shadow: var(--bith-widget-shadow-md);
}

.bith-hotspot--glass-marker:hover .bith-hotspot__glass-dot {
    transform: scale(1.3);
    background: var(--bith-widget-primary, #6366f1);
    border-color: white;
}

/* Glassmorphism Popover */
.bith-hotspot__popover--glass {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 280px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--bith-widget-radius-lg);
    padding: 24px;
    box-shadow: var(--bith-widget-shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--bith-widget-transition-normal),
        transform var(--bith-widget-transition-normal),
        visibility var(--bith-widget-transition-normal);
    pointer-events: none;
}

.bith-hotspot--glass-marker:hover .bith-hotspot__popover--glass,
.bith-hotspot--glass-marker.is-active .bith-hotspot__popover--glass {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bith-hotspot__popover-icon {
    font-size: 1.5rem;
    color: var(--bith-widget-primary, #6366f1);
    margin-bottom: 12px;
    display: block;
}

/* ============================================================================
   SKIN 4: NUMBERED STEPS SEQUENCE
   ============================================================================ */

.bith-image-hotspots--skin-4 .bith-hotspot--numbered-step {
    transform: translate(-50%, -50%);
}

.bith-hotspot__step-number {
    width: 44px;
    height: 44px;
    background: var(--bith-widget-gradient-primary, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));
    border-radius: var(--bith-widget-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: var(--bith-widget-font-extrabold);
    color: white;
    box-shadow: var(--bith-widget-shadow-lg), 0 0 0 4px rgba(255, 255, 255, 0.9);
    transition: transform var(--bith-widget-transition-normal),
        box-shadow var(--bith-widget-transition-normal);
    position: relative;
    z-index: 2;
}

.bith-hotspot--numbered-step:hover .bith-hotspot__step-number {
    transform: scale(1.15);
    box-shadow: var(--bith-widget-glow-primary), 0 0 0 4px rgba(255, 255, 255, 1);
}

/* Step Tooltip */
.bith-hotspot__tooltip--step {
    bottom: calc(100% + 20px);
}

.bith-hotspot__tooltip--step::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--bith-widget-surface, #ffffff);
}

.bith-hotspot__tooltip--step .bith-hotspot__tooltip-arrow {
    display: none;
}

.bith-hotspot--numbered-step:hover .bith-hotspot__tooltip--step,
.bith-hotspot--numbered-step.is-active .bith-hotspot__tooltip--step {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   SKIN 5: PRODUCT CARD REVEAL
   ============================================================================ */

.bith-image-hotspots--skin-5 .bith-hotspot--product {
    transform: translate(-50%, -50%);
}

.bith-hotspot__marker--product {
    width: 44px;
    height: 44px;
    background: var(--bith-widget-surface, #ffffff);
    border-radius: var(--bith-widget-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bith-widget-shadow-lg);
    transition: transform var(--bith-widget-transition-normal),
        background var(--bith-widget-transition-normal),
        border-color var(--bith-widget-transition-normal);
    border: 2px solid transparent;
}

.bith-hotspot__marker--product i {
    font-size: 1rem;
    color: var(--bith-widget-primary, #6366f1);
    transition: transform var(--bith-widget-transition-normal),
        color var(--bith-widget-transition-normal);
}

.bith-hotspot--product:hover .bith-hotspot__marker--product,
.bith-hotspot--product.is-active .bith-hotspot__marker--product {
    background: var(--bith-widget-primary, #6366f1);
    border-color: white;
}

.bith-hotspot--product:hover .bith-hotspot__marker--product i,
.bith-hotspot--product.is-active .bith-hotspot__marker--product i {
    color: white;
    transform: rotate(45deg);
}

/* Product Card */
.bith-hotspot__product-card {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.95);
    width: 260px;
    background: var(--bith-widget-surface, #ffffff);
    border-radius: var(--bith-widget-radius-lg);
    overflow: hidden;
    box-shadow: var(--bith-widget-shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--bith-widget-ease-bounce);
    pointer-events: none;
}

.bith-hotspot--product.is-active .bith-hotspot__product-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.bith-hotspot__product-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.bith-hotspot__product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bith-hotspot__product-info {
    padding: 16px;
}

.bith-hotspot__product-category {
    font-size: var(--bith-widget-text-xs);
    font-weight: var(--bith-widget-font-semibold);
    color: var(--bith-widget-primary, #6366f1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bith-hotspot__product-info .bith-hotspot__title {
    margin: 6px 0 10px;
    font-size: var(--bith-widget-text-lg);
}

.bith-hotspot__product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.bith-hotspot__price-current {
    font-size: var(--bith-widget-text-xl);
    font-weight: var(--bith-widget-font-extrabold);
    color: var(--bith-widget-text-heading, #0f172a);
}

.bith-hotspot__price-original {
    font-size: var(--bith-widget-text-sm);
    color: var(--bith-widget-text-muted, #94a3b8);
    text-decoration: line-through;
}

.bith-hotspot__btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--bith-widget-gradient-primary, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));
    color: white;
    border: none;
    border-radius: var(--bith-widget-radius-md);
    font-size: var(--bith-widget-text-sm);
    font-weight: var(--bith-widget-font-semibold);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--bith-widget-transition-normal),
        box-shadow var(--bith-widget-transition-normal);
}

.bith-hotspot__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--bith-widget-glow-primary);
}

/* ============================================================================
   SKIN 6: NEUMORPHIC MARKER
   ============================================================================ */

.bith-image-hotspots--skin-6 .bith-hotspot--neumorphic {
    transform: translate(-50%, -50%);
}

.bith-hotspot__neu-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: var(--bith-widget-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.15),
        -8px -8px 16px rgba(255, 255, 255, 0.9),
        inset 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow var(--bith-widget-transition-normal);
}

.bith-hotspot--neumorphic:hover .bith-hotspot__neu-button {
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.15),
        -4px -4px 8px rgba(255, 255, 255, 0.9),
        inset 3px 3px 6px rgba(0, 0, 0, 0.1),
        inset -3px -3px 6px rgba(255, 255, 255, 0.7);
}

.bith-hotspot__neu-icon {
    width: 24px;
    height: 24px;
    background: var(--bith-widget-gradient-primary, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));
    border-radius: var(--bith-widget-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    transition: transform var(--bith-widget-transition-normal);
}

.bith-hotspot--neumorphic:hover .bith-hotspot__neu-icon {
    transform: scale(1.1);
}

/* Neumorphic Tooltip */
.bith-hotspot__tooltip--neu {
    bottom: calc(100% + 20px);
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.12),
        -10px -10px 20px rgba(255, 255, 255, 0.8);
    padding: 20px;
    width: 230px;
}

.bith-hotspot__tooltip--neu .bith-hotspot__tooltip-arrow {
    display: none;
}

.bith-hotspot--neumorphic:hover .bith-hotspot__tooltip--neu,
.bith-hotspot--neumorphic.is-active .bith-hotspot__tooltip--neu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   SKIN 7: ICON MORPH
   ============================================================================ */

.bith-image-hotspots--skin-7 .bith-hotspot--morph-marker {
    transform: translate(-50%, -50%);
}

.bith-hotspot__morph-icon {
    display: flex;
    align-items: center;
    background: var(--bith-widget-surface, #ffffff);
    border-radius: var(--bith-widget-radius-full);
    padding: 12px;
    box-shadow: var(--bith-widget-shadow-lg);
    transition: all 0.5s var(--bith-widget-ease-bounce);
    overflow: hidden;
    max-width: 48px;
}

.bith-hotspot__morph-icon i {
    font-size: 1rem;
    color: var(--bith-widget-primary, #6366f1);
    transition: transform var(--bith-widget-transition-normal),
        color var(--bith-widget-transition-normal);
    flex-shrink: 0;
}

.bith-hotspot__morph-text {
    font-size: var(--bith-widget-text-sm);
    color: var(--bith-widget-text-heading, #0f172a);
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    padding-left: 0;
    transition: all 0.5s var(--bith-widget-ease-bounce);
}

.bith-hotspot--morph-marker:hover .bith-hotspot__morph-icon {
    max-width: 320px;
    border-radius: var(--bith-widget-radius-lg);
    padding: 14px 18px;
}

.bith-hotspot--morph-marker:hover .bith-hotspot__morph-icon i {
    color: var(--bith-widget-secondary, #a855f7);
    transform: rotate(180deg);
}

.bith-hotspot--morph-marker:hover .bith-hotspot__morph-text {
    opacity: 1;
    max-width: 280px;
    padding-left: 12px;
    white-space: normal;
}

/* ============================================================================
   SKIN 8: FOCUS MODE OVERLAY
   ============================================================================ */

.bith-image-hotspots--skin-8 .bith-image-hotspots__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 5;
    pointer-events: none;
    transition: background var(--bith-widget-transition-slow);
}

.bith-image-hotspots--skin-8.is-focus-active .bith-image-hotspots__overlay {
    background: rgba(0, 0, 0, 0.7);
}

.bith-image-hotspots--skin-8 .bith-hotspot--focus {
    transform: translate(-50%, -50%);
    z-index: 10;
}

.bith-hotspot__focus-dot {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--bith-widget-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: background var(--bith-widget-transition-normal),
        border-color var(--bith-widget-transition-normal),
        transform var(--bith-widget-transition-normal);
}

.bith-hotspot--focus:hover .bith-hotspot__focus-dot,
.bith-hotspot--focus.is-active .bith-hotspot__focus-dot {
    background: var(--bith-widget-primary, #6366f1);
    border-color: white;
    transform: scale(1.1);
}

/* Focus Content Panel */
.bith-hotspot__focus-content {
    position: absolute;
    top: 50%;
    left: calc(100% + 24px);
    transform: translateY(-50%) translateX(20px);
    width: 280px;
    background: var(--bith-widget-surface, #ffffff);
    border-radius: var(--bith-widget-radius-lg);
    padding: 24px;
    box-shadow: var(--bith-widget-shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--bith-widget-ease-bounce);
    pointer-events: none;
}

.bith-hotspot--focus.is-active .bith-hotspot__focus-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.bith-hotspot__badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bith-widget-gradient-primary, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));
    color: white;
    font-size: var(--bith-widget-text-xs);
    font-weight: var(--bith-widget-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--bith-widget-radius-full);
    margin-bottom: 12px;
}

.bith-hotspot__focus-content .bith-hotspot__title {
    font-size: var(--bith-widget-text-xl);
    margin-bottom: 8px;
}

.bith-hotspot__focus-content .bith-hotspot__description {
    line-height: 1.6;
    margin-bottom: 16px;
}

.bith-hotspot__focus-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bith-widget-primary, #6366f1);
    font-size: var(--bith-widget-text-sm);
    font-weight: var(--bith-widget-font-semibold);
    text-decoration: none;
    transition: gap var(--bith-widget-transition-fast);
}

.bith-hotspot__focus-link:hover {
    gap: 12px;
}

.bith-hotspot__focus-link i {
    font-size: 0.75rem;
    transition: transform var(--bith-widget-transition-fast);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {

    .bith-hotspot__tooltip,
    .bith-hotspot__tooltip--step,
    .bith-hotspot__tooltip--neu {
        width: 180px;
        padding: 12px;
    }

    .bith-hotspot__popover--glass {
        width: 220px;
        padding: 16px;
    }

    .bith-hotspot__product-card {
        width: 220px;
    }

    .bith-hotspot--morph-marker:hover .bith-hotspot__morph-icon {
        max-width: 260px;
    }

    .bith-hotspot__focus-content {
        width: 220px;
        left: auto;
        right: calc(100% + 16px);
        transform: translateY(-50%) translateX(-20px);
    }

    .bith-hotspot--focus.is-active .bith-hotspot__focus-content {
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 480px) {
    .bith-hotspot--morph-marker:hover .bith-hotspot__morph-icon {
        max-width: 200px;
    }

    .bith-hotspot--morph-marker:hover .bith-hotspot__morph-text {
        max-width: 160px;
    }

    .bith-hotspot__focus-content {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        transform: translateY(100%);
    }

    .bith-hotspot--focus.is-active .bith-hotspot__focus-content {
        transform: translateY(0);
    }
}