/* Categories Page Specific Styles */

/* Categories Hero Section */
.categories-hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.categories-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.categories-main {
    padding: 3rem 0;
}

.categories-filter {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.categories-filter h3 {
    margin: 0;
}

.categories-filter select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-filter {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Category Detail Page Styles */
/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

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

.category-icon-large {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

.category-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.category-stats .stat-item {
    text-align: center;
}

.category-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-stats .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Games Header */
.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    font-weight: 500;
    color: var(--text-color);
}

.sort-options select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    color: var(--text-color);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2rem;
}

.sort-options select:hover {
    border-color: var(--primary-color);
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* No Games Message */
.no-games {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--light-text);
}

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

/* Category Games Section */
.category-games {
    padding: 3rem 0;
    background: var(--background-color);
}

/* Load More Section */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
}

#load-more-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

#load-more-btn i {
    transition: transform 0.3s ease;
}

#load-more-btn:hover i {
    transform: rotate(180deg);
}

.load-info {
    margin-top: 1rem;
    color: var(--light-text);
    font-size: 1rem;
}

.load-info span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Recommended Categories Section */
.recommended-categories {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.recommended-categories .section-title {
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.category-card .category-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-card .category-count {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: block;
}

.category-card .view-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card:hover .view-category {
    opacity: 1;
    transform: translateY(0);
}

.category-card .view-category i {
    transition: transform 0.3s ease;
}

.category-card:hover .view-category i {
    transform: translateX(5px);
}

/* Responsive for Category Detail */
@media (max-width: 768px) {
    .category-icon-large {
        font-size: 3.5rem;
    }
    
    .category-hero h1 {
        font-size: 2rem;
    }
    
    .category-hero p {
        font-size: 1rem;
    }
    
    .category-stats {
        gap: 2rem;
    }
    
    .category-stats .stat-number {
        font-size: 2rem;
    }
    
    .games-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-options {
        width: 100%;
    }
    
    .sort-options select {
        flex: 1;
    }
}

/* Load More Button Styles */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.btn-load-more {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-load-more i {
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: translateY(3px);
}

/* Recommended Categories Section */
.recommended-categories {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
}

.recommended-categories h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.recommended-categories p {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-icon {
    transform: scale(1.2) rotate(10deg);
}

.category-card h3 {
    color: var(--text-color);
    margin: 1rem 0;
    font-size: 1.3rem;
}

.category-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 25px;
}

/* Responsive Design for Load More and Recommended */
@media (max-width: 768px) {
    .load-more-container {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .btn-load-more {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .recommended-categories {
        padding: 2.5rem 0;
    }

    .recommended-categories h2 {
        font-size: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

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

    .category-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .load-more-container {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }

    .btn-load-more {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .recommended-categories {
        padding: 2rem 0;
    }

    .recommended-categories h2 {
        font-size: 1.3rem;
    }

    .recommended-categories p {
        font-size: 0.95rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-card-icon {
        font-size: 2rem;
    }

    .category-card h3 {
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .category-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .btn-sm {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}