/*
* איצאב מתכות - עיצוב דף הגלריה
* גרסה: 1.0
* תאריך: 06/04/2025
*/

/* === מסננים === */
.gallery-filters {
    /* margin-bottom: 5rem; */
}

.filter-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-options li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: var(--transition);
}

.filter-options li.active,
.filter-options li:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-color: var(--secondary-color);
}

/* === גלריית תמונות === */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
    transform: translateY(100%);
    transition: var(--transition);
}

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

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

.load-more {
    text-align: center;
    margin-top: 4rem;
}

/* === חלונית תצוגה מקדימה === */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
}

.modal-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-info {
    background-color: var(--light-text);
    padding: 2rem;
    color: var(--text-color);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3rem;
    color: var(--light-text);
    cursor: pointer;
    z-index: 2001;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light-text);
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    border-radius: 4px;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
    .filter-options {
        flex-direction: column;
        align-items: center;
    }

    .filter-options li {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-bottom: 0.8rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-prev,
    .modal-next {
        padding: 0.8rem 1.5rem;
        font-size: 1.4rem;
    }
}

/* === מקטע CTA בגלריה === */
.contact-cta {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 6rem 0;
    margin-top: 5rem;
    text-align: center;
}

.contact-cta .section-title,
.contact-cta .section-subtitle {
    color: var(--light-text);
}

.contact-cta .section-title::after {
    background-color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cta-buttons .cta-button,
.cta-buttons .cta-button-secondary {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
}

.cta-buttons .cta-button-secondary {
    background-color: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.cta-buttons .cta-button-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.cta-buttons i {
    font-size: 1.8rem;
}

/* תצוגה במובייל */
@media screen and (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .cta-button,
    .cta-buttons .cta-button-secondary {
        width: 100%;
        max-width: 300px;
    }
}