/* ============================================
   LIST PAGES — SHARED BASE STYLES
   ============================================
   Shared across: explore_list, servers_list.
   Import variables.css before this.
   ============================================ */

/* ===================== MINI HERO ===================== */
.list-hero {
    background: var(--hero-gradient);
    padding: 3rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.list-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.list-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.list-hero .container {
    position: relative;
    z-index: 2;
}
.list-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.3rem;
}
.list-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
}

/* ===================== HERO SEARCH ===================== */
.hero-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-width: 600px;
    margin-bottom: -24px;
    position: relative;
    z-index: 5;
}
.hero-search .hs-select {
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
    cursor: pointer;
    min-width: 140px;
    border-right: 1px solid var(--border-light);
}
.hero-search .hs-select:focus { outline: none; }
.hero-search .hs-input {
    padding: 10px 14px;
    border: none;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
    min-width: 0;
}
.hero-search .hs-input:focus { outline: none; }
.hero-search .hs-input::placeholder { color: var(--text-muted); }
.hero-search .hs-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.hero-search .hs-btn:hover { background: var(--primary-hover); }

@media (max-width: 575px) {
    .hero-search { flex-wrap: wrap; }
    .hero-search .hs-select { border-right: none; border-bottom: 1px solid var(--border-light); width: 100%; }
    .hero-search .hs-input { width: 100%; }
    .hero-search .hs-btn { width: 100%; justify-content: center; }
}

/* ===================== SEARCH BADGES ===================== */
.search-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.search-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(26,138,106,0.08);
    border: 1px solid rgba(26,138,106,0.15);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
}
.search-badge strong { color: var(--primary-darkest); }
.search-badge .remove-search {
    cursor: pointer;
    font-size: 0.82rem;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    line-height: 1;
}
.search-badge .remove-search:hover { opacity: 1; }

/* ===================== QUICK CHIPS ===================== */
.quick-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1.5px solid var(--border-default);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--body-text);
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}
.quick-chip:hover,
.quick-chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26,138,106,0.04);
    text-decoration: none;
}
.quick-chip i {
    font-size: 0.72rem;
}

/* ===================== LIST BAR (shared structure) ===================== */
.list-bar {
    background: #fff;
    padding: 1.8rem 0 0.8rem;
    border-bottom: 1px solid var(--border-light);
}
.list-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.8rem;
}
.list-bar-count {
    font-size: 0.85rem;
    color: var(--body-text);
}
.list-bar-count strong {
    color: var(--primary);
    font-weight: 800;
}

/* ===================== NO RESULTS ===================== */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
}
.no-results i {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 0.8rem;
    display: block;
}
.no-results h5 {
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 0.2rem;
}
.no-results p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================== PAGINATION (shared base) ===================== */
.list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.5rem 2rem;
    flex-wrap: wrap;
}
.list-pagination .page-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--border-default);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.list-pagination .page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}
.list-pagination .page-btn.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.list-pagination .page-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
    margin-top: 0.3rem;
}

/* ===================== TIPS SECTION ===================== */
.list-tips {
    background: var(--hero-gradient);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.list-tips::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.list-tips::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.list-tips .container {
    position: relative;
    z-index: 2;
}
.list-tips-header {
    text-align: center;
    margin-bottom: 2rem;
}
.list-tips-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}
.list-tips-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.tip-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.4rem;
    height: 100%;
    transition: all var(--transition-base);
    text-align: center;
}
.tip-card:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-4px);
}
.tip-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-pale);
    margin: 0 auto 0.9rem;
}
.tip-card h6 {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.35rem;
}
.tip-card p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin: 0;
}

/* ===================== CTA SECTION ===================== */
.list-cta {
    padding: 3rem 0;
    background: #fff;
}
.list-cta .cta-box {
    background: var(--bg-section);
    border-radius: var(--card-radius-lg);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.list-cta .cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(26,138,106,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}
.list-cta .cta-body {
    flex: 1;
}
.list-cta .cta-body h4 {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--heading);
    margin: 0 0 0.3rem;
}
.list-cta .cta-body p {
    font-size: 0.88rem;
    color: var(--body-text);
    margin: 0;
    line-height: 1.5;
}
.list-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}
.list-cta .cta-btn:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(26,138,106,0.3);
}

@media (max-width: 767px) {
    .list-cta .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 2rem 1.5rem;
    }
}

/* ===================== LOADING SPINNER ===================== */
#spinner:not([hidden]) {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}
#spinner::after {
    content: "";
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-default);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
