/* CONTEÚDO CORRIGIDO PARA O ARQUIVO: discord-widget.css */

.discord-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #5865F2; /* cor do Discord */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 9999;
    border: none;
    transition: transform 0.2s ease;
}

.discord-fab:hover { 
    filter: brightness(1.05);
    transform: scale(1.05);
}

.discord-panel {
    position: fixed;
    right: 20px;
    bottom: 84px; /* acima do botão */
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    z-index: 9998;

    /* --- CORREÇÃO PRINCIPAL AQUI --- */
    /* Em vez de apenas ficar transparente, agora ele é... */
    opacity: 0;                  /* ...invisível... */
    visibility: hidden;          /* ...não-interativo... */
    transform: translateY(30px); /* ...e movido um pouco para baixo. */
    
    /* A transição agora inclui 'visibility' para um efeito mais suave */
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.discord-panel.open {
    /* Quando aberto, volta ao normal */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.discord-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile: ocupar mais espaço (Esta parte está OK e pode ser mantida) */
@media (max-width: 480px) {
    .discord-panel {
        right: 12px;
        left: 12px;
        width: auto;
        height: 70vh;
        bottom: 96px;
    }
}