/* FiveM server list — geïnspireerd op servers.fivem.net, URP branding */
.servers-page {
    padding: 100px 24px 48px;
    min-height: 100vh;
}

.cfx-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.cfx-sidebar {
    background: rgba(14, 14, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: 96px;
}

.cfx-sidebar h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.cfx-search {
    width: 100%;
    padding: 0.65rem 0.85rem 0.65rem 2.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.cfx-search-wrap {
    position: relative;
}

.cfx-search-wrap i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.85rem;
}

.cfx-filter-group {
    margin-bottom: 1rem;
}

.cfx-filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #d1d5db;
    margin-bottom: 0.4rem;
    cursor: pointer;
}

.cfx-filter-group input {
    accent-color: #f40552;
}

.cfx-sidebar-note {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.45;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cfx-main-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cfx-main-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.cfx-main-header h1 span {
    color: #f40552;
}

.cfx-main-header p {
    font-size: 0.85rem;
    color: #9ca3af;
}

.cfx-server-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cfx-server {
    display: grid;
    grid-template-columns: 6px 1fr auto;
    align-items: stretch;
    background: rgba(18, 18, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.15s;
}

.cfx-server:hover {
    border-color: rgba(244, 5, 82, 0.35);
    transform: translateY(-1px);
}

.cfx-server.offline {
    opacity: 0.75;
}

.cfx-server-accent {
    background: linear-gradient(180deg, #f40552, #ff6b35);
}

.cfx-server.offline .cfx-server-accent {
    background: #4b5563;
}

.cfx-server-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    flex: 1;
    min-width: 0;
}

.cfx-server-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cfx-server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfx-server-info {
    flex: 1;
    min-width: 0;
}

.cfx-server-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cfx-server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.cfx-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(244, 5, 82, 0.15);
    color: #fda4af;
    border: 1px solid rgba(244, 5, 82, 0.25);
}

.cfx-tag.lang {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}

.cfx-server-desc {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cfx-server-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 120px;
}

.cfx-players {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4ade80;
}

.cfx-server.offline .cfx-players {
    color: #9ca3af;
}

.cfx-players i {
    font-size: 0.75rem;
}

.cfx-connect {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #f40552;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: filter 0.2s;
}

.cfx-connect:hover {
    filter: brightness(1.1);
}

.cfx-connect.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1d5db;
}

.cfx-empty {
    padding: 3rem;
    text-align: center;
    color: #9ca3af;
    background: rgba(18, 18, 20, 0.6);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.cfx-powered {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.cfx-powered a {
    color: #9ca3af;
}

.cfx-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.cfx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cfx-page-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(244, 5, 82, 0.15);
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}

.cfx-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cfx-server.featured {
    border-color: rgba(244, 5, 82, 0.45);
}

.cfx-tag.featured {
    background: rgba(244, 5, 82, 0.35);
    color: #fff;
}

.cfx-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #6b7280;
    font-size: 1.25rem;
}

.cfx-server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .cfx-layout {
        grid-template-columns: 1fr;
    }
    .cfx-sidebar {
        position: static;
    }
    .cfx-server {
        grid-template-columns: 4px 1fr;
    }
    .cfx-server-side {
        grid-column: 2;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: space-between;
        width: 100%;
    }
}
