/* ==========================================================================
   Discord / Community Section — home "Join our Discord" band
   --------------------------------------------------------------------------
   A bordered panel pairing the copy + CTAs with the live Discord widget.
   Uses the site accent (--qr-*) for framing and Discord blurple for the
   Discord-specific button, so it reads as on-brand for both.
   ========================================================================== */

.discord-section {
    padding: 96px 0;
    background: #0d1218;
}

.discord-panel {
    display: grid;
    grid-template-columns: 1.2fr auto;
    align-items: center;
    gap: 48px;
    padding: 48px;
    border: 1px solid var(--qr-border);
    border-radius: 22px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(43, 189, 246, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* -------------------------------------------------------------------- Copy */
.discord-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(88, 101, 242, 0.45);
    border-radius: 999px;
    background: rgba(88, 101, 242, 0.14);
    color: #a3adf7;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.discord-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.5px;
    font-size: clamp(1.9rem, 3.6vw, 2.85rem);
}

.discord-title-accent {
    color: var(--qr-green);
}

.discord-desc {
    margin: 0 0 32px;
    max-width: 540px;
    color: rgba(233, 246, 255, 0.62);
    font-size: 1.08rem;
    line-height: 1.65;
}

/* ----------------------------------------------------------------- Buttons */
.discord-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease,
                background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.discord-btn--primary {
    background: linear-gradient(135deg, #5865F2 0%, #7883f5 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.35);
}

.discord-btn--primary:hover {
    color: #ffffff;
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 16px 36px rgba(88, 101, 242, 0.45);
}

.discord-btn--ghost {
    background: transparent;
    color: #eaf6ff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.discord-btn--ghost:hover {
    color: #ffffff;
    transform: translateY(-3px);
    border-color: rgba(43, 189, 246, 0.5);
    background: var(--qr-green-soft);
}

/* ------------------------------------------------------------------ Widget */
.discord-panel__widget {
    display: flex;
    justify-content: center;
}

.discord-widget {
    border-radius: 14px;
    max-width: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------------ Mobile */
@media (max-width: 991.98px) {
    .discord-panel {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 36px 28px;
        text-align: center;
    }
    .discord-desc { max-width: none; }
    .discord-actions { justify-content: center; }
}

@media (max-width: 575.98px) {
    .discord-section { padding: 64px 0; }
    .discord-panel { padding: 28px 20px; }
    .discord-widget { width: 100%; }
}
