/* /home/dibamehr/public_html/includes/filters/filter_styles.css */
.gradient-section {
    background: #0A4174;
    padding: 1rem 0;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 40;
    min-height: 140px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.show {
    display: block;
}

.grid-item {
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    position: relative;
    transition: background 0.2s ease;
}

.grid-item:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.1);
}

.grid-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 10px;
}

.modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
}

.modal.show {
    display: flex;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.price-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-suggestions button {
    transition: background-color 0.2s ease;
}

/* استایل‌های جدید برای بج و آیکون حذف */
.grid-item .bi-x {
    transition: transform 0.2s ease, color 0.2s ease;
}

.grid-item .bi-x:hover {
    color: #D1D5DB;
    transform: scale(1.2);
}

.grid-item .bg-blue-600 {
    font-size: 0.7rem;
    font-weight: bold;
}

/* استایل برای تگ‌های والد و ضربدر */
.parent-tag {
    background: #1E40AF;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.81rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.parent-tag i.bi-x {
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.parent-tag i.bi-x:hover {
    color: #E5E7EB;
    transform: scale(1.2);
}

@media (min-width: 1024px) {
    .custom-grid {
        display: flex;
        justify-content: center;
        max-width: 1536px;
        gap: 1.5rem;
    }
    .custom-grid > div {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 1023px) {
    .custom-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 8px;
    }
    .custom-grid > div {
        min-width: 0;
    }
    .grid-item {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    .grid-item i {
        font-size: 1.4rem;
    }
    .gradient-section {
        background: #0A4174;
        padding: 1rem 0;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 40;
        min-height: 140px;
    }
}

@media (max-width: 767px) {
    .gradient-section {
        min-height: 130px;
    }
    .custom-grid {
        gap: 0.5rem;
        padding: 0 8px;
    }
    .grid-item {
        font-size: 0.75rem;
    }
    .grid-item i {
        font-size: 1.3rem;
    }
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    .modal-content h2 {
        font-size: 1rem;
    }
    .modal-content input {
        font-size: 0.9rem;
    }
    .price-suggestions button {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    .grid-item .bg-blue-600 {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.65rem;
    }
}