﻿.open-search-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 2rem;
    background-color: var(--neutral-1A1818);
    color: var(--neutral-FFFFFF);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: var(--fw-medium);
}

#searchOverlay {
    position: fixed;
    top: 31px;
    left: 0;
    width: 100%;
    height: 100dvh;
    /*overflow: hidden;*/
    z-index: 1055;
    display: none;
    flex-direction: column;
    background-color: var(--neutral-F5F5F5);
    overflow-y: auto;
}

.search-top-section {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--neutral-F5F5F5);
}

/* Başlık (Header) */
.search-header {
    border-bottom: 1px solid var(--neutral-E0E0E0);
    padding:0 clamp(36px,9vw,120px);
}
.search-header .header-container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1350px;
    width:100%;
    margin:0 auto;
    height:58px;
}

.search-title {
    font-weight: var(--fw-semibold);
    color: var(--neutral-1A1818);
    font-size: var(--df-text-fs-16);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: 1px solid var(--neutral-E0E0E0);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neutral-1A1818);
}

.search-middle {
    padding: clamp(20px,4.5vw,60px) clamp(36px, 9vw, 120px);
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
    justify-content: center;
    transition: .25s ease;
    transform: translateY(0);
}

.search-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Input Wrapper & Input */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(6px,1vw,10px);
    border: 1px solid var(--neutral-E0E0E0);
    border-radius: 4px;
    outline: none;
    background-color: var(--neutral-FFFFFF);
    transition: all .2s ease;
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    color: var(--neutral-1A1818);
    font-size: var(--df-text-fs-16);
    background: transparent;
}

    .search-input::placeholder {
        color: var(--neutral-858585);
    }
    .search-input:focus {
        border-color:transparent;
        box-shadow:none;
    }

.search-middle.has-results .input-wrapper {
    border-color: #f53d46;
    box-shadow: 0 0 0 1px var(--red-FEECED);
}

/* Input İçi Butonlar */
.input-controls {
    display: flex;
    gap: 0.25rem;
}

.input-btn {
    background: none;
    border: 1px solid var(--neutral-E0E0E0);
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neutral-1A1818);
    transition: background-color 0.2s;
}

    .input-btn:hover {
        background-color: var(--neutral-F5F5F5);
    }

.clear-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .2s ease;
}

.clear-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Arama Sonuçları Alanı */
.results-wrapper {
    display: none;
    margin-top: clamp(20px,3.4vw,45px);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 15px;
    margin-right: -15px;
    scrollbar-width: thin;
    scrollbar-color: rgb(5 6 5) transparent;
}

.results-title {
    font-size: var(--df-text-fs-14);
    font-weight: var(--fw-medium);
    color: var(--neutral-666666);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Result Item - Responsive (Mobile & Desktop) */
.result-item {
    display: flex;
    flex-direction: column; /* Mobilde alt alta */
    padding: 15px 0;
    border-bottom: 1px solid var(--neutral-E0E0E0);
    text-decoration: none;
    color: var(--neutral-1A1818);
    gap: 0.5rem;
    font-size: var(--df-text-fs-16)
}

    .result-item:hover {
        background-color: var(--neutral-FEECED);
    }

    /* Highlight için bold class */
    .result-item strong {
        font-weight: var(--fw-bold);
    }

/* Mobil/Desktop Breadcrumb Taşıyıcısı */
.result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: var(--df-text-fs-12);
}

.result-breadcrumb {
    font-size: 0.85rem;
    color: var(--neutral-666666);
}

.result-icon {
    color: var(--neutral-858585);
}

/* Desktop Breakpoint */
@media (min-width: 768px) {
    .result-item {
        flex-direction: row; /* Desktopta yan yana */
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .result-meta {
        width: auto;
        justify-content: flex-end; 
        gap: 1.5rem;
    }
}

/* Alt Koyu Alan (Sıkça Yapılan Aramalar) */
.search-bottom-section {
    background-color: var(--neutral-292929);
    padding: 4rem clamp(36px,9vw,120px);
    flex-shrink: 0;
    min-height: 40vh;
}

.bottom-container {
    max-width: 800px;
    margin: 0 auto;
}

.frequent-grid {
    display: grid;
    justify-content:space-between;
    gap:0 10px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 992px) {
    .frequent-grid {
        grid-template-columns: repeat(3, 1fr);
        
    }
}
@media (max-width: 992px) {
    .frequent-grid {
        max-height: 25vh;
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-color: rgb(102 102 102) transparent;
    }
}

.frequent-title {
    font-size: var(--df-text-fs-14);
    color: var(--neutral-666666);
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    pointer-events: none;
}

.frequent-link {
    display: flex;
    font-size: var(--df-text-fs-16);
    align-items: center;
    color: var(--neutral-858585);
    text-decoration: none;
    margin-bottom: clamp(14px, calc(30px - 1vw), 26px);
    transition: color 0.2s ease;
}

    .frequent-link:hover,
    .frequent-link:hover .frequent-icon {
        color: var(--neutral-E0E0E0);
    }

.frequent-icon {
    border: 1px solid var(--neutral-FFFFFF);
    border-radius: 4px;
    width: clamp(28px,2.4vw,32px);
    min-width: clamp(28px,2.4vw,32px);
    height: clamp(28px,2.4vw,32px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--neutral-666666);
    transition: color 0.2s ease;
}
.frequent-icon svg{
    width: clamp(14px,1.2vw,16px);
    height: clamp(14px,1.2vw,16px);
}
.frequent-title svg {
    transform: rotate(180deg);
    transition: .25s ease-out all;
}

.frequent-title.collapsed svg {
    transform:rotate(0deg);
}

@media (max-width: 768px) {
    .frequent-title {
        user-select: auto;
        pointer-events: auto;
    }
}

.null-search{
    width:clamp(30px,3vw,40px);
    height:clamp(30px,3vw,40px);
}