/* GALLERY HERO */
.gallery-hero {
    min-height: 40vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    position: relative;
    z-index: 1;
}

.gallery-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #5B0E14;
    line-height: 0.85;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .gallery-title {
        font-size: 6rem;
    }
}

.gallery-subtitle {
    font-size: 1rem;
    color: rgba(91, 14, 20, 0.6);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* HOME BUTTON */
.home-btn {
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #5B0E14;
    color: #FFFFFF;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(91, 14, 20, 0.2);
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(91, 14, 20, 0.3);
}

/* GALLERY SECTION */
.gallery-section {
    padding: 2rem 1.5rem 4rem;
    background-color: #FFFFFF;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .gallery-section {
        padding: 3rem 3rem 6rem;
    }
}

/* FILTER BUTTONS */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #5B0E14;
    background-color: transparent;
    color: #5B0E14;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(91, 14, 20, 0.2);
}

.filter-btn.active {
    background-color: #5B0E14;
    color: #FFFFFF;
    box-shadow: 0 10px 20px -5px rgba(91, 14, 20, 0.3);
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* GALLERY CARD - GLASSMORPHISM */
.gallery-card {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    group: card;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(91, 14, 20, 0.1);
    background: rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.6s ease;
    opacity: 0;
}

.gallery-card.show {
    opacity: 1;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(91, 14, 20, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91, 14, 20, 0.7) 0%, rgba(91, 14, 20, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

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

.gallery-card-content {
    text-align: center;
    color: #FFFFFF;
    z-index: 10;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.gallery-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.gallery-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.gallery-card-view-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #FFFFFF;
    color: #5B0E14;
    border: none;
    border-radius: 2rem;
    font-weight: 900;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-card-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* LIGHTBOX */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(91, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2.5rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(91, 14, 20, 0.3);
    animation: slideInUp 0.3s ease;
}

#lightboxImage {
    width: 100%;
    height: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 2rem;
    background: rgba(91, 14, 20, 0.2);
    text-align: center;
}

.lightbox-info h3 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 110;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* HIDDEN STATE */
.gallery-card.hidden {
    display: none;
}

/* ANIMATIONS */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .gallery-title {
        font-size: 2.5rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.625rem;
    }

    .gallery-card {
        height: 250px;
    }

    .gallery-card-title {
        font-size: 1rem;
    }

    .lightbox-info {
        padding: 1.5rem;
    }

    .lightbox-info h3 {
        font-size: 1.25rem;
    }
}

/* ADMIN PANEL STYLES */
.prompt-content {
    max-width: 400px;
    padding: 1rem;
    text-align: center;
}

.admin-input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(243, 229, 171, 0.3);
    border-radius: 1rem;
    background: rgba(243, 229, 171, 0.1);
    color: #F3E5AB !important; /* Override global input color for dark modal */
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.admin-input::placeholder {
    color: rgba(243, 229, 171, 0.5);
}

.admin-input:focus {
    border-color: #F3E5AB;
    background: rgba(243, 229, 171, 0.2);
}

.admin-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: #5B0E14;
    color: #F3E5AB;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.admin-panel.hidden {
    display: none;
}

.admin-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(243, 229, 171, 0.1);
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .admin-content {
        grid-template-columns: 350px 1fr;
    }
}

.admin-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 2rem;
    height: fit-content;
}

.admin-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(243, 229, 171, 0.05);
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.admin-item:hover {
    background: rgba(243, 229, 171, 0.1);
}

.admin-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-item-img {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.admin-item-title {
    font-weight: 700;
}

.admin-item-cat {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ff6b81;
    transform: scale(1.05);
}
