/* Projects page: community + games */

.projects-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
}

.projects-block {
    margin-bottom: 2.25rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-block:last-child {
    margin-bottom: 0;
}

.projects-block-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 0 0 0.55rem;
    text-align: center;
}

.projects-block-sep {
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: rgba(0, 140, 255, 0.55);
    margin: 0 0 1.15rem;
}

/* —— Community —— */
.community-group {
    width: 100%;
    max-width: 640px;
    background: #0d0f14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.community-group-banner {
    display: block;
    width: 100%;
    height: clamp(110px, 16vw, 150px);
    object-fit: cover;
    object-position: center;
    background: #061018;
}

.community-group-body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem 1rem;
}

.community-group-icon {
    width: 56px;
    height: 56px;
    border-radius: 11px;
    object-fit: cover;
    flex-shrink: 0;
    background: #0a0c10;
}

.community-group-info {
    flex: 1;
    min-width: 0;
}

.community-group-info h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.community-group-info p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #008cff;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 7px;
    transition: background 0.15s;
    white-space: nowrap;
}

.community-join-btn:hover {
    background: #0077db;
}

/* —— Games 2-up grid —— */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    width: 100%;
    max-width: 900px;
}

.game-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    background: #0d0f14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.18s, transform 0.18s;
}

.game-card:hover {
    border-color: rgba(0, 140, 255, 0.4);
    transform: translateY(-2px);
}

.game-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080a0e;
    overflow: hidden;
}

.game-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.game-card-status {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 0.18rem 0.45rem;
    line-height: 1.2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.game-card-status.released {
    color: #b8ffd4;
    background: rgba(12, 40, 24, 0.75);
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.game-card-status.beta {
    color: #ffe29a;
    background: rgba(40, 30, 8, 0.75);
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.game-card-status.dev {
    color: #9ecbff;
    background: rgba(8, 24, 48, 0.75);
    border: 1px solid rgba(0, 140, 255, 0.4);
}

.game-card.is-static {
    cursor: default;
}

.game-card.is-static:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.games-grid:has(.game-card:only-child) {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

.game-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.05rem 1.15rem;
}

.game-card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-card-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.game-card-desc {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-projects {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    padding: 1.5rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: rgba(13, 15, 20, 0.5);
    width: 100%;
    max-width: 520px;
}

@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .community-group {
        max-width: none;
    }

    .community-group-body {
        flex-wrap: wrap;
    }

    .community-join-btn {
        width: 100%;
    }
}
