/* Category Page Specific Styles */

/* Category Games Section */
.category-games {
    padding: 70px 0;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    position: relative;
    overflow: hidden;
}

.category-games::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%234ecdc4" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="%231a936f" opacity="0.1"/><circle cx="80" cy="80" r="1.5" fill="%234ecdc4" opacity="0.1"/></svg>');
    background-size: 100px 100px;
}

.category-games .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#categoryHeading {
    text-align: center;
    font-size: 2.4rem;
    margin: 0 0 50px;
    color: #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease;
}

#categoryHeading::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, #4ecdc4, #1a936f);
    margin: 15px auto;
    border-radius: 3px;
    animation: expandWidth 1s ease 0.3s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}

/* Game Card Styles */
.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.game-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4ecdc4, #1a936f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

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

.game-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
    position: relative;
}

.game-card:hover .game-thumbnail {
    transform: scale(1.08);
}

.game-thumbnail::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.game-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-info p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.play-button {
    display: block;
    padding: 15px;
    background: linear-gradient(135deg, #4ecdc4 0%, #1a936f 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.play-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.play-button:active {
    transform: translateY(-1px);
}

.play-button i {
    font-size: 1.2rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 50px;
    animation: fadeIn 0.8s ease 0.5s both;
}

#loadMoreBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #4ecdc4 0%, #1a936f 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    position: relative;
    overflow: hidden;
}

#loadMoreBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

#loadMoreBtn:hover::before {
    left: 100%;
}

#loadMoreBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(78, 205, 196, 0.4);
}

#loadMoreBtn:active {
    transform: translateY(-2px);
}

#loadMoreBtn i {
    transition: transform 0.3s ease;
}

#loadMoreBtn:hover i {
    transform: translateX(5px);
}

/* Recommended Categories Section */
.recommended-categories {
    padding: 70px 0;
    background: #fff9f0;
    position: relative;
}


.recommended-categories .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.recommended-categories .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 0 0 50px;
    color: #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.recommended-categories .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    margin: 15px auto;
    border-radius: 3px;
}

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

.category-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #ffd166;
}

.category-icon {
    font-size: 3.5rem;
    color: #ff6b6b;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

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

.category-card h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1023px) {
    #categoryHeading {
        font-size: 2rem;
    }

    .recommended-categories .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .category-games {
        padding: 50px 0;
    }

    #categoryHeading {
        font-size: 1.8rem;
    }

    .recommended-categories .section-title {
        font-size: 1.8rem;
    }

    .game-info h3 {
        font-size: 1.3rem;
    }

    .game-info p {
        font-size: 1rem;
    }

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

    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 0px;
    }

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

@media (max-width: 480px) {
    #categoryHeading {
        font-size: 1.5rem;
    }

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

    .game-info {
        padding: 20px;
    }

    .game-info h3 {
        font-size: 1.2rem;
    }
}