/* ================================
   BJJ Bloodline - Community page
   Matches the FAQ hero and blog cards:
   #0a0a0a base, #111 surfaces, #222 lines, #c41e3a accent, Oswald labels.
   ================================ */

.bjj-community {
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
}

/* Hero */
.community-hero {
    text-align: center;
    padding: 80px 20px 60px;
    border-bottom: 1px solid #222;
}

.community-eyebrow {
    color: #c41e3a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.community-hero h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.community-subtitle {
    color: #fff;
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto;
}

.community-body {
    padding: 60px 20px 80px;
}

.community-body .container {
    max-width: 1140px;
}

/* Card */
.community-card {
    height: 100%;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    border-color: #333;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

.community-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.community-card-link:hover {
    color: inherit;
}

.community-card-link:focus-visible {
    outline: 2px solid #c41e3a;
    outline-offset: -2px;
}

.community-card-media {
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    overflow: hidden;
}

.community-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.community-card:hover .community-card-media img {
    transform: scale(1.04);
}

/* Logos: shown whole, centered, never enlarged past their real size */
.community-card-media--logo-light,
.community-card-media--logo-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.community-card-media--logo-light {
    background: #fff;
}

.community-card-media--logo-dark {
    background: #000;
    border-bottom: 1px solid #222;
}

.community-card-media--logo-light img,
.community-card-media--logo-dark img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Placeholder icon stays dark-on-dark regardless of style */
.community-card-media--logo-light:has(.community-card-placeholder) {
    background: #1a1a1a;
}

.community-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: #333;
}

.community-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.community-card-domain {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #c41e3a;
    margin: 0 0 .5rem;
}

.community-card-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

.community-card-desc {
    margin: .6rem 0 0;
    font-size: .92rem;
    line-height: 1.5;
    color: #aaa;
}

/* Pinned to the bottom so CTAs line up across a row */
.community-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    transition: color .2s ease;
}

.community-card-cta i {
    font-size: .7rem;
}

.community-card:hover .community-card-cta {
    color: #c41e3a;
}

.community-empty {
    text-align: center;
    color: #888;
}

@media (prefers-reduced-motion: reduce) {
    .community-card,
    .community-card-media img {
        transition: none;
    }

    .community-card:hover,
    .community-card:hover .community-card-media img {
        transform: none;
    }
}
