/* ========== GALERI MASONRY CSS ========== */
/* /assets/css/galeri-masonry.css */

/* ========== HERO SECTION ========== */
.galeri-hero {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 80px 80px, 60px 60px;
    animation: patternMove 20s linear infinite;
    z-index: 2;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-80px, -80px); }
}

/* Hero Title */
.galeri-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.highlight-text {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badges */
.badge-galeri {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2d3748 !important;
    font-weight: 600;
}

/* Hero Stats Inline */
.hero-stats-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-inline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-inline:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
}

.stat-inline i {
    font-size: 1.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

/* Scroll Down Button */
.btn-scroll-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    margin-top: 2rem;
}

.btn-scroll-down:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(5px);
    color: white;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== FILTERS ========== */
.galeri-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* ========== MASONRY GRID ========== */
.masonry-grid {
    margin: 0 -15px;
}

.masonry-item {
    width: 33.333%;
    padding: 15px;
    margin-bottom: 0;
}

/* Galeri Card */
.galeri-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.galeri-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper */
.galeri-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.galeri-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.galeri-card:hover .galeri-image {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
}

/* Overlay */
.galeri-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.galeri-card:hover .galeri-overlay {
    opacity: 1;
}

.overlay-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.overlay-link:hover {
    transform: scale(1.1);
    color: white;
}

.overlay-link i {
    font-size: 2rem;
}

/* Badges */
.galeri-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.galeri-badges .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-audio {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.badge-photos {
    background: rgba(0, 123, 255, 0.9);
    color: white;
}

/* Galeri Info */
.galeri-info {
    padding: 1.5rem;
}

.galeri-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.galeri-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.galeri-title a:hover {
    color: #667eea;
}

.galeri-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-item i {
    font-size: 0.85rem;
}

/* Load More Button */
.btn-load-more {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-load-more:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 992px) {
    .masonry-item {
        width: 50%;
    }
    
    .galeri-hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats-inline {
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .masonry-item {
        width: 100%;
    }
    
    .galeri-hero {
        min-height: 50vh;
    }
    
    .galeri-hero-title {
        font-size: 2rem;
    }
    
    .stat-inline {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-stats-inline {
        gap: 0.75rem;
    }
    
    .stat-divider {
        display: none;
    }
}

@media (max-width: 576px) {
    .galeri-hero-title {
        font-size: 1.75rem;
    }
    
    .btn-load-more {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ========== PERFORMANCE ========== */
.galeri-card,
.galeri-image,
.overlay-link {
    will-change: transform;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}