/* ===== Favorites (RTL / Mobile First) ===== */

.favorites-page {
    min-height: calc(100vh - 200px);
    padding: 0 0 5rem;
    background: radial-gradient(1200px 400px at 90% -10%, rgba(0, 188, 212, 0.12), transparent 60%),
        radial-gradient(900px 380px at 10% 0%, rgba(13, 59, 102, 0.10), transparent 55%),
        #f5f7fa;
}

.favorites-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
}

.favorites-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-color);
    font-size: 1.85rem;
    font-weight: 900;
}

.favorites-title i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 188, 212, 0.12);
    color: var(--navy-color);
}

.favorites-subtitle {
    margin-top: 0.3rem;
    color: rgba(15, 23, 42, 0.65);
    font-weight: 500;
}

.btn-clear {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #b91c1c;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-clear:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-clear:active {
    transform: translateY(1px);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== Empty State ===== */

.favorites-empty {
    background: #fff;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 18px;
    padding: 2rem 1rem;
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(0, 188, 212, 0.12);
    color: var(--navy-color);
    font-size: 1.5rem;
}

.favorites-empty h3 {
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--navy-color);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.1rem;
    border-radius: 14px;
    font-weight: 900;
}

@media (max-width: 768px) {
    .favorites-page {
        padding: 1rem 0 5.5rem;
    }

    .favorites-header {
        flex-direction: column;
        align-items: stretch;
    }
}
