/* gallery.css */

.gallery-main {
    flex-grow: 1;
    padding: 60px 0;
    background-color: #1a1a2e;
}

/* Hero Section */
.gallery-hero {
    text-align: center;
    padding: 60px 0 40px;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #f0f0f0, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-hero p {
    font-size: 1.2rem;
    color: #c0c0c0;
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Section */
.gallery-filters {
    background-color: #20203a;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #2c2c4a;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    color: #c0c0c0;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #3a3a5a;
    color: #f0f0f0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #8a2be2;
    color: white;
    border-color: #8a2be2;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.search-box {
    position: relative;
    margin-top: 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a2be2;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #4a4a6a;
    border-radius: 25px;
    background-color: #2c2c4a;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input:focus {
    border-color: #8a2be2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}

.search-box input::placeholder {
    color: #80809b;
}

/* Stats Section */
.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #20203a;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    font-size: 2.5rem;
    color: #8a2be2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #c0c0c0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.gallery-item {
    background-color: #20203a;
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(138, 43, 226, 0.4);
    border-color: #8a2be2;
}

.gallery-item-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background-color: #2c2c4a;
}

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

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

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

.gallery-item-title {
    color: #f0f0f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-item-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.meta-badge {
    padding: 4px 10px;
    background-color: #2c2c4a;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #c0c0c0;
}

.gallery-item-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
    font-size: 0.9rem;
}

.gallery-item-rating i {
    font-size: 0.85rem;
}

.gallery-item-rating span {
    color: #c0c0c0;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-bottom: 50px;
}

#load-more-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Gallery CTA */
.gallery-cta {
    background: linear-gradient(135deg, #8a2be2, #4c00a0);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.3);
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background-color: white;
    color: #8a2be2;
}

.cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    padding: 20px;
}

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

.lightbox-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    background-color: #20203a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 2fr 1fr;
    max-height: 90vh;
}

.lightbox-main {
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-main img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-info {
    padding: 40px;
    overflow-y: auto;
    background-color: #20203a;
}

.lightbox-info h3 {
    color: #f0f0f0;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.lightbox-details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-badge {
    padding: 6px 14px;
    background-color: #2c2c4a;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    color: #8a2be2;
    font-weight: 600;
}

.lightbox-info p {
    color: #c0c0c0;
    line-height: 1.7;
    margin-bottom: 20px;
}

.lightbox-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.lightbox-rating i {
    color: #ffd700;
}

.lightbox-rating span {
    color: #f0f0f0;
    font-weight: 600;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(138, 43, 226, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #8a2be2;
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Active link in navbar */
.nav-links ul li a.active-link {
    color: #8a2be2;
}

.nav-links ul li a.active-link::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .lightbox-content {
        grid-template-columns: 1fr;
    }
    
    .lightbox-main {
        max-height: 50vh;
    }
}

@media (max-width: 992px) {
    .gallery-hero h1 {
        font-size: 2.8rem;
    }

    .gallery-stats {
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.2rem;
    }

    .gallery-hero p {
        font-size: 1rem;
    }

    .gallery-stats {
        flex-direction: column;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item-image {
        height: 220px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .lightbox-info {
        padding: 25px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-filters {
        padding: 20px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-cta {
        padding: 40px 20px;
    }
}
