/* WORLD ARENA Public Search */

.wa-global-search {
    position: relative;
    display: flex;
    align-items: center;
}

.wa-global-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wa-global-search-inline {
    display: none;
    min-width: 220px;
}

.wa-global-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.wa-global-search-field--overlay .wa-global-search-input {
    font-size: 1rem;
    min-height: 48px;
}

.wa-global-search-icon {
    position: absolute;
    left: 0.85rem;
    opacity: 0.55;
    pointer-events: none;
}

.wa-global-search-input {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0.45rem 0.85rem 0.45rem 2.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font-family: inherit;
    font-size: 0.82rem;
}

.wa-global-search-input:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12);
}

.wa-global-search-mobile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    cursor: pointer;
}

.wa-global-search-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 120;
    max-height: 360px;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 28, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.wa-global-search-dropdown--overlay {
    position: static;
    max-height: none;
    margin-top: 0.75rem;
    border: none;
    background: transparent;
    box-shadow: none;
}

.wa-search-quick-item {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.85rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-search-quick-item:hover {
    background: rgba(249, 115, 22, 0.08);
}

.wa-search-quick-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.wa-search-quick-thumb--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #f97316;
}

.wa-search-quick-body h4 {
    margin: 0;
    font-size: 0.82rem;
}

.wa-search-quick-body p {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    opacity: 0.72;
}

.wa-search-quick-type {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f97316;
}

.wa-search-quick-footer {
    display: block;
    padding: 0.65rem 0.85rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f97316;
    text-decoration: none;
}

.wa-global-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.wa-global-search-overlay-panel {
    max-width: 720px;
    margin: 0 auto;
}

.wa-global-search-overlay-head {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.wa-global-search-overlay-head .wa-global-search-field {
    flex: 1;
}

.wa-global-search-close,
.wa-global-search-clear {
    border: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    opacity: 0.8;
}

.wa-global-search-clear {
    position: absolute;
    right: 0.65rem;
    font-size: 1.25rem;
    line-height: 1;
}

.wa-global-search-chips,
.wa-search-popular-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.wa-search-chip {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.wa-search-page {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

.wa-search-kicker {
    color: #f97316;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 0.35rem;
}

.wa-search-page-head h1 {
    margin: 0 0 0.35rem;
}

.wa-search-sub {
    opacity: 0.75;
    margin: 0 0 1.25rem;
}

.wa-search-page-form {
    margin-bottom: 1.5rem;
}

.wa-search-page-input-wrap {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.wa-search-page-input-wrap input {
    flex: 1;
    min-height: 46px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font-family: inherit;
}

.wa-search-page-submit {
    min-height: 46px;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.wa-search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
}

.wa-search-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.72rem;
    opacity: 0.8;
}

.wa-search-filters select,
.wa-search-filters input {
    min-height: 38px;
    padding: 0 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font-family: inherit;
}

.wa-search-count {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    opacity: 0.75;
}

.wa-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}

.wa-search-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 22, 38, 0.78);
    overflow: hidden;
    transition: border-color 0.15s;
}

.wa-search-card:hover {
    border-color: rgba(249, 115, 22, 0.35);
}

.wa-search-card-link {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.wa-search-card-media img,
.wa-search-card-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.wa-search-card-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #f97316;
}

.wa-search-card-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f97316;
    margin-bottom: 0.2rem;
}

.wa-search-card-body h3 {
    margin: 0;
    font-size: 0.95rem;
}

.wa-search-card-sub,
.wa-search-card-desc,
.wa-search-card-score {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    opacity: 0.75;
}

.wa-search-card-cta {
    font-size: 0.72rem;
    font-weight: 700;
    color: #f97316;
}

.wa-search-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.wa-search-empty-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.wa-search-popular h2,
.wa-search-popular-block h3 {
    margin: 0 0 0.75rem;
}

.wa-search-popular-block {
    margin-top: 1.5rem;
}

.wa-search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 1280px) {
    .wa-global-search-inline {
        display: block;
        min-width: 200px;
    }

    .wa-global-search-mobile-trigger {
        display: none;
    }
}

@media (max-width: 1279px) {
    .wa-global-search-inline {
        display: none;
    }

    .wa-global-search-mobile-trigger {
        display: inline-flex;
    }
}

body.wa-search-overlay-open {
    overflow: hidden;
}
