/* ===================================================
   OLAOLUWA AKINLOTAN - GALLERY PAGE STYLES
   Masonry Gallery with Themed Cards
   =================================================== */

/* ===== Gallery Section ===== */
.gallery.section {
    padding: 60px 0 100px;
    background: #f8fafc;
}

/* ===== Gallery Filters ===== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #00b5ff;
    color: #00b5ff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #00b5ff, #1e90ff);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 181, 255, 0.26);
}

/* ===== Masonry Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 10px;
}

/* ===== Gallery Card ===== */
.gallery-card {
    break-inside: avoid;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card.hidden {
    display: none;
}

.gallery-card-inner {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ===== Gallery Image Container ===== */
.gallery-image {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* ===== Image Overlay ===== */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 23, 44, 0.7), rgba(30, 144, 255, 0.28));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-card:hover .gallery-zoom {
    transform: scale(1);
}

.gallery-zoom:hover {
    background: #00d4ff;
    color: #0f0c29;
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* ===== Featured Badge ===== */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f0c29;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.featured-badge i {
    font-size: 0.7rem;
}

/* ===== Gallery Info ===== */
.gallery-info {
    padding: 20px 22px 25px;
}

.gallery-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.gallery-description {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.gallery-category {
    display: inline-block;
    padding: 5px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

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

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

.empty-gallery h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 10px;
}

.empty-gallery p {
    font-family: 'Roboto', sans-serif;
    color: #6b7280;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-card:nth-child(1) { animation-delay: 0.1s; }
.gallery-card:nth-child(2) { animation-delay: 0.2s; }
.gallery-card:nth-child(3) { animation-delay: 0.3s; }
.gallery-card:nth-child(4) { animation-delay: 0.4s; }
.gallery-card:nth-child(5) { animation-delay: 0.5s; }
.gallery-card:nth-child(6) { animation-delay: 0.6s; }
.gallery-card:nth-child(7) { animation-delay: 0.7s; }
.gallery-card:nth-child(8) { animation-delay: 0.8s; }

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery.section {
        padding: 40px 0 80px;
    }
    
    .gallery-filters {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-info {
        padding: 15px 18px 20px;
    }
    
    .gallery-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }
    
    .filter-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    .gallery-zoom {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ===== GLightbox Customization ===== */
.glightbox-clean .gslide-description {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.95), rgba(48, 43, 99, 0.95));
}

.glightbox-clean .gslide-title {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

.glightbox-clean .gslide-desc {
    font-family: 'Roboto', sans-serif;
    color: rgba(255, 255, 255, 0.8);
}
