/*
 * GALLERY PAGE SPECIFIC STYLES
 * Isolated from main CSS to prevent conflicts
 */

/* Gallery Hero Background */
.gallery-hero {
    background-image: url('../images/gallery-hero.jpg');
}

/* Premium Typography for Gallery Page */
.gallery-hero h1,
.gallery-section h2,
.filter-btn,
.gallery-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gallery-hero p,
.gallery-description,
.gallery-caption,
.filter-description {
    font-family: 'Inter', sans-serif !important;
}

/* Filter Section */
.gallery-filters {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 92px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid #004080;
    background: white;
    color: #004080;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.2);
}

.filter-btn:active {
    transform: translateY(0) scale(0.98);
}

.filter-btn.active {
    background: linear-gradient(135deg, #004080, #0066cc);
    color: white;
    border-color: transparent;
    transform: scale(1.08);
}

/* Gallery Grid */
.gallery-section {
    padding: 60px 0;
    background: white;
}

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

.gallery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 64, 128, 0.2);
}

.gallery-card:active {
    transform: translateY(-5px) scale(1.01);
}

.gallery-card-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.1);
}

.gallery-card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.media-type-badge.photo {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.media-type-badge.video {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.media-type-badge.youtube {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.gallery-card-info {
    padding: 20px;
}

.gallery-card-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.gallery-card-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.gallery-card-category {
    display: inline-block;
    background: #e9ecef;
    color: #004080;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #004080;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 40px 0;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

.empty-state .btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #004080, #0066cc);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 64, 128, 0.3);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-image-container img,
.modal-image-container video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    max-width: 80%;
    text-align: center;
}

.modal-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.modal-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-filters {
        top: 92px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-card-image {
        height: 250px;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-filters {
        top: 84px;
        padding: 20px 0;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .gallery-card-image {
        height: 200px;
    }
}
