/* Base Styles - Inherit from home.css */
@import url('home.css');

/* Gallery Hero */
.gallery-hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, 
        rgba(45, 27, 105, 0.8) 0%, 
        rgba(255, 107, 157, 0.7) 50%, 
        rgba(108, 92, 231, 0.8) 100%), 
        url('cta-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.gallery-hero .hero-content {
    text-align: center;
    color: var(--white);
    width: 100%;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.gallery-hero .hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #faf7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
}

.gallery-hero .hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease 0.3s forwards;
    opacity: 0;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Gallery Filters */
.gallery-filters {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--white) 0%, #faf7ff 100%);
    position: sticky;
    top: 80px;
    z-index: 50;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

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

.filter-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--white) 0%, #faf7ff 100%);
    border: 2px solid var(--secondary);
    color: var(--primary);
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.filter-btn:hover {
    border-color: var(--accent);
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn:hover::before {
    opacity: 0.1;
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px) scale(1.05);
}

.filter-btn.active::before {
    opacity: 0;
}

/* Gallery Grid */
.gallery-grid {
    padding: 50px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--light-gray) 50%, #ffffff 100%);
    position: relative;
}

.gallery-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.masonry-grid {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, #faf7ff 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-tertiary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.gallery-item:hover::before {
    opacity: 0.03;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    object-fit: cover;
    min-height: 200px;
    max-height: 400px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(45, 27, 105, 0.8) 0%, 
        rgba(255, 107, 157, 0.85) 50%, 
        rgba(108, 92, 231, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    backdrop-filter: blur(2px);
}

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

.gallery-overlay-content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition-bounce);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

.gallery-overlay-content p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 18px;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.view-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.view-btn:hover::before {
    opacity: 0.9;
}

/* UGC CTA */
.ugc-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(233, 69, 96, 0.9)), url('cta-bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.ugc-content h2 {
    font-size: 2.75rem;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ugc-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--secondary);
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    padding: 20px;
    text-align: center;
    background-color: var(--white);
}

.image-title {
    color: var(--primary);
    margin-bottom: 10px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        height: 40vh;
    }
    
    .gallery-hero .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .gallery-hero .hero-content p {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        columns: 1;
    }
    
    .gallery-hero {
        height: 35vh;
        min-height: 250px;
    }
    
    .gallery-hero .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .ugc-content h2 {
        font-size: 2rem;
    }
    
    .ugc-content p {
        font-size: 1rem;
    }
    
    .lightbox-nav {
        padding: 0 10px;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}