/* ==========================================================================
   Search Page Styles - Modern Clash of Clans Gaming Theme
   CocBase.Net
   ========================================================================== */

/* Hero Section */
.search-hero-section {
    padding: 1.5rem 0 1rem;
    position: relative;
}

.search-hero-header {
    margin-bottom: 1.25rem;
}

.search-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    background: rgba(78, 137, 232, 0.12);
    border: 1px solid rgba(78, 137, 232, 0.25);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.search-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 0.4rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.search-hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 680px;
    margin: 0;
    line-height: 1.5;
}

/* Main Search Deck Card */
.search-deck-card {
    background: var(--card-bg, #161c28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

/* Main Search Input Group */
.search-input-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 18px;
    color: #60a5fa;
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 2;
}

.search-input-field {
    width: 100%;
    height: 52px;
    padding: 10px 16px 10px 50px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s ease;
}

.search-input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input-field:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: #4e89e8 !important;
    box-shadow: 0 0 0 3px rgba(78, 137, 232, 0.25) !important;
    outline: none;
}

.btn-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 52px;
    background: linear-gradient(135deg, #4e89e8 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.96rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    white-space: nowrap;
    text-decoration: none;
}

.btn-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
    filter: brightness(1.08);
    color: #ffffff;
}

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

/* Deck Divider */
.search-deck-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(78, 137, 232, 0.25) 50%, rgba(255, 255, 255, 0.06) 100%);
    margin: 20px 0 18px;
}

/* Filter Controls */
.search-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.search-filter-label i {
    font-size: 0.92rem;
}

.search-select {
    height: 46px;
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    font-size: 0.9rem;
    padding: 8px 36px 8px 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 12px !important;
}

.search-select:hover {
    border-color: rgba(78, 137, 232, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.search-select:focus {
    border-color: #4e89e8 !important;
    box-shadow: 0 0 0 3px rgba(78, 137, 232, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    outline: none;
}

.search-select option {
    background-color: #161c28;
    color: #f1f5f9;
    padding: 8px;
}

.search-select:disabled,
.search-select.bg-light {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.builder-hall-type-warning {
    font-size: 0.78rem;
    color: #fbbf24;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* Bottom Stats & Clear Bar */
.search-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.search-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.search-stats-badge strong {
    color: #93c5fd;
    font-weight: 700;
}

.btn-search-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 50px;
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-search-reset:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Empty State */
.search-empty-card {
    background: var(--card-bg, #161c28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin: 1.5rem 0;
}

.search-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(78, 137, 232, 0.1);
    border: 1px solid rgba(78, 137, 232, 0.2);
    color: #60a5fa;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.search-empty-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.search-empty-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.96rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .search-deck-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .search-hero-title {
        font-size: 1.7rem;
    }

    .search-input-row {
        flex-direction: column;
    }

    .btn-search-submit {
        width: 100%;
        height: 48px;
    }

    .search-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
