/* ==========================================================================
   HOME COMPONENT: GAME CARDS & SECTION HEADERS
   ========================================================================== */

/* Section Headers */
.section-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-tag-badge {
    background: var(--zw-accent);
    color: #07090e;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 4px;
    transform: skew(-10deg);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-tag-badge > * {
    transform: skew(10deg);
}

.section-title-dark {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--zw-text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.live-players-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--zw-accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #1b5e20;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.live-pulse-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.view-all-btn {
    background: var(--zw-accent);
    color: #07090e;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--zw-transition);
}

.view-all-btn:hover {
    background: var(--zw-accent-hover);
}

/* Featured 2-Column Game Cards (VIP Highlights) */
.game-card-featured {
    background: var(--zw-bg-surface-card);
    border: 1px solid var(--zw-border-subtle);
    border-radius: var(--zw-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--zw-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card-featured:hover {
    transform: translateY(-4px);
    border-color: var(--zw-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.game-card-featured .card-media-wrap {
    height: 140px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0e14;
}

@media (min-width: 1024px) {
    .game-card-featured .card-media-wrap {
        height: 165px;
    }
}

.game-card-featured .card-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card-featured:hover .card-media-wrap img {
    transform: scale(1.06);
}

.game-tag-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.tag-super-hit { background: #ff334b; color: #fff; }
.tag-pro-choice { background: var(--zw-accent); color: #000; }
.tag-high-win { background: #00e676; color: #000; }
.tag-vip-deluxe { background: #7c4dff; color: #fff; }

.game-card-featured .card-body-wrap {
    padding: 10px 12px;
    background: #0e121a;
}

.game-card-featured .game-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--zw-accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-featured .game-subtitle {
    font-size: 0.72rem;
    color: var(--zw-text-muted);
    margin: 2px 0 0 0;
}

/* Compact 3-Column Game Cards */
.game-card-compact {
    background: var(--zw-bg-surface-card);
    border: 1px solid var(--zw-border-subtle);
    border-radius: var(--zw-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--zw-transition);
    display: flex;
    flex-direction: column;
}

.game-card-compact:hover {
    transform: translateY(-3px);
    border-color: var(--zw-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.game-card-compact .card-thumb-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #0b0e14;
}

.game-card-compact .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card-compact:hover .card-thumb-wrap img {
    transform: scale(1.08);
}

.compact-corner-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--zw-accent);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    z-index: 2;
}

.game-card-compact .card-label {
    background: #0d1017;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--zw-text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.card-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 3;
}

.game-card-compact:hover .card-hover-play {
    opacity: 1;
}

.card-hover-play i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--zw-accent);
    color: #07090e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.6);
    transform: scale(0.85);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card-compact:hover .card-hover-play i {
    transform: scale(1);
}

/* Lobby Section Filtering & Smooth Animation */
.lobby-section {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.lobby-section.section-hidden {
    display: none !important;
}

.lobby-section.section-fade-in {
    animation: lobbyFadeIn 0.35s ease forwards;
}

@keyframes lobbyFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
