/* ============================================================
   category.css — Category page styles
   Multi-Game Portal Website
   ============================================================ */

/* ------------------------------------------------------------
   Category Hero
   ------------------------------------------------------------ */
.category-hero {
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--cat-color, #667eea) 80%, #000) 0%,
        var(--cat-color, #667eea) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Subtle overlay for depth */
.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

/* Decorative background circle */
.category-hero::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.category-hero > * {
    position: relative;
    z-index: 1;
}

.category-hero-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.category-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.category-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.game-count {
    display: inline-block;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------
   Category Games Section
   ------------------------------------------------------------ */
.category-games {
    padding: 3rem 2rem;
}

/* Optional: filter / sort bar */
.category-controls {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-controls label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.category-controls select {
    padding: 0.4rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.category-controls select:focus {
    border-color: var(--cat-color, var(--primary-color));
}

/* Empty state */
.no-games {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-games-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.no-games p {
    font-size: 1.1rem;
}

/* ------------------------------------------------------------
   Responsive — 768px
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .category-hero {
        padding: 2rem 1rem;
    }

    .category-hero-icon {
        font-size: 3rem;
    }

    .category-hero h1 {
        font-size: 1.8rem;
    }

    .category-hero p {
        font-size: 1rem;
    }

    .category-games {
        padding: 2rem 1rem;
    }

    .category-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ------------------------------------------------------------
   Responsive — 480px
   ------------------------------------------------------------ */
@media (max-width: 480px) {
    .category-hero {
        padding: 1.5rem 1rem;
    }

    .category-hero-icon {
        font-size: 2.5rem;
    }

    .category-hero h1 {
        font-size: 1.5rem;
    }

    .category-hero p {
        font-size: 0.95rem;
    }

    .game-count {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .category-games {
        padding: 1.5rem 1rem;
    }
}
