/* gallery.css - College Adventiste de Gitwe Gallery Page */

/* ===== GALLERY HERO SECTION ===== */
.gallery-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background: linear-gradient(rgba(13, 21, 48, 0.8), rgba(26, 35, 126, 0.8)),
                url('../image/gallery-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    margin-top: 70px;
    padding: 0 5%;
}

.gallery-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 21, 48, 0.6), rgba(26, 35, 126, 0.6));
}

.gallery-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.gallery-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gallery-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-hero i {
    color: var(--accent-blue);
    margin-right: 15px;
}

/* ===== GALLERY FILTER SECTION ===== */
.gallery-filter {
    padding: 30px 5%;
    background: var(--off-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--pure-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    color: var(--medium-gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--pure-white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}

.filter-btn i {
    font-size: 0.9rem;
}

/* ===== MAIN GALLERY SECTION ===== */
.main-gallery {
    padding: 60px 5%;
    background: var(--pure-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-section {
    margin-bottom: 80px;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.section-header h2 i {
    color: var(--accent-blue);
    margin-right: 15px;
}

.section-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(13, 21, 48, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    color: var(--pure-white);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.overlay-content p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.loading-gallery,
.loading-videos,
.no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--medium-gray);
}

.loading-gallery i,
.loading-videos i,
.no-content i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.no-content i {
    color: var(--light-gray);
}

.no-content h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.video-info h3 i {
    color: var(--accent-blue);
    margin-right: 8px;
}

.video-info p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== GALLERY CONTROLS ===== */
.gallery-controls {
    text-align: center;
    margin-top: 40px;
}

.show-more-btn {
    padding: 15px 40px;
    background: var(--primary-blue);
    color: var(--pure-white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}

.show-more-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.show-more-btn i {
    font-size: 0.9rem;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    padding: 80px 5%;
    background: var(--off-white);
}

.featured-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-header h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 800;
}

.featured-header h2 i {
    color: var(--accent-blue);
    margin-right: 15px;
}

.featured-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.featured-content {
    max-width: 1000px;
    margin: 0 auto;
}

.featured-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(13, 21, 48, 0.9));
    color: var(--pure-white);
}

.featured-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.featured-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
}

.view-btn {
    padding: 12px 25px;
    background: var(--accent-blue);
    color: var(--pure-white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* ===== GALLERY STATS ===== */
.gallery-stats {
    padding: 60px 5%;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--pure-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent-blue);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ===== FULL IMAGE OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.overlay-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

#fullImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-md);
}

.image-info {
    margin-top: 20px;
    color: var(--pure-white);
    text-align: center;
    max-width: 800px;
    margin: 20px auto 0;
}

.image-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.image-info p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 10px;
}

.image-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 15px;
}

.image-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.image-meta i {
    font-size: 0.8rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 992px) {
    .gallery-hero {
        height: 45vh;
        min-height: 300px;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-hero p {
        font-size: 1.1rem;
    }
    
    .section-header h2,
    .featured-header h2 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .featured-image img {
        height: 350px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    .gallery-hero {
        height: 40vh;
        min-height: 250px;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-hero p {
        font-size: 1rem;
    }
    
    .main-gallery,
    .featured-section,
    .gallery-stats {
        padding: 50px 4%;
    }
    
    .section-header h2,
    .featured-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .section-header p,
    .featured-header p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-image-container {
        height: 200px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .featured-overlay {
        padding: 30px;
    }
    
    .featured-overlay h3 {
        font-size: 1.5rem;
    }
    
    .featured-overlay p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .gallery-hero {
        height: 35vh;
        min-height: 200px;
        margin-top: 70px;
    }
    
    .gallery-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-header h2,
    .featured-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .gallery-image-container {
        height: 180px;
    }
    
    .show-more-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .featured-image img {
        height: 250px;
    }
    
    .featured-overlay {
        padding: 20px;
    }
    
    .featured-overlay h3 {
        font-size: 1.3rem;
    }
    
    .view-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stat-card {
        padding: 30px 15px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .gallery-hero {
        height: 30vh;
        min-height: 180px;
    }
    
    .gallery-hero h1 {
        font-size: 1.6rem;
    }
    
    .section-header h2,
    .featured-header h2 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-image-container {
        height: 200px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

