/* 
 * HIMABISDIG - Galeri Page Styles (PROFESSIONAL & MINIMALIST)
 * Design: Clean, Corporate, No-nonsense
 * Created: November 2025
 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0A2463;
    --primary-light: #3E92CC;
    --secondary: #F7931E;
    --text-dark: #1a202c;
    --text-body: #4a5568;
    --text-light: #718096;
    --border: #e2e8f0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
}

/* ===== HERO SECTION ===== */
.galeri-hero-section {
    position: relative;
    background: linear-gradient(135deg, #0A2463 0%, #1e3a8a 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 8rem 0 6rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .galeri-hero-section {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-weight: 400;
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
}

.stat-box {
    text-align: center;
}

.stat-icon {
    display: none; /* Remove icons for professional look */
}

.stat-content {
    color: #ffffff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.scroll-arrow:hover {
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    padding: 2.5rem 0;
    background: var(--bg-white);
}

.filter-container {
    background: transparent;
    border: none;
    padding: 0;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.section-badge {
    display: none; /* Hide label for cleaner look */
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.filter-btn:hover {
    color: var(--primary);
    background: transparent;
}

.filter-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.filter-btn i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.filter-btn.active i {
    opacity: 1;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    background: var(--bg-white);
    border: none;
    border-bottom: 2px solid var(--border);
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-select:focus {
    outline: none;
    border-bottom-color: var(--primary);
    background: var(--bg-white);
    box-shadow: none;
}

.custom-select:hover {
    border-bottom-color: var(--primary-light);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    font-size: 0.875rem;
    transition: color 0.25s ease;
}

.custom-select-wrapper:hover .select-arrow,
.custom-select:focus ~ .select-arrow {
    color: var(--primary);
}

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.filter-label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: none;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.active-filter-tag:hover {
    background: var(--border);
}

.clear-filter {
    background: transparent;
    border: none;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 0.25rem;
}

.clear-filter:hover {
    color: var(--text-dark);
    transform: scale(1.1);
}

.btn-clear-all {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-clear-all:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.gallery-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gallery-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-light);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.85);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay,
.gallery-card:active .gallery-overlay,
.gallery-card.touch-active .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.gallery-overlay-caption {
    color: #ffffff;
    text-align: center;
    display: none;
}

.gallery-card:hover .gallery-overlay-caption,
.gallery-card:active .gallery-overlay-caption,
.gallery-card.touch-active .gallery-overlay-caption {
    display: block;
}

.gallery-overlay-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.gallery-overlay-event {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.gallery-overlay-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    padding-left: 3px;
    transition: all 0.2s ease;
}

.gallery-card:hover .play-button {
    transform: scale(1.1);
}

.media-type-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 3px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ===== PAGINATION ===== */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.empty-text {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 3rem 0 4rem;
    background: var(--bg-light);
}

.cta-box {
    background: var(--primary);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-overlay {
    display: none; /* Remove overlay for cleaner look */
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-button-wrapper {
    display: flex;
    justify-content: center;
}

.btn-cta-contact {
    padding: 0.875rem 2rem;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-cta-contact:hover {
    background: transparent;
    color: #ffffff;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    border-color: #ffffff;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
}

.lightbox-slide {
    display: none;
}

.lightbox-slide.active {
    display: block;
}

.lightbox-slide img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    border-color: #ffffff;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== UTILITY CLASSES ===== */
.btn-primary-gradient {
    padding: 0.875rem 2rem;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 4px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-gradient:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .galeri-hero-section {
        padding: 6rem 0 4rem;
        min-height: 40vh;
    }
    
    .gallery-stats {
        gap: 2rem;
    }
    
    .filter-section,
    .gallery-section {
        padding: 3rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .galeri-hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .gallery-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-section {
        padding: 2rem 0;
    }
    
    .filter-buttons {
        gap: 0.375rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .custom-select {
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .active-filters {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .filter-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-box {
        padding: 2rem 1.25rem;
    }
    
    .btn-cta-contact {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}