/**
 * Son Aramalarınız modülü
 */
.module-recent-searches {
    --rs-text: var(--color-secondary, #334155);
    --rs-muted: #6b7c93;
    --rs-border: #e2e8f0;
    --rs-card-bg: #f4f7fb;
    --rs-icon-bg: #fff;
    --rs-accent: var(--color-secondary-light, #64748b);
    --rs-radius: 10px;
    color: var(--rs-text);
}

.module-recent-searches.recent-searches--empty {
    display: none !important;
}

.module-recent-searches .recent-searches__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.module-recent-searches .recent-searches__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rs-text);
    letter-spacing: -0.01em;
}

.module-recent-searches .recent-searches__actions { 
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.module-recent-searches .recent-searches__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 8px;
    border: 1px solid var(--rs-border);
    background: #fff;
    color: var(--rs-accent);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.module-recent-searches .recent-searches__btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.module-recent-searches .recent-searches__btn--ghost {
    border-color: transparent;
    background: transparent;
}

.module-recent-searches .recent-searches__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.module-recent-searches .recent-searches__more {
    display: grid;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.module-recent-searches .recent-searches__more.is-expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1rem;
}

.module-recent-searches .recent-searches__card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: var(--rs-card-bg);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    text-decoration: none;
    color: inherit;
    min-height: 72px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.module-recent-searches .recent-searches__card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(26, 43, 74, 0.08);
    background: #eef3f9;
}

.module-recent-searches .recent-searches__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rs-icon-bg);
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    color: var(--rs-accent);
    font-size: 1rem;
}

.module-recent-searches .recent-searches__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.module-recent-searches .recent-searches__card .recent-searches__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-recent-searches .recent-searches__subtitle {
    font-size: 0.8125rem;
    color: var(--rs-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-recent-searches .recent-searches__chevron {
    flex-shrink: 0;
    color: var(--rs-accent);
    font-size: 0.75rem;
    opacity: 0.85;
}

@media (max-width: 991.98px) {
    .module-recent-searches .recent-searches__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .module-recent-searches .recent-searches__header {
        flex-wrap: wrap;
    }

    .module-recent-searches .recent-searches__actions {
        width: 100%;
        justify-content: flex-end;
    }
}
