/* ── TickHosting Server List Styles ── */

:root { --accent-orange: #f97316; }

/* ── Nav active link ── */
.navbar .menu a.active { color: #fff; }

/* ── Hero ── */
.sl-hero {
    text-align: center;
    padding: 80px 20px 40px;
}
.sl-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.sl-hero p { color: var(--text-muted); font-size: 1.1rem; }

/* ── Filter bar ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 0 20px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.filter-bar input[type="search"] {
    flex: 1 1 260px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.filter-bar input[type="search"]:focus { border-color: rgba(255,255,255,0.25); }
.filter-bar select {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}
.filter-bar button.filter-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.filter-bar button.filter-btn:hover { background: rgba(255,255,255,0.12); }
.filter-bar a.sort-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.filter-bar a.sort-link.active,
.filter-bar a.sort-link:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.06);
    border-color: var(--border);
}

/* ── Grid ── */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
@media(max-width: 600px) {
    .server-grid { grid-template-columns: 1fr; }
}

/* ── Server card ── */
/* Override the .server-card rule from style.css (used by the HUD panel) */
.server-grid .server-card {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 100% !important;
    min-height: unset !important;
    z-index: auto !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.server-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s var(--ease-apple), border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.server-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.16);
}
.server-card.featured { border-color: rgba(249,115,22,0.4); }
.card-banner {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #1c1c1f 0%, #0e0e10 100%);
    display: block;
}
.card-banner-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, rgba(249,115,22,0.08) 0%, rgba(249,115,22,0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.1);
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.card-top > div { flex-shrink: 0; }
.card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.card-name:hover { color: #fff; }
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-meta .badge-row { flex: 1; min-width: 0; }
.card-meta .status-dot-server { flex-shrink: 0; min-width: max-content; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: capitalize;
}
.badge-featured { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.25); }
.badge-gametype { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }
.badge-tag { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid transparent; }
.status-dot-server {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}
.status-dot-server::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6b7280;
    flex-shrink: 0;
}
.status-dot-server.online { color: #10b981; }
.status-dot-server.online::before { background: #10b981; box-shadow: 0 0 5px #10b981; }
.status-dot-server.offline { color: #6b7280; }
.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-stats {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.card-stats span { display: flex; align-items: center; gap: 4px; }
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    gap: 8px;
}
.btn-vote {
    padding: 7px 16px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.25);
    color: #f97316;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-vote:hover { background: rgba(249,115,22,0.18); border-color: rgba(249,115,22,0.4); }
.btn-view {
    padding: 7px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-view:hover { background: rgba(255,255,255,0.1); }

/* ── Pagination ── */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 20px 80px;
}
.pagination-wrap a, .pagination-wrap span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
}
.pagination-wrap a:hover { background: rgba(255,255,255,0.08); }
.pagination-wrap span.active-page {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; display: block; opacity: 0.3; }
.empty-state h3 { color: var(--text-main); font-size: 1.2rem; margin-bottom: 8px; }

/* ── Footer ── */
.sl-footer {
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.sl-footer a { color: var(--text-muted); text-decoration: none; margin: 0 10px; transition: color 0.2s; }
.sl-footer a:hover { color: var(--text-main); }

/* ── Individual server page ── */
.server-hero {
    padding: 60px 20px 0;
    max-width: 900px;
    margin: 0 auto;
}
.server-hero-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.server-banner-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 480px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.server-banner-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.server-banner-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(249,115,22,0.08) 0%, rgba(249,115,22,0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
}
.server-info { flex: 1 1 280px; }
.server-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}
.server-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.server-content {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px 80px;
}
.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}
.content-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}
.review-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
    flex-wrap: wrap;
}
.review-author { font-size: 0.85rem; font-weight: 600; }
.review-stars { color: #f97316; font-size: 0.85rem; letter-spacing: 1px; }
.review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-body { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.vote-section {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(249,115,22,0.06) 0%, rgba(249,115,22,0.02) 100%);
    border: 1px solid rgba(249,115,22,0.15);
    border-radius: 14px;
    margin-bottom: 24px;
}
.vote-count-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f97316;
    line-height: 1;
    margin-bottom: 4px;
}
.vote-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.btn-primary {
    display: inline-block;
    padding: 10px 28px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    font-family: var(--font);
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    font-family: var(--font);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.review-form textarea {
    width: 100%;
    background: var(--surface-highlight);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 12px 16px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.review-form textarea:focus { border-color: rgba(255,255,255,0.25); }
.star-select { display: flex; gap: 6px; margin-bottom: 12px; }
.star-select input[type="radio"] { display: none; }
.star-select label {
    font-size: 1.4rem;
    color: #3f3f46;
    cursor: pointer;
    transition: color 0.15s;
}
.star-select input[type="radio"]:checked ~ label,
.star-select label:hover,
.star-select label:hover ~ label { color: #f97316; }
.star-select { flex-direction: row-reverse; justify-content: flex-end; }
