/* ==========================================================================
   QuickPlayHub - All Categories Grid (Pixel-Perfect k4.games Style)
   ========================================================================== */

:root {
    --k4-bg-dark: #0e0d1f;
}

body {
    background-color: var(--k4-bg-dark) !important;
}

.k4-allcategories-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 18px 24px 80px;
    box-sizing: border-box;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
}

/* ─── 6-COLUMN GRID MATCHING K4.GAMES ─── */
.k4-allcat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

/* ─── INDIVIDUAL CATEGORY CARD ─── */
.k4-allcat-card {
    position: relative;
    height: 76px;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s ease, filter 0.18s ease;
    user-select: none;
}

.k4-allcat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    filter: brightness(1.07);
}

.k4-allcat-card:active {
    transform: translateY(0);
}

/* Text Container */
.k4-allcat-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    margin-right: 8px;
}

.k4-allcat-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.k4-allcat-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Icon / Graphic Container */
.k4-allcat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k4-allcat-icon img,
.k4-allcat-icon svg {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}

/* ─── RESPONSIVE BREAKPOINTS (6 -> 5 -> 4 -> 3 -> 2 -> 1) ─── */
@media (max-width: 1440px) {
    .k4-allcat-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .k4-allcat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .k4-allcat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .k4-allcat-card {
        height: 72px;
        padding: 8px 12px;
    }
    .k4-allcat-name {
        font-size: 14px;
    }
}

@media (max-width: 680px) {
    .k4-allcategories-container {
        padding: 14px 14px 60px;
    }
    .k4-allcat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .k4-allcat-card {
        height: 68px;
        border-radius: 12px;
        padding: 8px 10px;
    }
    .k4-allcat-name {
        font-size: 13.5px;
    }
    .k4-allcat-icon {
        width: 36px;
        height: 36px;
    }
    .k4-allcat-icon img,
    .k4-allcat-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 380px) {
    .k4-allcat-grid {
        grid-template-columns: 1fr;
    }
}
