/* ═══════════════════════════════════════════════════════════════
   GUMUSALL — BÜYÜTEÇ ARAMA PANELİ
   Üst bardaki geniş arama kutusu gizlenir, yerine tek büyüteç
   düğmesi gelir; tıklanınca tam ekran arama paneli açılır.
   ═══════════════════════════════════════════════════════════════ */

/* ── Üst bardaki eski arama kutusunu gizle ─────────────────────── */
.top-nav-search {
    display: none !important;
}

/* ── Büyüteç düğmesi ───────────────────────────────────────────── */
.nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(18, 41, 63, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #12293f;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-search-btn:hover,
.nav-search-btn:focus-visible {
    background: #fff;
    border-color: rgba(18, 41, 63, 0.34);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(38, 50, 70, 0.1);
}

.nav-search-btn:active {
    transform: translateY(0);
}

/* ── Panel katmanı ─────────────────────────────────────────────── */
.gs-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(56px, 12vh, 130px) 18px 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gs-overlay.is-visible {
    opacity: 1;
}

.gs-overlay[hidden] {
    display: none;
}

.gs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 22, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.gs-open {
    overflow: hidden;
}

/* ── Panel gövdesi ─────────────────────────────────────────────── */
.gs-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: min(74vh, 720px);
    display: flex;
    flex-direction: column;
    padding: 22px 22px 10px;
    border-radius: 26px;
    background: #fffdfa;
    box-shadow: 0 34px 80px rgba(8, 14, 22, 0.34);
    transform: translateY(-14px) scale(0.985);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-overlay.is-visible .gs-panel {
    transform: translateY(0) scale(1);
}

.gs-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(18, 41, 63, 0.07);
    color: #12293f;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gs-close:hover,
.gs-close:focus-visible {
    background: rgba(18, 41, 63, 0.14);
}

/* ── Arama alanı ───────────────────────────────────────────────── */
.gs-field {
    position: relative;
    display: flex;
    align-items: center;
    margin: 8px 44px 4px 0;
}

.gs-field-icon {
    position: absolute;
    left: 18px;
    font-size: 16px;
    color: rgba(18, 41, 63, 0.45);
    pointer-events: none;
}

.gs-input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 48px;
    border: 1px solid rgba(18, 41, 63, 0.14);
    border-radius: 16px;
    background: #f7f4ef;
    font-size: 16px;
    color: #12293f;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.gs-input::placeholder {
    color: rgba(18, 41, 63, 0.42);
}

.gs-input:focus {
    border-color: rgba(18, 41, 63, 0.34);
    background: #fff;
}

/* search input'un tarayıcı temizleme çarpısını gizle */
.gs-input::-webkit-search-decoration,
.gs-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* ── Sonuç alanı ───────────────────────────────────────────────── */
.gs-results-box {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 2px 14px;
    overscroll-behavior: contain;
}

.gs-hint {
    margin: 12px 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(18, 41, 63, 0.5);
}

.gs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 4px 8px;
}

.gs-chip {
    padding: 9px 16px;
    border: 1px solid rgba(18, 41, 63, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #12293f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.gs-chip:hover,
.gs-chip:focus-visible {
    background: #12293f;
    border-color: #12293f;
    color: #fff;
}

.gs-results {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* menuyatay.css'te tüm sayfalarda geçerli bir "ul li { display:inline-block;
   width:200px; background:#f3e8d8 }" kuralı var — panel içinde etkisiz kıl. */
.gs-results li,
.gs-results li:hover {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    transition: none;
}

.gs-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.16s ease;
}

.gs-result:hover,
.gs-result:focus-visible {
    background: rgba(18, 41, 63, 0.06);
}

.gs-result-img {
    width: 56px;
    height: 56px;
    flex: none;
    object-fit: cover;
    border-radius: 12px;
    background: #f1ece4;
}

.gs-result-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gs-result-name {
    font-size: 15px;
    font-weight: 600;
    color: #12293f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-result-meta {
    font-size: 12.5px;
    color: rgba(18, 41, 63, 0.55);
    text-transform: capitalize;
}

.gs-result-price {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 14px;
}

.gs-price-old {
    font-size: 12px;
    color: rgba(18, 41, 63, 0.42);
    text-decoration: line-through;
}

.gs-price-now {
    font-weight: 700;
    color: #12293f;
}

/* ── Boş durum ─────────────────────────────────────────────────── */
.gs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 16px 34px;
    text-align: center;
    color: rgba(18, 41, 63, 0.6);
}

.gs-empty i {
    font-size: 26px;
    color: rgba(18, 41, 63, 0.28);
}

.gs-empty p {
    margin: 0;
    font-size: 15px;
}

.gs-empty-link {
    margin-top: 4px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #12293f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.gs-empty-link:hover {
    background: #1b3a58;
}

/* ≤520px'te eski CSS üst navdan markayı da gizliyordu; arama kutusu
   kaldırıldığı için bar boş kalmasın diye markayı geri getiriyoruz. */
@media (max-width: 520px) {
    .top-nav {
        justify-content: space-between;
        gap: 10px;
    }

    .top-nav-brand {
        display: inline-block !important;
        flex: 1 1 auto;
        text-align: left;
        font-size: 1rem;
    }

    .nav-search-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ── Mobil ─────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .gs-overlay {
        padding: 0;
        align-items: stretch;
    }

    .gs-panel {
        width: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 18px 16px 8px;
        padding-top: max(18px, env(safe-area-inset-top));
    }

    .gs-field {
        margin-right: 42px;
    }

    .gs-input {
        height: 50px;
        font-size: 16px;
    }

    .gs-result-img {
        width: 50px;
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-overlay,
    .gs-panel {
        transition: none;
    }
}
