/* Community widget styles (moved from events.css) */
.community-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.2rem;
    align-items: start;
    margin-top: 0.6rem;
}

.community-text p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

/* Social button variations */
.social-links .action-button {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.6rem;
}

.community-widget .discord-embed {
    background: color-mix(in srgb, #111 40%, transparent);
    padding: 0.4rem;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.community-widget iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-widget iframe {
        height: 420px;
    }
}

/* CTA row under community grid */
.community-cta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Default buttons: avoid using flex-basis so column layout on small screens doesn't
   turn the desktop flex-basis into a height. Desktop size applied through media query. */
.community-cta .action-button {
    max-width: 260px;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

/* Desktop: set fixed flex-basis only on wider viewports */
@media (min-width: 721px) {
    .community-cta .action-button {
        flex: 0 0 220px;
    }
}

@media (max-width: 720px) {
    .community-cta {
        gap: 0.6rem;
        flex-direction: column;
        align-items: stretch;
    }

    .community-cta .action-button {
        width: 100%;
        height: 44px;
        padding: 0.35rem 1rem;
        font-size: 0.95rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}