/* GroovyCoins Gallery Styles - V1.5 */

/* Galleries Index Page */
.galleries-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Version info directly under header */
.version-info-header {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: -20px;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-card {
    background: linear-gradient(135deg, rgba(60, 80, 100, 0.9) 0%, rgba(40, 60, 80, 0.95) 100%);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(70, 90, 110, 0.95) 0%, rgba(50, 70, 90, 1) 100%);
}

.gallery-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

/* Gallery preview image (actual coin photo) */
.gallery-preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gallery-card h2 {
    color: #e0f7ff;
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.gallery-card p {
    color: #b8d4e8;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.gallery-button {
    display: inline-block;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
                0 0 40px rgba(139, 92, 246, 0.3),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
    border: none;
}

.gallery-card:hover .gallery-button {
    /* No animation on hover as requested */
}

/* Gallery Viewer Page */
.gallery-viewer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.back-to-galleries {
    color: #a3dfff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s;
}

.back-to-galleries:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* Thumbnail Grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.thumbnail-pair {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-pair:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 1);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.thumbnail-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
}

.thumbnail-caption {
    text-align: center;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

/* No Images Message */
.no-images {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.no-images p {
    color: #666;
    font-size: 16px;
    margin: 10px 0;
}

.no-images p:first-child {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ff6b6b;
}

.lightbox-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    max-width: 95vw;
    justify-items: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin: 20px 0;
    padding: 15px 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5),
                0 0 40px rgba(6, 182, 212, 0.3),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.lightbox-nav:hover {
    background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.8),
                0 0 60px rgba(6, 182, 212, 0.5),
                inset 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -100px;
}

.lightbox-next {
    right: -100px;
}

.back-to-thumbnails {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
                0 0 40px rgba(139, 92, 246, 0.3),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.back-to-thumbnails:hover {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.8),
                0 0 60px rgba(139, 92, 246, 0.5),
                inset 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Version Info */
.version-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 40px;
    padding: 10px;
}

/* Full-Size Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    cursor: zoom-out;
}

.zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.zoom-image {
    position: absolute;
    max-width: none;
    max-height: none;
    cursor: grab;
}

.zoom-image.dragging {
    cursor: grabbing;
}

.lightbox-img {
    cursor: zoom-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .lightbox-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lightbox-img {
        max-height: 50vh;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-card {
        padding: 20px;
    }
    
    .gallery-icon {
        font-size: 40px;
    }
}
