/* ============================================================
 * GALERI MEDIA — ALBUM DETAIL
 * Path: public/assets/css/galeri-album.css
 * ============================================================ */

/* ----------------------------------------
 * HERO BADGE
 * ---------------------------------------- */
.galeri-album-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* ----------------------------------------
 * TOPBAR
 * ---------------------------------------- */
.galeri-album-topbar {
    margin-bottom: 32px;
}

.galeri-album-topbar .galeri-btn-back {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    font-size: 13px;
}

.galeri-album-topbar .galeri-btn-back:hover {
    background: #f8fafc;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateX(-3px);
}

/* ----------------------------------------
 * FOTO GRID (detail album)
 * ---------------------------------------- */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.galeri-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galeri-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.galeri-item-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}

.galeri-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeri-item:hover .galeri-item-image img {
    transform: scale(1.1);
}

.galeri-item-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #cbd5e1;
    font-size: 48px;
}

.galeri-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.galeri-item:hover .galeri-item-overlay {
    opacity: 1;
}

.galeri-item-overlay-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 22px;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.galeri-item:hover .galeri-item-overlay-icon {
    transform: scale(1);
}

.galeri-item-info {
    padding: 16px;
}

.galeri-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.galeri-item:hover .galeri-item-title {
    color: #2563eb;
}

.galeri-item-date {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.galeri-item-date i {
    color: #cbd5e1;
}

/* ----------------------------------------
 * LIGHTBOX MODAL
 * ---------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(220, 38, 38, 0.9);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s;
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(37, 99, 235, 0.9);
    border-color: rgba(37, 99, 235, 0.9);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-content {
    max-width: 1000px;
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 280px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-info {
    text-align: center;
    color: #ffffff;
    max-width: 700px;
}

.lightbox-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.lightbox-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.lightbox-info p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 8px;
}

.lightbox-counter {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.lightbox-counter span {
    color: #f59e0b;
}

/* ----------------------------------------
 * RESPONSIVE
 * ---------------------------------------- */
@media (max-width: 991.98px) {
    .lightbox {
        padding: 60px 20px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .galeri-item-info {
        padding: 12px;
    }

    .galeri-item-title {
        font-size: 13px;
    }

    .galeri-item-date {
        font-size: 11px;
    }

    .lightbox {
        padding: 60px 12px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 12px;
        right: 12px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-info h3 {
        font-size: 16px;
    }

    .lightbox-info p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .galeri-grid {
        grid-template-columns: 1fr;
    }
}