/* ================================================
   SAI MINERALS GALLERY - WORDPRESS PLUGIN STYLES
   ================================================ */

:root {
    --sai-gold: #C9A962;
    --sai-gold-light: #d4ba7a;
    --sai-dark-bg: #0a0a0a;
    --sai-darker-bg: #000000;
    --sai-text-light: #ffffff;
    --sai-text-muted: #999999;
}

/* Wrapper */
#sai-gallery-wrapper {
    padding: 60px 0;
    background: var(--sai-darker-bg);
    min-height: 600px;
}

/* Breadcrumb */
.sai-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 13px;
}

.sai-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sai-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sai-breadcrumb-item:hover {
    color: var(--sai-gold);
}

.sai-breadcrumb-separator {
    color: var(--sai-text-muted);
    font-size: 10px;
}

.sai-breadcrumb-current {
    color: var(--sai-text-light);
    font-weight: 500;
}

/* Hero Section */
.sai-gallery-hero {
    text-align: center;
    margin-bottom: 60px;
}

.sai-hero-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sai-gold);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.sai-hero-badge::before {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--sai-gold);
}

.sai-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--sai-text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.sai-hero-title .sai-gold-text {
    color: var(--sai-gold);
}

.sai-hero-description {
    font-size: 16px;
    color: var(--sai-text-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Category Filters */
.sai-category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.sai-filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid rgba(201, 169, 98, 0.3);
    color: var(--sai-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.sai-filter-btn:hover,
.sai-filter-btn.active {
    background: var(--sai-gold);
    border-color: var(--sai-gold);
    color: var(--sai-darker-bg);
}

/* Gallery Grid */
.sai-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.sai-gallery-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.sai-gallery-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Gallery Item */
.sai-gallery-item {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 98, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.sai-gallery-item:hover {
    border-color: rgba(201, 169, 98, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.sai-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sai-gallery-item:hover img {
    transform: scale(1.1);
}

/* Image Overlay */
.sai-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.sai-gallery-item:hover .sai-image-overlay {
    opacity: 1;
}

.sai-image-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sai-gold);
    margin-bottom: 8px;
}

.sai-image-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--sai-text-light);
    margin: 0;
}

/* Zoom Icon */
.sai-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(201, 169, 98, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.sai-gallery-item:hover .sai-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.sai-zoom-icon i {
    color: var(--sai-darker-bg);
    font-size: 18px;
}

/* Lightbox */
.sai-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    padding: 20px;
}

.sai-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sai-lightbox-content {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
}

.sai-lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

.sai-lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    border-radius: 0 0 12px 12px;
}

.sai-lightbox-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sai-gold);
    margin-bottom: 8px;
}

.sai-lightbox-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--sai-text-light);
    margin: 0;
}

/* Lightbox Controls */
.sai-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--sai-gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sai-lightbox-close:hover {
    transform: rotate(90deg);
    background: var(--sai-gold-light);
}

.sai-lightbox-close i {
    color: var(--sai-darker-bg);
    font-size: 24px;
}

.sai-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(201, 169, 98, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sai-lightbox-nav:hover {
    background: var(--sai-gold-light);
    transform: translateY(-50%) scale(1.1);
}

.sai-lightbox-prev {
    left: -70px;
}

.sai-lightbox-next {
    right: -70px;
}

.sai-lightbox-nav i {
    color: var(--sai-darker-bg);
    font-size: 20px;
}

/* Loading Indicator */
.sai-gallery-loading {
    text-align: center;
    padding: 60px 20px;
}

.sai-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(201, 169, 98, 0.3);
    border-top-color: var(--sai-gold);
    border-radius: 50%;
    animation: sai-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes sai-spin {
    to { transform: rotate(360deg); }
}

.sai-gallery-loading p {
    color: var(--sai-text-muted);
    font-size: 14px;
}

/* Empty State */
.sai-gallery-empty {
    text-align: center;
    padding: 80px 20px;
}

.sai-gallery-empty i {
    font-size: 64px;
    color: var(--sai-text-muted);
    margin-bottom: 20px;
}

.sai-gallery-empty h3 {
    font-size: 24px;
    color: var(--sai-text-light);
    margin-bottom: 10px;
}

.sai-gallery-empty p {
    font-size: 14px;
    color: var(--sai-text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .sai-hero-title {
        font-size: 48px;
    }
    
    .sai-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .sai-lightbox-prev {
        left: 10px;
    }
    
    .sai-lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    #sai-gallery-wrapper {
        padding: 40px 0;
    }
    
    .sai-hero-title {
        font-size: 42px;
    }
    
    .sai-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sai-gallery-item {
        height: 350px;
    }
    
    .sai-category-filters {
        gap: 10px;
    }
    
    .sai-filter-btn {
        padding: 10px 20px;
        font-size: 10px;
    }
    
    .sai-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .sai-hero-title {
        font-size: 36px;
    }
    
    .sai-gallery-item {
        height: 300px;
    }
    
    .sai-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .sai-lightbox-nav i {
        font-size: 16px;
    }
}
