/* ==========================================================================
   Flanör — Global Search (header sağ üst)
   Toggle button + slide-down panel + dropdown sonuçları
   ========================================================================== */

.flanor-search {
    position: fixed;
    top: 14px;
    right: 70px; /* bell'in solunda */
    z-index: 9988;
}

.flanor-search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2B2D31;
    border: 1px solid #3F4147;
    color: #DBDEE1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-family: inherit;
}

.flanor-search-toggle:hover {
    background: #34373D;
    border-color: #5865F2;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.flanor-search-panel {
    position: fixed;
    top: 64px;
    right: 18px;
    width: 420px;
    max-width: calc(100vw - 36px);
    background: #1E1F22;
    border: 1px solid #3F4147;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
}

.flanor-search-panel.open {
    transform: translateY(0);
    opacity: 1;
}

.flanor-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #2B2D31;
    background: #2B2D31;
}

.flanor-search-icon {
    flex-shrink: 0;
    color: #80848E;
}

.flanor-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #F2F3F5;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    padding: 4px 0;
}

.flanor-search-input::-webkit-search-cancel-button {
    display: none;
}

.flanor-search-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #B5BAC1;
    border: none;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flanor-search-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.flanor-search-results {
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px 0;
}

.fs-section {
    padding: 4px 0;
    border-bottom: 1px solid #2B2D31;
}

.fs-section:last-child {
    border-bottom: none;
}

.fs-section-title {
    color: #80848E;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 16px 4px;
}

.fs-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.fs-item:hover {
    background: #2B2D31;
}

.fs-item-emoji {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #2B2D31;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.fs-item-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #2B2D31;
}

.fs-item-text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fs-item-text strong {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fs-item-sub {
    color: #B5BAC1;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fs-item mark {
    background: rgba(88, 101, 242, 0.30);
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
}

.fs-hint {
    text-align: center;
    color: #80848E;
    font-size: 13px;
    padding: 28px 16px;
    line-height: 1.5;
}

.fs-loading::before {
    content: '⏳ ';
}

.fs-empty {
    color: #B5BAC1;
}

@media (max-width: 768px) {
    .flanor-search {
        top: 10px;
        right: 56px;
    }
    .flanor-search-toggle {
        width: 36px;
        height: 36px;
    }
    .flanor-search-panel {
        width: calc(100vw - 24px);
        right: 12px;
        top: 56px;
    }
    .fs-section-title { padding: 8px 14px 4px; }
    .fs-item { padding: 8px 14px; }
}
