/* ============================================================
   DEU Doktor Arama – Public CSS
   ============================================================ */

/* Kapsayıcı */
.deu-dr-search-wrap {
    position: relative;
    max-width: 680px;
    margin: 0 auto 2rem;
    font-family: inherit;
}

/* ── Arama kutusu ── */
.deu-dr-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #93c5fd;
    /* Soft blue border */
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.15);
    /* Persistent soft glow */
    transition: border-color .3s, box-shadow .3s;
    overflow: hidden;
}

.deu-dr-search-input-wrap:focus-within {
    border-color: #3b82f6;
    /* Stronger blue border */
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5), 0 0 30px rgba(37, 99, 235, 0.35);
    /* Brighter, deeper glow on focus */
}

.deu-dr-search-icon {
    display: flex;
    align-items: center;
    padding: 0 12px 0 16px;
    color: #6b7280;
    flex-shrink: 0;
    pointer-events: none;
}

.deu-dr-search-input {
    flex: 1;
    padding: 16px 10px 16px 0;
    border: none;
    outline: none;
    font-size: 1.3rem;
    font-weight: 500;
    color: #111827;
    background: transparent;
    -webkit-appearance: none;
}

.deu-dr-search-input::placeholder {
    color: #6b7280;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: .01em;
}

/* Temizle butonu */
.deu-dr-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 100%;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: color .15s;
}

.deu-dr-search-clear:hover {
    color: #dc2626;
}

/* ── Durum mesajı ── */
.deu-dr-search-status {
    margin-top: 8px;
    font-size: .875rem;
    color: #6b7280;
    min-height: 1.25rem;
    padding-left: 4px;
}

/* ── Sonuçlar kutusu ── */
.deu-dr-search-results {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    /* Yaklaşık 3 sonuç yüksekliği */
    overflow-y: auto;
    padding-right: 6px;
    /* Scrollbar payı */
}

/* Custom scrollbar (Webkit) */
.deu-dr-search-results::-webkit-scrollbar {
    width: 6px;
}

.deu-dr-search-results::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.deu-dr-search-results::-webkit-scrollbar-thumb {
    background: #c1c7d0;
    border-radius: 4px;
}

.deu-dr-search-results::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ── Sonuç kartı ── */
.deu-dr-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    transition: box-shadow .2s, border-color .2s, transform .15s;
    cursor: pointer;
}

.deu-dr-result-card:hover,
.deu-dr-result-card:focus {
    box-shadow: 0 4px 16px rgba(0, 86, 179, .14);
    border-color: #0056b3;
    transform: translateY(-1px);
    outline: none;
    text-decoration: none;
    color: inherit;
}

/* Fotoğraf */
.deu-dr-result-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    background: #f3f4f6;
}

.deu-dr-result-photo.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0056b3 0%, #0083ca 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.5px;
}

/* İçerik */
.deu-dr-result-info {
    flex: 1;
    min-width: 0;
}

.deu-dr-result-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deu-dr-result-job {
    font-size: 1.05rem;
    color: #0056b3;
    font-weight: 600;
    margin: 0 0 6px;
}

.deu-dr-result-excerpt {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Bölüm etiketi */
.deu-dr-result-badge {
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    background: #0056b3;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: .3px;
    align-self: flex-start;
}

/* Ok ikonu */
.deu-dr-result-arrow {
    display: flex;
    align-items: center;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color .15s, transform .15s;
}

.deu-dr-result-card:hover .deu-dr-result-arrow {
    color: #0056b3;
    transform: translateX(3px);
}

/* ── Yükleniyor animasyonu ── */
.deu-dr-loading-dots {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    margin-left: 4px;
}

.deu-dr-loading-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0056b3;
    animation: deuDrBounce 1.2s infinite ease-in-out;
}

.deu-dr-loading-dots span:nth-child(2) {
    animation-delay: .15s;
}

.deu-dr-loading-dots span:nth-child(3) {
    animation-delay: .30s;
}

@keyframes deuDrBounce {

    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: .5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Boş durum ── */
.deu-dr-no-results {
    text-align: center;
    padding: 32px 16px;
    color: #6b7280;
    font-size: .9375rem;
}

.deu-dr-no-results svg {
    display: block;
    margin: 0 auto 10px;
    opacity: .4;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .deu-dr-result-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .deu-dr-result-photo {
        width: 52px;
        height: 52px;
    }

    .deu-dr-result-badge {
        display: none;
    }
}

/* ── Doktor Vurgulama (Glow Effect) ── */
@keyframes deuDrGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.6); }
    50% { box-shadow: 0 0 20px 10px rgba(0, 86, 179, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0); }
}

.deu-dr-highlight-glow {
    animation: deuDrGlow 2s infinite !important;
    border: 2px solid #0056b3 !important;
    border-radius: 8px !important;
    position: relative;
    z-index: 10;
}