/**
 * Standard Shop Modal Enhancements
 * Additional styles for modal functionality
 */

/* Fullscreen Gallery */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-maximum, 999);
    display: none;
    align-items: center;
    justify-content: center;
}

.fullscreen-gallery.active {
    display: flex;
}

.fullscreen-gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fullscreen-gallery-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.fullscreen-gallery-image.zoomed {
    cursor: zoom-out;
    max-width: none;
    max-height: none;
    transform: scale(2);
}

.fullscreen-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    z-index: var(--z-product-card);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.fullscreen-gallery-close:hover {
    transform: scale(1.1);
}

.fullscreen-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 28px; /* Mobile-first size */
    width: 50px; /* Mobile-first size */
    height: 50px; /* Mobile-first size */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: var(--z-product-card);
}

.fullscreen-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-gallery-nav.prev {
    left: 30px;
}

.fullscreen-gallery-nav.next {
    right: 30px;
}

/* Hide navigation when image is zoomed */
.fullscreen-gallery-image.zoomed ~ .fullscreen-gallery-nav {
    opacity: 0;
    pointer-events: none;
}

/* Prevent body scroll when fullscreen gallery is open */
body.fullscreen-gallery-open {
    overflow: hidden;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    z-index: var(--z-notification, 500);
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Gallery Cursor */
#modal-main-image {
    cursor: zoom-in;
}

/* Share Dropdown Improvements */
.share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: var(--z-product-card);
    min-width: 180px;
    display: none;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-option:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Description Toggle Animation */
.full-description-content,
.product-modal-description {
    overflow: hidden;
}

.description-toggle,
.full-description-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.description-toggle:hover,
.full-description-toggle:hover {
    color: #3b82f6;
}

/* Mobile-first base styles */
.fullscreen-gallery-nav.prev {
    left: 15px;
}

.fullscreen-gallery-nav.next {
    right: 15px;
}

.fullscreen-gallery-close {
    font-size: 36px;
    width: 50px;
    height: 50px;
}

/* Lightbox arrows on mobile */
.standard-shop-page .lightbox-arrow {
    width: 50px;
    height: 50px;
}

.standard-shop-page .lightbox-arrow.prev {
    left: 15px;
}

.standard-shop-page .lightbox-arrow.next {
    right: 15px;
}

.standard-shop-page .lightbox-arrow svg {
    width: 20px;
    height: 20px;
}

/* Tablet and Desktop styles - 800px and up */
@media (min-width: 800px) {
    .fullscreen-gallery-nav {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .fullscreen-gallery-nav.prev {
        left: 30px;
    }
    
    .fullscreen-gallery-nav.next {
        right: 30px;
    }
    
    .fullscreen-gallery-close {
        font-size: 40px;
        width: 60px;
        height: 60px;
    }
    
    .standard-shop-page .lightbox-arrow {
        width: 60px;
        height: 60px;
    }
    
    .standard-shop-page .lightbox-arrow.prev {
        left: 30px;
    }
    
    .standard-shop-page .lightbox-arrow.next {
        right: 30px;
    }
    
    .standard-shop-page .lightbox-arrow svg {
        width: 24px;
        height: 24px;
    }
}