/* 
 * Gallery Premium Enhancements
 * Additions for gallery.php
 */

/* Gallery Hero */
.gallery-hero-enhanced {
    position: relative;
    padding: 160px 0 100px;
    background: transparent;
    overflow: hidden;
    text-align: center;
}

.gallery-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.gallery-hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Premium Filter Bar */
.gallery-filter-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    margin-bottom: 4rem;
    transform: translateY(-40px);
}

.filter-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control-premium,
.form-select-premium {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control-premium:focus,
.form-select-premium:focus {
    background: white;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.btn-filter-premium {
    background: var(--text-gradient-primary);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-filter-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Gallery Grid */
.gallery-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.gallery-card-enhanced {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.gallery-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.gallery-media-wrapper {
    position: relative;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.gallery-img-enhanced {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card-enhanced:hover .gallery-img-enhanced {
    transform: scale(1.1);
}

.gallery-overlay-enhanced {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-card-enhanced:hover .gallery-overlay-enhanced {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 100%;
}

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

.gallery-card-info {
    padding: 1.5rem;
    background: white;
    position: relative;
    z-index: 2;
}

.gallery-cat-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4F46E5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 3;
}

.gallery-title-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0F172A;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gallery-zoom-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-zoom-btn:hover {
    background: #4F46E5;
    color: white;
    transform: scale(1.1);
}

/* Modern Lightbox */
.lightbox-modal-enhanced {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
}

.lightbox-content-enhanced {
    border-radius: 12px;
    box-shadow: 0 25px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .gallery-filter-container {
        transform: translateY(0);
        margin-top: 2rem;
        padding: 1.25rem;
    }

    .gallery-hero-enhanced {
        padding: 120px 0 60px;
    }

    .gallery-grid-enhanced {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .gallery-hero-title {
        font-size: 2.5rem;
    }
}

/* Background Shapes & Animation */
.bg-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: floatShape 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(20deg);
    }
}

/* Enhanced Gradient Text */
.premium-glow-text {
    background: linear-gradient(135deg, #0F172A 0%, #4F46E5 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    letter-spacing: 0.05em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}