/* Modern Gallery Page Styles */

/* Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, #1a4d2e 0%, #0f2818 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 35%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(139, 195, 74, 0.15) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.08)"/></svg>');
    opacity: 1;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #f8f9fa 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.gallery-hero .hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(139, 195, 74, 0.25) 100%);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.gallery-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.gallery-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Gallery Section */
.gallery-section {
    background: #f8f9fa;
}

/* Gallery Tabs */
.gallery-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.gallery-tabs {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 8px;
    margin: 0;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.tab-item {
    margin: 0;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a4d2e 0%, #0f2818 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.tab-button i,
.tab-button span {
    position: relative;
    z-index: 1;
}

.tab-button i {
    font-size: 1.2rem;
}

.tab-count {
    background: rgba(26, 77, 46, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.tab-button.active {
    color: white;
}

.tab-button.active::before {
    opacity: 1;
}

.tab-button.active .tab-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tab-button:hover:not(.active) {
    background: rgba(26, 77, 46, 0.05);
    color: #1a4d2e;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Section */
.category-section {
    margin-bottom: 60px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a4d2e;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #1a4d2e;
}

.category-title i {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Gallery Item */
.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Image Wrapper */
.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.85) 0%, rgba(15, 40, 24, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.btn-view {
    background: white;
    color: #1a4d2e;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-view:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Gallery Caption */
.gallery-caption {
    padding: 18px 20px;
    background: white;
}

.gallery-caption span {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

/* Video Item */
.video-item .video-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: #000;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 25px;
    display: block;
}

.empty-state h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    color: #1a4d2e;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #f44336;
    color: white;
}

.lightbox-body {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-body img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
}

/* Responsive Design */
@media (max-width: 991px) {
    .gallery-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .gallery-hero {
        padding: 60px 0 40px;
    }
    
    .gallery-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .gallery-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .gallery-tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 16px;
    }
    
    .tab-button {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 575px) {
    .gallery-hero .hero-title {
        font-size: 1.5rem;
    }
    
    .gallery-image-wrapper,
    .video-item .video-wrapper {
        height: 200px;
    }
}
