/* ============================================
   ARAMA SAYFASI
   ============================================ */

/* Search hero */
.search-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--sunset-700));
    padding: 60px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(251, 191, 36, 0.15), transparent 60%);
}

.search-hero > .container {
    position: relative;
    z-index: 1;
}

.search-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 12px;
    text-align: center;
}

.search-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, var(--gold-300, #FCD34D), var(--sunset-300, #FB923C));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    text-align: center;
    margin-bottom: 32px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(11, 20, 38, 0.35);
}

.search-bar svg {
    color: var(--muted, #64748B);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    border: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink, #0F1629);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--muted-soft, #94A3B8);
}

.search-clear {
    background: var(--paper-warm, #F0EBE0);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--muted, #64748B);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.search-clear:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* Results section */
.search-results-section {
    padding: 40px 0 80px;
    background: var(--paper, #F8F5EF);
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* Filter sidebar */
.filter-sidebar {
    background: white;
    border: 1px solid var(--line, rgba(15, 22, 41, 0.08));
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line, rgba(15, 22, 41, 0.08));
}

.filter-head h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900, #0B1426);
    letter-spacing: -0.01em;
}

.filter-reset {
    background: none;
    border: none;
    color: var(--sunset-500, #C2410C);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-reset:hover {
    color: var(--sunset-700, #9A3412);
    text-decoration: underline;
}

.filter-group {
    padding: 18px 0;
    border-bottom: 1px solid var(--line, rgba(15, 22, 41, 0.08));
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted, #64748B);
    margin-bottom: 12px;
}

/* Custom checkbox */
.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink, #0F1629);
    transition: color 0.2s;
}

.filter-check:hover {
    color: var(--sunset-500, #C2410C);
}

.filter-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-dot {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line-strong, rgba(15, 22, 41, 0.16));
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.filter-check input:checked + .check-dot {
    background: var(--sunset-500, #C2410C);
    border-color: var(--sunset-500, #C2410C);
}

.filter-check input:checked + .check-dot::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted-soft, #94A3B8);
    font-family: var(--font-mono);
}

.brand-filter {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Price range */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-input-wrap {
    flex: 1;
    position: relative;
}

.price-input-wrap span {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 10px;
    color: var(--muted-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.price-input-wrap input {
    width: 100%;
    padding: 22px 10px 8px;
    border: 1.5px solid var(--line-strong, rgba(15, 22, 41, 0.16));
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--navy-900);
    transition: border-color 0.2s;
}

.price-input-wrap input:focus {
    outline: none;
    border-color: var(--sunset-400, #EA580C);
}

.price-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.preset-btn {
    padding: 8px 10px;
    background: var(--cream, #FAFAF7);
    border: 1px solid var(--line, rgba(15, 22, 41, 0.08));
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted, #64748B);
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: var(--navy-900);
    color: white;
    border-color: var(--navy-900);
}

/* Results top bar */
.results-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--line, rgba(15, 22, 41, 0.08));
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count {
    font-size: 14px;
    color: var(--muted, #64748B);
    font-weight: 500;
}

.results-count span {
    font-weight: 700;
    color: var(--navy-900);
    font-size: 16px;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-sort label {
    font-size: 13px;
    color: var(--muted, #64748B);
    font-weight: 500;
}

.results-sort select {
    padding: 8px 14px;
    border: 1px solid var(--line-strong, rgba(15, 22, 41, 0.16));
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: var(--navy-900);
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.results-sort select:hover {
    border-color: var(--sunset-400, #EA580C);
}

/* Active filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.active-filter-chip {
    padding: 6px 12px;
    background: var(--sunset-100, #FED7AA);
    color: var(--sunset-900, #7C2D12);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.active-filter-chip:hover {
    background: var(--sunset-400, #EA580C);
    color: white;
}

.active-filter-chip .chip-remove {
    font-size: 11px;
    opacity: 0.7;
}

/* Result grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.result-card {
    background: white;
    border: 1px solid var(--line, rgba(15, 22, 41, 0.08));
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-4px);
    border-color: var(--sunset-400, #EA580C);
    box-shadow: 0 16px 40px rgba(11, 20, 38, 0.08);
}

.result-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--cream, #FAFAF7), var(--paper-warm, #F0EBE0));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

.result-image svg {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.result-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: #7C2D12;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.result-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.result-brand {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.result-model {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy-900, #0B1426);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.result-specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.result-spec {
    padding: 3px 10px;
    background: var(--cream);
    border-radius: 6px;
    font-size: 11px;
    color: var(--muted, #64748B);
    font-weight: 500;
}

.result-price {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line, rgba(15, 22, 41, 0.08));
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.result-price-value {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--sunset-500, #C2410C);
    letter-spacing: -0.01em;
}

.result-saving {
    font-size: 11px;
    color: #047857;
    font-weight: 600;
}

/* Empty state */
.no-results {
    background: white;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
}

.no-results-icon {
    color: var(--muted-soft, #94A3B8);
    opacity: 0.5;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-900, #0B1426);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--muted, #64748B);
    max-width: 420px;
    margin: 0 auto 24px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .search-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; max-height: none; }
}

@media (max-width: 768px) {
    .search-hero { padding: 40px 0 50px; }
    .results-top { flex-direction: column; align-items: stretch; }
    .results-top > * { justify-content: space-between; }
    .results-sort { display: flex; justify-content: space-between; }
    .result-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .result-image { aspect-ratio: 16/12; padding: 12px; }
    .result-model { font-size: 15px; }
    .result-content { padding: 12px 14px; }
    .no-results { padding: 48px 24px; }
    .price-inputs { flex-direction: column; }
    .price-presets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .result-grid { grid-template-columns: 1fr; }
}
