/* Arama kutusu — ortada, yarısı hero üzerinde */

.search-box-wrapper {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 42%);
    z-index: 30;
    margin: 0;
    padding: 0;
}

.search-box {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 24px 64px rgba(15, 23, 42, 0.1),
        0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 32px;
    background: linear-gradient(180deg, #f8fafc 0%, #fafbfc 100%);
    border-bottom: 1px solid #eef2f6;
}

.search-tabs {
    display: flex;
    flex: 1;
    max-width: 520px;
    gap: 4px;
    background: #eef2f6;
    border-radius: 12px;
    padding: 4px;
}

.search-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
}

.search-tab.active {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(33, 150, 243, 0.08);
}

.search-tab:not(.active):hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
}

.search-tab:active {
    transform: scale(0.98);
}

.search-tab i { font-size: 14px; flex-shrink: 0; }

.search-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e8ecf0;
}

.search-live-dot {
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(33, 150, 243, 0); }
}

.search-live strong {
    color: var(--blue);
    font-weight: 700;
}

.search-body {
    padding: 26px 32px 22px;
}

.search-form {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.search-form.is-active {
    display: grid;
}

.search-form .form-group {
    position: relative;
    min-width: 0;
}

.search-form .form-group label,
.search-form .form-group__label-spacer {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 7px;
    line-height: 1.2;
    min-height: 13px;
}

.form-group__label-spacer {
    visibility: hidden;
    user-select: none;
}

.form-group-icon {
    position: absolute;
    left: 14px;
    bottom: 15px;
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s;
}

.form-group:focus-within .form-group-icon {
    color: var(--blue);
}

.form-control-custom {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #fff;
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-control-custom:hover:not(:focus) {
    border-color: #cbd5e1;
    background: #fcfdfe;
}

input.form-control-custom {
    cursor: text;
}

.form-group--submit .btn-search {
    width: 100%;
    height: 48px;
    margin: 0;
}

.btn-search {
    background: linear-gradient(135deg, var(--blue) 0%, #1565c0 100%);
    color: #fff;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.28);
    font-family: inherit;
}

.btn-search:hover {
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.38);
    transform: translateY(-1px);
}

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

.btn-search:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.search-popular {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 18px 32px 24px;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.search-popular-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 2px;
}

.search-popular-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    font-family: inherit;
}

.search-popular-tag:hover {
    background: rgba(33, 150, 243, 0.06);
    color: var(--blue);
    border-color: rgba(33, 150, 243, 0.25);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
    transform: translateY(-1px);
}

.search-popular-tag:active {
    transform: translateY(0);
}

.search-popular-tag i {
    font-size: 12px;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero-shell { padding-bottom: 120px; }
    .search-box-wrapper { transform: translate(-50%, 44%); }
    .search-header {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 12px;
    }
    .search-tabs { max-width: none; width: 100%; }
    .search-tab {
        padding: 8px 10px;
        font-size: 12px;
    }
    .search-live {
        justify-content: center;
        width: 100%;
        font-size: 12px;
    }
    .search-body { padding: 16px; }
    .search-form.is-active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .form-group--submit {
        grid-column: 1 / -1;
    }
    .search-popular {
        padding: 16px;
        justify-content: flex-start;
    }
    .section--after-search { padding-top: 140px; }
}

@media (max-width: 480px) {
    .hero-shell { padding-bottom: 100px; }
    .search-box-wrapper { transform: translate(-50%, 46%); }
    .search-box { border-radius: 16px; }
    .search-form.is-active {
        grid-template-columns: 1fr;
    }
    .form-group--submit {
        grid-column: auto;
    }
    .search-tab { font-size: 11px; padding: 8px 6px; }
    .search-tab i { display: none; }
    .section--after-search { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    .search-live-dot { animation: none; }
    .search-tab,
    .search-popular-tag,
    .btn-search { transition: none; }
}
