/* Updated Gallery CSS - Consistent with main site theme */
:root {
    /* Using same variables as style.css */
    --bg-color: #FFF7ED;
    --primary-color: #FF902A;
    --secondary-color: #FFFFFF;
    --accent-color: #E0D6FF;
    --text-color: #000000;
    --red-color: #F76D6D;
    --green-color: #82C98F;
    --blue-color: #89CFF0;
    --gold-gradient: linear-gradient(45deg, #FFB87A, #FF902A);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--secondary-color);
    border-bottom: 3px solid var(--text-color);
    box-shadow: 0 4px 0px var(--text-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--text-color);
}

.back-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    border: 3px solid var(--text-color);
    box-shadow: 4px 4px 0px var(--text-color);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px var(--text-color);
}

/* Gallery container */
.gallery-container {
    padding: 80px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Header styling */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--primary-color);
    transform: rotate(-2deg);
    text-shadow: 3px 3px 0px var(--text-color);
}

.gallery-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* Filter buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 15px 30px;
    background: var(--secondary-color);
    border: 3px solid var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px var(--text-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px var(--text-color);
}

/* Loading state */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.5rem;
}

.loading i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    background: var(--secondary-color);
    border: 3px solid var(--text-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 8px 8px 0px var(--text-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 12px 12px 0px var(--text-color);
}

.gallery-media-container {
    position: relative;
    overflow: hidden;
}

.gallery-media {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-btn {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: var(--text-color);
    transform: scale(1.1);
}

.gallery-info {
    padding: 25px;
}

.gallery-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.gallery-info p {
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.5;
}

.gallery-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    background: var(--secondary-color);
    border-radius: 20px;
    border: 3px solid var(--text-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-color);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-color);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-media {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 20px 20px 0 0;
}

.modal-info {
    padding: 30px;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.modal-info p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .back-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .gallery-container {
        padding: 60px 15px 20px;
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 2rem;
    }

    .gallery-subtitle {
        font-size: 1.1rem;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
}
