:root {
     /* --primary-game: #0066ff; */
    --primary-light: #3399ff;
    /* --dark-game: #0a192f;
    --darker-game: #020c1b;
    --light-game: #e6f1ff;
    --accent-game: #00d4ff;
    --card-bg-game: #112240; */
    --neon-effect: 0 0 10px rgba(0, 212, 255, 0.7);
    --metacritic-green: #6c3;
    --ign-orange: #ff8c00;
    --npd-blue: #1a73e8;
    --primary: #6a11cb;
    --secondary: #2575fc;
    --dark: #0f0f1b;
    --darker: #070710;
    --light: #f0f0f0;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff7675;
    --gray: #7f8c8d;
    --accent: #00c9ff;
    --card-bg: rgba(30, 30, 46, 0.7);
    --glass-bg: rgba(26, 26, 46, 0.5);
    --transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Games Section */
.games {
    padding: 80px 0;
    background: transparent;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
}

.game-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: cardAppear 0.8s ease-out forwards;
}

.game-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(37, 117, 252, 0.3);
}

.game-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.game-card:hover .game-img img {
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 10;
}

.game-content {
    padding: 20px;
}

.game-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.game-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.7;
    min-height: 80px;
}
.game-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
}

/* Hero Section - Modern Gaming Design */

@keyframes fadeInHeroContent {
    0%{
        opacity: 0;
        left: -50%;
    }
    50%{
        opacity: 0.8;
        left: -0%;
    }
    100%{
        opacity: 1;
    }
}

.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
    animation: fadeInHeroContent 1s forwards;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    text-align: center;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* Features Section */
.features {
    padding: 80px 0;
}

#more-link {
    /* width: 100px;
    height: 50px; */
    font-family: vazir;
    display: flex;
    color: #0066cc;
    text-decoration: none;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    border: 4px solid #0066cc;
    border-radius: 50px;
    padding: 2vh 3vh;
    margin-left: 45%;
    margin-right: 45%;
    transition: 0.5s;
}

#more-link:hover {
    transition: 0.5s;
    transform: translateY(-5px);
    box-shadow: 0px 0px 40px #0066cc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.news-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: cardAppear 0.8s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    /*box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);*/
    box-shadow: 0px 1px 20px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.3);
    transform: translateZ(30px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
    transform: translateZ(20px);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Games Section */
.games {
    padding: 80px 0;
    background: transparent;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
}

.game-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: cardAppear 0.8s ease-out forwards;
}

.game-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(37, 117, 252, 0.3);
}

.game-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.game-card:hover .game-img img {
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 10;
}

.game-content {
    padding: 20px;
}

.game-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.game-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.7;
    min-height: 80px;
}
.game-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
}

/* News Section */
.news {
    padding: 80px 0;
}

.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
}

.news-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: cardAppear 0.8s ease-out;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 40px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.3);
}

@keyframes cardAppear {
    0% { opacity: 0; transform: translate3d(0px,30px,0); }
    100% { opacity: 1; transform: translate3d(0px,0px,0); }
}

.news-img {
    height: 180px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.ranking-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.ranking-header h1 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    text-shadow: var(--neon-effect);
    position: relative;
    display: inline-block;
}

.ranking-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    box-shadow: var(--neon-effect);
}

.ranking-header p {
    color: rgba(230, 241, 255, 0.7);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.data-sources {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.source-badge {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.metacritic {
    background: rgba(102, 204, 51, 0.15);
    color: var(--metacritic-green);
    border: 1px solid rgba(102, 204, 51, 0.4);
}

.ign {
    background: rgba(255, 140, 0, 0.15);
    color: var(--ign-orange);
    border: 1px solid rgba(255, 140, 0, 0.4);
}

.npd {
    background: rgba(26, 115, 232, 0.15);
    color: var(--npd-blue);
    border: 1px solid rgba(26, 115, 232, 0.4);
}

.ranking-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 15px;
    background: rgba(16, 42, 87, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
                inset 0 0 15px rgba(0, 212, 255, 0.1);
    padding: 5px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

.ranking-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    position: relative;
}

.ranking-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: var(--neon-effect);
}

.ranking-table th {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

.ranking-table tbody tr {
    background-color: var(--card-bg);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.ranking-table tbody tr:last-child {
    border-bottom: none;
}

.ranking-table tbody tr:hover {
    background-color: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.ranking-table td {
    padding: 18px 15px;
    text-align: center;
    vertical-align: middle;
    position: relative;
}

.rank {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--accent);
    text-shadow: var(--neon-effect);
    position: relative;
}

.rank::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    z-index: -1;
}

.game-info {
    display: flex;
    align-items: center;
    /*justify-content: flex-end;*/
}

.game-cover {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    margin-left: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

.game-info:hover .game-cover {
    transform: rotate(5deg) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.game-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--light);
    font-size: 1.1rem;
}

.game-genre {
    font-size: 0.9rem;
    color: rgba(230, 241, 255, 0.7);
}

.rating {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.rating:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: var(--neon-effect);
    transform: scale(1.05);
}

.rating-source {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--metacritic-green);
    opacity: 0;
    transition: opacity 0.3s;
}

.rating:hover .rating-source {
    opacity: 1;
}

.star {
    color: gold;
    margin-left: 5px;
    text-shadow: 0 0 5px gold;
}

.platform {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 2px;
}

.pc {
    background: rgba(0, 102, 255, 0.2);
    color: #66b3ff;
    border: 1px solid rgba(0, 102, 255, 0.4);
}

.console {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.mobile {
    background: rgba(153, 102, 255, 0.2);
    color: #b388ff;
    border: 1px solid rgba(153, 102, 255, 0.4);
}

.sales {
    position: relative;
}

.sales-source {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--npd-blue);
    opacity: 0;
    transition: opacity 0.3s;
}

.sales:hover .sales-source {
    opacity: 1;
}


/* استایل برای رتبه‌های برتر */
.top-1 .rank {
    color: gold;
    font-size: 1.6rem;
    text-shadow: 0 0 15px gold;
}

.top-1 .rank::before {
    background: rgba(255, 215, 0, 0.15);
    width: 50px;
    height: 50px;
}

.top-2 .rank {
    color: silver;
    font-size: 1.5rem;
    text-shadow: 0 0 12px silver;
}

.top-2 .rank::before {
    background: rgba(192, 192, 192, 0.15);
}

.top-3 .rank {
    color: #ffa500;
    font-size: 1.4rem;
    text-shadow: 0 0 10px #ffa500;
}

.top-3 .rank::before {
    background: rgba(255, 165, 0, 0.15);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .ranking-header h1 {
        font-size: 2rem;
    }
    
    .ranking-header p {
        font-size: 1rem;
    }
    
    .ranking-table {
        font-size: 0.9rem;
    }

    .ranking-table th, 
    .ranking-table td {
        padding: 12px 8px;
    }

    .game-cover {
        width: 50px;
        height: 50px;
    }

    .platform {
        display: block;
        margin: 3px auto;
        width: fit-content;
    }

    .rating-source,
    .sales-source {
        display: none;
    }
    .mobile-menu{
        display: block;
    }
}
