/**
 * Modulul Scene Interactive - AradPrint
 * Stiluri pentru afisarea scenelor pe pagina de categorie
 */

.scene-interactive-wrapper {
    margin-bottom: 25px;
    width: 100%;
    position: relative;
    clear: both;
}

.scene-intro-title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    color: #222222;
    margin-top: 0;
    margin-bottom: 14px;
}

.scene-figure {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    border-radius: 6px;
    overflow: visible;
    background: #f8f9fa;
}

.scene-figure picture {
    display: block;
    width: 100%;
}

.scene-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Layer puncte */
.scene-hotspots-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scene-hotspot-item {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 10;
}

.scene-hotspot-item.is-active,
.scene-hotspot-item:hover {
    z-index: 50;
}

/* Pulsație discretă pentru puncte (identic cu previzualizarea din admin) */
@keyframes scenePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.75), 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(227, 30, 36, 0), 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0), 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Punct interactiv (butonul / linkul 1, 2, 3...) */
.scene-hotspot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e31e24 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid #ffffff !important;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, box-shadow 0.2s ease;
    animation: scenePulse 2s infinite !important;
}

.scene-hotspot-btn:hover,
.scene-hotspot-btn:focus,
.scene-hotspot-item.is-active .scene-hotspot-btn {
    transform: scale(1.18);
    background-color: #c0181d !important;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    outline: none;
}

/* Touch target garantat de minimum 44 x 44 px conform ghidurilor WCAG */
.scene-hotspot-btn::after {
    content: '';
    position: absolute;
    top: -7px;
    left: -7px;
    right: -7px;
    bottom: -7px;
    min-width: 44px;
    min-height: 44px;
    pointer-events: auto;
}

/* Respectare prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .scene-hotspot-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* Card Tooltip produs (identic cu previzualizarea din admin) */
.scene-hotspot-card {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    max-width: calc(100vw - 32px);
    background: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid #e0e0e0 !important;
    padding: 12px !important;
    z-index: 60 !important;
    pointer-events: auto;
    text-align: left !important;
}

/* Afisare card atat la hover pe desktop cat si cand e activ */
.scene-hotspot-item:hover .scene-hotspot-card,
.scene-hotspot-item.is-active .scene-hotspot-card {
    display: block !important;
}

/* Sageata indicator a cardului */
.scene-hotspot-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border-width: 7px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* Pozitionare sub punct daca este prea aproape de partea de sus a ecranului */
.scene-hotspot-card.placement-bottom {
    bottom: auto;
    top: calc(100% + 12px);
}

.scene-hotspot-card.placement-bottom::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #ffffff transparent;
}

/* Continut card */
.scene-card-body {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.scene-card-thumb-link {
    flex-shrink: 0 !important;
    display: block !important;
}

.scene-card-thumb {
    width: 55px !important;
    height: 55px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 4px !important;
    padding: 2px !important;
    display: block !important;
}

.scene-card-info {
    flex-grow: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
}

.scene-card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222222 !important;
    line-height: 1.35 !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.scene-card-title:hover {
    color: #e31e24 !important;
    text-decoration: none !important;
}

.scene-card-price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #e31e24 !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
}

.scene-price-prefix,
.scene-price-suffix {
    font-weight: normal !important;
    color: #777777 !important;
    font-size: 11px !important;
}

.scene-card-btn-wrapper {
    margin-top: 10px !important;
    text-align: right !important;
    border-top: 1px solid #f0f0f0 !important;
    padding-top: 8px !important;
}

.scene-card-btn {
    display: inline-block !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: #337ab7 !important;
    border: 1px solid #2e6da4 !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: background-color 0.15s ease;
}

.scene-card-btn:hover {
    background-color: #286090 !important;
    border-color: #204d74 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Lista numerotata de produse sub imagine (randata pe server pentru SEO si accesibilitate) */
.scene-products-list-wrapper {
    margin-top: 25px;
    border-top: 1px solid #e7eaec;
    padding-top: 18px;
}

.scene-products-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #444444;
    margin-bottom: 12px;
}

.scene-products-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.scene-products-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

.scene-products-list-link {
    font-weight: 600;
    color: #23527c;
    text-decoration: none;
}

.scene-products-list-link:hover {
    text-decoration: underline;
    color: #e31e24;
}

.scene-products-list-price {
    color: #666666;
    margin-left: 8px;
}

.scene-products-list-price del {
    color: #999999;
}
