/*
 * Arcade Direct — Search UX refinements
 * Design reminder: calm navy search surfaces, explicit teal focus, white typed text,
 * and 44px touch targets. This file is intentionally limited to site-wide search UI.
 */

.site-header .header-search__input {
    min-height: 48px;
    padding-right: 3.75rem;
    background-color: rgba(255, 255, 255, 0.10);
    border-color: rgba(211, 227, 227, 0.42);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
}

.site-header .header-search__input::placeholder {
    color: #d3e3e3;
    opacity: 1;
}

.site-header .header-search__input::-webkit-search-cancel-button,
.site-header .header-search__input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.site-header .header-search:focus-within .header-search__input {
    background-color: #222f45;
    border-color: #35bb9d;
    box-shadow: 0 0 0 3px rgba(53, 187, 157, 0.34);
    outline: none;
}

.site-header .header-search__clear {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0.25rem;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #d3e3e3;
    cursor: pointer;
    transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.site-header .header-search__clear[hidden] {
    display: none !important;
}

.site-header .header-search__clear svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.25;
}

.site-header .header-search__clear:hover {
    border-color: rgba(53, 187, 157, 0.55);
    background-color: rgba(53, 187, 157, 0.16);
    color: #ffffff;
}

.site-header .header-search__clear:focus-visible {
    border-color: #35bb9d;
    outline: 3px solid rgba(211, 227, 227, 0.94);
    outline-offset: 2px;
    background-color: #26927a;
    color: #ffffff;
}

.site-header .header-search__clear:active {
    transform: translateY(-50%) scale(0.96);
}

@media (max-width: 48rem) {
    .mobile-search-bar .header-search__input {
        min-height: 48px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .header-search__clear {
        transition: none;
    }
}


/* Arcade Direct search UX r3: explicit icon-to-text clearance */
.site-header .header-search .header-search__input {
    padding-left: 4.25rem !important;
    padding-inline-start: 4.25rem !important;
    text-indent: 0 !important;
}
