/* ========================================
   HADITH SEARCH
   ======================================== */
.hadith-search-section {
    padding: 20px 24px 0;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hadith-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--border-gray);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}
.hadith-search-container:focus-within {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 10%, transparent);
}

.hadith-search-icon {
    color: #9ca3af;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hadith-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: #1f2937;
}
.hadith-search-input::placeholder { color: #9ca3af; }

.hadith-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hadith-search-count {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.hadith-search-clear {
    width: 24px;
    height: 24px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.15s;
}
.hadith-search-clear.visible { display: flex; }
.hadith-search-clear:hover { background: #e5e7eb; color: #374151; }

.hadith-search-hint {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

[dir="rtl"] .hadith-search-input { direction: rtl; text-align: end; }
