/* ==========================================
   OPAC GALLERY PAGE STYLES
   Specific styles for the library gallery
   ========================================== */

:root {
    --gallery-indigo: #6366f1;
    --gallery-violet: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.4);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

.header-section {
    background: linear-gradient(135deg, var(--gallery-indigo) 0%, var(--gallery-violet) 100%);
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../puslajar/dist/img/pattern.svg');
    opacity: 0.1;
    pointer-events: none;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-pill {
    padding: 10px 24px;
    border-radius: 30px;
    background: white;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--gallery-indigo);
    color: white;
    border-color: var(--gallery-indigo);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.gallery-glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gallery-glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--gallery-indigo);
}

.gallery-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-glass-card:hover .gallery-img-wrapper img {
    transform: scale(1.1);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-glass-card:hover .gallery-hover-overlay {
    opacity: 1;
}

.view-btn {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gallery-indigo);
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-glass-card:hover .view-btn {
    transform: translateY(0);
}