/* ═══════════════════════════════════════
   BACKGROUND
═══════════════════════════════════════ */

.background-image {
    filter: brightness(0.4);
}

html.darkmode .background-image,
.background-image.darkmode {
    background: url("../img/background_dark.png") center / cover no-repeat;
    filter: brightness(0.28);
}

html.lightmode .background-image,
.background-image.lightmode {
    background: url("../img/background_light.png") center / cover no-repeat;
    filter: brightness(0.4);
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 5rem;
}

.serverteam {
    width: 100%;
    max-width: min(960px, 100%);
    display: flex;
    justify-content: center;
}

.serverteam-inner {
    width: fit-content;
    max-width: 100%;
}

/* ═══════════════════════════════════════
   ROLE HEADING
═══════════════════════════════════════ */

.serverteam-inner h1 {
    font-family: 'Arvo', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid currentColor;
    width: 100%;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════
   PLAYER LIST
═══════════════════════════════════════ */

.serverteam-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    padding: 0;
    margin: 0;
}

/* ═══════════════════════════════════════
   LOADING STATE
═══════════════════════════════════════ */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


.team-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 0;
    transition: opacity 0.35s ease;
}

.team-loader.fade-out {
    opacity: 0;
}

.team-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--navigator_main);
    animation: spin 0.75s linear infinite;
}

.team-loader-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(241, 241, 241, 0.45);
    margin: 0;
}

/* ═══════════════════════════════════════
   PLAYER CARD
═══════════════════════════════════════ */

.serverteam-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 0.9rem 0.9rem;
    width: 140px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    animation: cardIn 0.35s ease backwards;
}

.serverteam-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════
   AVATAR
═══════════════════════════════════════ */

.serverteam-list img {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    image-rendering: pixelated;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.serverteam-card:hover img {
    transform: scale(1.08);
}

/* ═══════════════════════════════════════
   NAME
═══════════════════════════════════════ */

.serverteam-entry-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brighter);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

/* ═══════════════════════════════════════
   LIGHT MODE
═══════════════════════════════════════ */

body.lightmode .serverteam-card {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(0, 0, 0, 0.18);
}

body.lightmode .serverteam-card:hover {
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════
   JOIN SECTION
═══════════════════════════════════════ */

.join-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 1.5rem 5rem;
    text-align: center;
}

.join-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.join-title {
    font-family: 'Arvo', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--brighter);
    margin: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: var(--text_contrasted_to_nav);
    border-radius: 12px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.join-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.join-btn:hover svg {
    transform: translateX(4px);
}

.join-btn svg {
    transition: transform 0.2s ease;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 600px) {
    .serverteam-card {
        width: 120px;
        padding: 0.9rem 0.7rem 0.7rem;
    }

    .serverteam-list img {
        width: 56px;
        height: 56px;
    }
}
