/**
 * Artwork Enquiry Slide Panel Styles
 * Sits on top of Strip lightbox (z-index 100000+)
 * Matches Strip styling with transparent overlay
 */

/* Overlay - fully transparent so artwork shows through */
.enquiry-slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 100000; /* Above Strip's z-index */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.enquiry-slide-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Only the panel area captures clicks when active */
.enquiry-slide-overlay.active {
    pointer-events: none;
}

.enquiry-slide-overlay.active .enquiry-slide-panel {
    pointer-events: auto;
}

/* Slide Panel - comes from right with more transparency */
.enquiry-slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 90vw;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 100001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.enquiry-slide-overlay.active .enquiry-slide-panel {
    transform: translateX(0);
}

/* Close button - red X matching Strip style */
.enquiry-slide-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: transform 0.3s ease;
    font-size: 0;
    color: transparent;
}

/* Red X using CSS */
.enquiry-slide-close::before,
.enquiry-slide-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #e74c3c;
    transition: background-color 0.2s ease;
}

.enquiry-slide-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.enquiry-slide-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.enquiry-slide-close:hover {
    transform: rotate(90deg);
}

.enquiry-slide-close:hover::before,
.enquiry-slide-close:hover::after {
    background-color: #c0392b;
}

.enquiry-slide-close:focus {
    outline: none;
}

/* Content container */
.enquiry-slide-content {
    flex: 1;
    overflow: hidden;
}

/* Iframe fills the panel */
.enquiry-slide-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive - full width on mobile */
@media (max-width: 520px) {
    .enquiry-slide-panel {
        width: 100%;
        max-width: 100%;
    }
    
    .enquiry-slide-close {
        top: 8px;
        right: 8px;
    }
}

/* Hide Strip zoom controls when enquiry panel is open - mobile only */
@media (max-width: 768px) {
    body.enquiry-panel-open #strip-zoom-overlay,
    body.enquiry-panel-open .strip-zoom-controls {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -9999 !important;
    }
}
