/* ============================================================
   OyuncuStore - Sipariş Arama & Filtreleme v2
   Woodmart Games Dark tema uyumlu - Sıfırdan yazıldı
   ============================================================ */

/* Filtre barı container */
.oacs-filter-bar {
    margin-bottom: 24px;
    padding: 0;
}

/* Üst satır: arama + filtreler */
.oacs-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   ARAMA KUTUSU
   ============================================================ */
.oacs-filter-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 380px;
}

/* Mercek ikonu - input'un solunda */
.oacs-filter-search .oacs-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--oacs-muted, rgba(255, 255, 255, 0.35));
    pointer-events: none;
    z-index: 1;
}

/* Arama input - sol padding mercek için, sağ padding X için */
.oacs-filter-search .oacs-search-input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 40px 0 44px;
    margin: 0;
    box-sizing: border-box;
    background: var(--oacs-bg-card, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--oacs-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--oacs-text, #fff);
    font-size: 13px;
    font-family: inherit;
    line-height: 40px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.oacs-filter-search .oacs-search-input::placeholder {
    color: var(--oacs-muted, rgba(255, 255, 255, 0.3));
    font-size: 13px;
}

.oacs-filter-search .oacs-search-input:focus {
    border-color: rgba(var(--oacs-accent-rgb, 0, 200, 150), 0.4);
    background: var(--oacs-bg-hover, rgba(255, 255, 255, 0.06));
}

/* X (temizle) butonu - input'un sağında */
.oacs-filter-search .oacs-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.oacs-filter-search .oacs-search-clear svg {
    width: 12px;
    height: 12px;
    display: block;
}

.oacs-filter-search .oacs-search-clear:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ============================================================
   FİLTRE SELECT'LER
   ============================================================ */
.oacs-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.oacs-filter-select {
    height: 40px;
    padding: 0 34px 0 14px;
    box-sizing: border-box;
    background-color: var(--oacs-bg-card, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--oacs-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--oacs-text, #fff);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.oacs-filter-select:focus {
    border-color: rgba(var(--oacs-accent-rgb, 0, 200, 150), 0.4);
}

.oacs-filter-select option {
    background: #1a1d23;
    color: #fff;
}

/* ============================================================
   SONUÇ BİLGİSİ + FİLTRELERİ TEMİZLE BUTONU
   ============================================================ */
.oacs-filter-results {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--oacs-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--oacs-border, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    font-size: 13px;
    color: var(--oacs-muted, rgba(255, 255, 255, 0.5));
}

.oacs-filter-results[style*="display: flex"],
.oacs-filter-results.oacs-visible {
    display: flex !important;
}

#oacs-result-count {
    flex: 1;
}

.oacs-filter-reset-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    background: rgba(var(--oacs-accent-rgb, 124, 120, 255), 0.1);
    border: 1px solid rgba(var(--oacs-accent-rgb, 124, 120, 255), 0.2);
    border-radius: 8px;
    color: var(--oacs-accent, #7c78ff);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.oacs-filter-reset-btn:hover {
    background: rgba(var(--oacs-accent-rgb, 124, 120, 255), 0.2);
    border-color: rgba(var(--oacs-accent-rgb, 124, 120, 255), 0.4);
    color: #fff;
}

/* ============================================================
   RESPONSIVE — Mobil
   ============================================================ */
@media (max-width: 767px) {
    .oacs-filter-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .oacs-filter-search {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .oacs-filter-controls {
        width: 100%;
    }

    .oacs-filter-select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .oacs-filter-controls {
        flex-direction: column;
        gap: 8px;
    }

    .oacs-filter-select {
        width: 100%;
    }
}
