:root {
    --border-color-2: #B971DA;
    --border-color-1: #7DB9DF;
    --card-bg: rgba(11, 15, 21, 0.85);
    --card-border: rgba(125, 185, 223, 0.25);
    --text-muted: #c5c5c5;
}

#suporte-container {
    display: block;
    width: 100%;
    max-width: 1280px;
    margin: 30px auto 50px auto;
    padding: 0 100px;
    box-sizing: border-box;
}

#suporte-container > * {
    margin-bottom: 50px;
    width: 100%;
}

#suporte-container > *:last-child {
    margin-bottom: 0;
}

/* Cabeçalho da página (intro) */
.suporte-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

/* ============================================
   Subtítulo (corrige a borda esticada do common.css)
   O .subtitle do common.css usa border-bottom 1px solid
   que estica 100% da largura do pai. Aqui usamos
   ::after com largura fixa + display:inline-block.
   ============================================ */

#canais-section .subtitle,
#status-section .subtitle,
#faq-section .subtitle,
#dicas-section .subtitle,
.suporte-intro .subtitle {
    display: inline-block;
    width: auto;
    padding: 0 20px 8px 20px;
    border-bottom: none;
    position: relative;
    margin: 0 0 25px 0;
}

#canais-section .subtitle::after,
#status-section .subtitle::after,
#faq-section .subtitle::after,
#dicas-section .subtitle::after,
.suporte-intro .subtitle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background-color: var(--border-color-2);
    border-radius: 2px;
}

/* ============================================
   Seções — empilhamento vertical normal
   ============================================ */

#canais-section,
#status-section,
#faq-section,
#dicas-section {
    display: block;
    width: 100%;
}

/* Cabeçalho de cada seção (centered-content) */
#canais-section > .centered-content,
#status-section > .centered-content,
#faq-section > .centered-content,
#dicas-section > .centered-content {
    display: block;
    text-align: center;
    width: 100%;
    margin: 0 0 25px 0;
    justify-content: flex-start;
    gap: 10px;
}

/* <p> com max-width dentro de .centered-content — centraliza o bloco do parágrafo */
#canais-section > .centered-content > p,
#faq-section > .centered-content > p,
#dicas-section > .centered-content > p {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Cards de canais de atendimento
   2 cards (Discord + Ticket)
   ============================================ */

.canais-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    box-sizing: border-box;
}

.canal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    background-color: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 14px;
    padding: 30px 24px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.canal-card-discord {
    border-color: #7289DA;
}
.canal-card-discord:hover {
    border-color: #8FA8F5;
    box-shadow: 0 12px 28px rgba(114, 137, 218, 0.4);
    z-index: 2;
}

.canal-card-ticket {
    border-color: var(--border-color-2);
}
.canal-card-ticket:hover {
    border-color: #D89BF0;
    box-shadow: 0 12px 28px rgba(185, 113, 218, 0.4);
    z-index: 2;
}

.canal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background-color: #0b0f15;
    flex-shrink: 0;
}

.canal-card-discord .canal-icon { color: #7289DA; }
.canal-card-ticket .canal-icon { color: var(--border-color-2); }

.canal-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.canal-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    flex: 0 1 auto;
}

.canal-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
    transition: gap 0.3s ease;
}

.canal-card:hover .canal-card-cta {
    gap: 14px;
}

.canal-card-discord .canal-card-cta { color: #7289DA; }
.canal-card-ticket .canal-card-cta { color: var(--border-color-2); }

/* ============================================
   FAQ
   ============================================ */

.faq-list {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    margin-bottom: 14px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    border-color: var(--border-color-1);
}

.faq-item[open] {
    border-color: var(--border-color-1);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background-color: rgba(125, 185, 223, 0.08);
}

.faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--border-color-1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 16px 22px 20px 22px;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
    border-top: 1px solid rgba(125, 185, 223, 0.12);
    margin: 0;
}

.faq-answer a {
    color: var(--border-color-1);
    text-decoration: underline;
}

/* ============================================
   Status / Tempo de resposta
   ============================================ */

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    box-sizing: border-box;
}

.status-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.status-card:hover {
    border-color: var(--border-color-1);
    z-index: 2;
}

.status-card .status-icon {
    font-size: 28px;
    color: #4CAF50;
    align-self: center;
}

.status-card h4 {
    margin: 0;
    font-size: 18px;
    color: var(--border-color-1);
}

.status-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   Bloco "Antes de abrir ticket"
   ============================================ */

.dicas-list {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.dica {
    display: flex;
    gap: 18px;
    background-color: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    padding: 20px 24px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.dica:last-child {
    margin-bottom: 0;
}

.dica-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--border-color-2), var(--border-color-1));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.dica-content h4 {
    margin: 0 0 6px 0;
    font-size: 17px;
    color: white;
}

.dica-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   Discord widget
   ============================================ */

#discord-widget-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#discord-widget-section iframe {
    border-radius: 12px;
    max-width: 100%;
}

/* ============================================
   Responsivo
   ============================================ */

@media (max-width: 1100px) {
    #suporte-container {
        padding: 0 40px;
    }
}

@media (max-width: 900px) {
    #suporte-container {
        padding: 0 20px;
    }

    .canais-grid,
    .status-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 700px) {
    #suporte-container {
        padding: 0 16px;
    }

    .canal-card,
    .status-card {
        max-width: 100%;
    }
}
