/* Category Page CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #7ED321;
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #7ED321;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

.back-to-top:hover {
    background: #6BC218;
    transform: translateY(-3px);
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.logo svg {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item.active {
    background: rgba(126, 211, 33, 0.1);
    color: #7ED321;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    color: #7ED321;
}

.nav-item:hover {
    background: rgba(126, 211, 33, 0.1);
    color: #7ED321;
}

.search-btn {
    width: 44px;
    height: 44px;
    background: #7ED321;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.search-btn:hover {
    background: #6BC218;
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #333;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 80px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 500;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    color: #7ED321;
}

.mobile-nav-item:hover {
    background: rgba(126, 211, 33, 0.1);
    color: #7ED321;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #333;
}

.search-box {
    display: flex;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 15px 20px;
    font-size: 18px;
    outline: none;
}

.search-submit {
    width: 50px;
    height: 50px;
    background: #7ED321;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-submit svg {
    width: 24px;
    height: 24px;
    color: white;
}

.search-submit:hover {
    background: #6BC218;
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 30px 0 60px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 35px;
    background: linear-gradient(135deg, #7ED321 0%, #5FB817 100%);
    border-radius: 20px;
    margin-bottom: 50px;
    color: white;
    box-shadow: 0 10px 40px rgba(126, 211, 33, 0.3);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.category-header-content {
    flex: 1;
    min-width: 250px;
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.category-desc {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 100px;
}

.stat-box .stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(126, 211, 33, 0.25);
}

.game-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card-img {
    transform: scale(1.1);
}

.game-card-content {
    padding: 18px;
    background: linear-gradient(to bottom, white, #fafafa);
}

.game-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.game-card-category {
    font-size: 14px;
    color: #7ED321;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-more {
    display: block;
    margin: 0 auto;
    padding: 16px 50px;
    background: linear-gradient(135deg, #7ED321 0%, #5FB817 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(126, 211, 33, 0.3);
}

.load-more:hover {
    background: linear-gradient(135deg, #6BC218 0%, #4FA515 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(126, 211, 33, 0.4);
}

/* Other Categories */
.other-categories {
    margin-top: 80px;
    padding: 50px 30px;
    background: linear-gradient(to bottom, #f8f9fa, white);
    border-radius: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-header-content {
    flex: 1;
    min-width: 250px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(126, 211, 33, 0.1);
    color: #7ED321;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #7ED321;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover {
    background: #7ED321;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.3);
}

.view-all-btn:hover::after {
    transform: translateX(4px);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(126, 211, 33, 0.2);
    border-color: #7ED321;
}

.category-icon {
    font-size: 48px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: #7ED321;
}

.category-card p {
    font-size: 14px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
    font-weight: 500;
    margin: 0;
}

.category-arrow {
    font-size: 24px;
    color: #7ED321;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(8px);
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-desc {
    color: #666;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(126, 211, 33, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7ED321;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #7ED321;
    color: white;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
     color: #7ED321;
}

.footer-links a:hover {
    color: #7ED321;
    transform: translateX(3px);
}

.footer-links a:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
    }

    .category-title {
        font-size: 32px;
    }

    .category-desc {
        font-size: 16px;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-desc {
        font-size: 14px;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-card-title {
        font-size: 14px;
    }

    .game-card-category {
        font-size: 12px;
    }
}
