/* =========================================================
   SERVER SELECTOR — /servers
   Loaded after public.css.
   ========================================================= */

.selector {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.selector__head {
    max-width: 620px;
    margin: 0 auto 40px;
    text-align: center;
}

.selector__head h1 {
    font-size: 30px;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

.selector__head p {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.server-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.15s ease;
}

.server-card:hover { border-color: var(--border-strong); }

.server-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-elevated);
    flex: none;
    object-fit: cover;
}

.server-card__icon--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-weight: 700;
    font-size: 16px;
    border: 1px solid var(--border);
}

.server-card__name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.server-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
}

.server-card__status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.server-card__status--ready { color: var(--accent); background: var(--accent-soft); }
.server-card__status--not-installed { color: #e6b83c; background: rgba(230, 184, 60, 0.12); }
.server-card__status--beta-locked { color: var(--text-faint); background: rgba(255, 255, 255, 0.06); }

.server-card__actions { margin-top: auto; }

.selector-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    padding: 64px 16px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

.selector-state--error { color: #ef6a6a; }

.selector-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.selector-skeleton__card {
    height: 128px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 37%, var(--surface) 63%);
    background-size: 400% 100%;
    animation: selector-shimmer 1.4s ease infinite;
    border: 1px solid var(--border);
}

@keyframes selector-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .selector-skeleton__card { animation: none; }
}
