/* =========================================
   Xomaps Server — Mobile-first
   Tema: Azul (#7DB9DF)
   ========================================= */

/* Override do #container do common.css */
#container {
    margin: 1.25rem 1rem 2rem 1rem;
}

#server-detail.theme-2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Centraliza o cabeçalho (h2 .subtitle) sem afetar os cards */
#server-detail.theme-2 > .centered-content {
    align-self: center;
}

.server-detail-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem;
    background-color: #0b0f15;
    border-radius: 12px;
    border: 1.5px solid #7DB9DF;
    box-shadow: 0 0 20px rgba(125, 185, 223, 0.2);
    box-sizing: border-box;
}

.server-info h3 {
    font-size: 1.5rem;
    color: #7DB9DF;
    margin-top: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.server-info p {
    color: #d0d0d0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
}

.server-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.server-features li i {
    color: #7DB9DF;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    transition: filter 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.cta-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.theme-2-btn {
    background-color: #7DB9DF;
}

/* Botões CTA empilhados em mobile */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
}

/* Botão secundário "Copiar IP" — variante outline */
.copy-ip-btn {
    background-color: transparent !important;
    border: 2px solid #7DB9DF !important;
    color: #7DB9DF;
}

.copy-ip-btn:hover {
    background-color: rgba(125, 185, 223, 0.12) !important;
    filter: none;
}

.copy-ip-btn.copied {
    color: #47dd86 !important;
    border-color: #47dd86 !important;
}

/* ---------- TABLET (≥ 600px) ---------- */
@media (min-width: 600px) {
    #container {
        margin: 1.75rem 1.5rem 2.5rem 1.5rem;
    }

    #server-detail.theme-2 {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .server-detail-content {
        padding: 1.75rem;
        border-radius: 14px;
        border-width: 2px;
    }

    .server-info h3 {
        font-size: 1.75rem;
        gap: 0.6rem;
    }

    .server-info p {
        font-size: 1rem;
    }

    .server-features li {
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    /* Botões lado a lado */
    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        width: auto;
    }

    .cta-button {
        width: auto;
        padding: 0.7rem 1.75rem;
    }
}

/* ---------- DESKTOP (≥ 1024px) ---------- */
@media (min-width: 1024px) {
    #container {
        margin: 2.5rem auto 3rem auto;
        max-width: 1100px;
    }

    #server-detail.theme-2 {
        gap: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .server-detail-content {
        padding: 2.25rem 2.5rem;
    }

    .server-info h3 {
        font-size: 1.85rem;
        gap: 0.65rem;
    }

    .server-features {
        gap: 0.85rem;
        margin: 1.5rem 0;
    }

    .server-features li {
        font-size: 1rem;
    }

    .cta-buttons {
        gap: 0.85rem;
        margin-top: 1.25rem;
    }

    .cta-button {
        padding: 0.8rem 1.85rem;
        font-size: 0.95rem;
    }
}