/* -------------------------------------------------------------------------- */
/* 🧱 تنظیمات پایه (Reset & Base Styles) */
/* -------------------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: #fff;
    overflow-x: hidden;
    direction: rtl;
    background: url('../img/background5.jpg') center center / cover no-repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* -------------------------------------------------------------------------- */
/* 🧭 نوار ناوبری (Navbar) */
/* -------------------------------------------------------------------------- */
.home-navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 60rem;
    height: 5.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid #b4b4b43f;
    box-shadow: 0 0 50px #0000007a;
    z-index: 10;
}

.home-navbar_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
}

.riot-logo {
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.version {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* لینک‌ها در ناوبری */
.links {
    display: flex;
    gap: 2rem;
    position: relative;
}

.links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    color: #ccc;
}

/* دکمه‌ها و اکشن‌ها */
.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

/* لوگو */
.logo {
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(228, 228, 228, 0.2));
    transition: all 0.5s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgba(228, 228, 228, 0.6));
}

.logo-mobile {
    height: 90px;
    filter: drop-shadow(0 0 10px rgba(228, 228, 228, 0.5));
    transition: all 0.5s ease;
}


/* دکمه اصلی */
.primary {
    background: #fff;
    color: #000;
}

.primary:hover {
    box-shadow: 0 0 10px #fff;
    text-shadow: 0 0 10px #000;
}

/* ----------------------------- */
/* 🔹 دکمه لاگین با افکت Uiverse */
/* ----------------------------- */
.login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 22px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
    transition: all 0.5s ease;
}

.login:focus {
    outline: none;
}

.login:hover {
    box-shadow: 3px -3px 0 #000;
    transform: skewX(-5deg) scale(1.05);
}

.login .second {
    width: 20px;
    margin-left: 20px;
    position: relative;
    top: 12%;
    transition: 0.5s;
}

.login:hover .second {
    margin-right: 45px;
}

@keyframes color_anim {
    0% {
        fill: #000;
    }

    50% {
        fill: #fbc638;
    }

    100% {
        fill: #000;
    }
}

/* آیکن‌ها */
.fi {
    font-size: 12px;
    transform-origin: center;
}

/* منوی موبایل */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* ---------- منوی موبایل ---------- */
.mobile-menu {
    position: fixed;
    top: 5rem;
    right: 10rem;
    width: 80%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    z-index: 1000;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
    display: flex;
    opacity: 0;
    pointer-events: none;
}

/* ---------- باز ---------- */
.mobile-menu.open {
    animation: slideInRight 0.4s ease forwards;
    pointer-events: all;
}
/* ---------- بسته ---------- */
.mobile-menu.close {
    animation: slideOutRight 0.4s ease forwards;
}

/* ---------- انیمیشن‌ها ---------- */
@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.mobile-menu .content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 60%;
    justify-content: center;
    flex: 1;
}

.mobile-menu .riot-logo {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.moblie-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.moblie-links a {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.moblie-links a:hover {
    color: #ccc;
}

/* -------------------------------------------------------------------------- */
/* 📱 واکنش‌گرایی منو (Navbar Responsive) */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .home-navbar {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
        top: 1rem;
    }

    .links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        height: 50px;
    }

    .actions {
        gap: 0.5rem;
    }

    .login {
        font-size: 16px;
        padding: 4px 16px;
    }
}

/* -------------------------------------------------------------------------- */
/* 🏆 سکشن لیست برتر (Leaderboard) */
/* -------------------------------------------------------------------------- */

/* تنظیمات سکشن‌ها (استفاده شده در بخش Leaderboard) */
.player-list-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
    text-align: center;
    min-height: 100vh;
}

.player-list-section .title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff;
    }

    to {
        text-shadow: 0 0 20px #fff;
    }
}

.player-list-section .description {
    background: linear-gradient(90deg, #00000000, #00000061, #000000ab);
    width: min(65vh, 80%);
    border-radius: 10px;
    padding: 1rem;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

/* تب‌های لیست برتر */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(2px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.leaderboard-tabs::-webkit-scrollbar {
    display: none;
}

.leaderboard-tabs .tab {
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.leaderboard-tabs .tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-tabs .tab.active {
    background: #fff;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* محتوای لیست (List Content) */
.leaderboard-content {
    display: none;
}

.leaderboard-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: right;
}

.list-item.player-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out forwards;
}

.list-item.player-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.player-rank {
    font-size: 2.5rem;
    font-weight: 900;
    color: #999;
    min-width: 50px;
    text-align: center;
}

.player-rank.first-place {
    background: linear-gradient(90deg, gold, #fff700, gold);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
    text-shadow: 0 0 15px gold;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.player-rank.second-place {
    color: silver;
    text-shadow: 0 0 15px silver;
}

.player-rank.third-place {
    color: #cd7f32;
    text-shadow: 0 0 15px #cd7f32;
}

.player-info {
    flex-grow: 1;
}

.player-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.player-stats,
.player-kd {
    font-size: 1rem;
    color: #ccc;
    opacity: 0.9;
    margin-bottom: 0.2rem;
}

.player-icon {
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.5;
    transition: transform 0.3s;
}

.list-item.player-card:hover .player-icon {
    transform: scale(1.1);
    opacity: 1;
    color: gold;
}

/* -------------------------------------------------------------------------- */
/* ⚙️ فوتر (Footer) */
/* -------------------------------------------------------------------------- */

.home-footer {
    background: #101216;
    color: #d9d9d9;
    padding: 40px 0;
    font-family: "Vazirmatn", sans-serif;
}

.home-footer .content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.logo-wrapper {
    text-align: right;
}

.logo-wrapper a.riot-logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.5);
    color: #fff;
    display: inline-block;
}

.logo-wrapper a.riot-logo span {
    color: rgb(0, 184, 76);
    text-shadow: 0px 0px 20px rgba(0, 184, 77, 0.5);
}

.logo-wrapper p {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.socials .social {
    color: #ccc;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.socials .social:hover {
    color: rgb(252, 252, 252);
    transform: translateY(-3px);
}

.socials .social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* آیکون تلگرام (اصلاح رنگ هنگام hover) */
.socials a:hover svg {
    fill: #fcfcfc;
}


.signs-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.signs-wrapper p {
    font-size: 0.95rem;
    color: #bbb;
}

.signs-wrapper a {
    display: block;
}

.signs-wrapper img {
    height: 45px;
    border-radius: 10px;
    padding: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.signs-wrapper .itemZ img {
    filter: drop-shadow(0 0 15px rgba(255, 238, 0, 0.6));
}

.signs-wrapper .itemZ img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 238, 0, 0.6));
}

.signs-wrapper .itemE img {
    filter: drop-shadow(0 0 15px rgba(0, 122, 221, 0.6));
}

.signs-wrapper .itemE img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 122, 221, 0.6));
}

.signs-wrapper .itemS img {
    filter: drop-shadow(0 0 15px rgba(255, 217, 0, 0.6));
}

.signs-wrapper .itemS img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 217, 0, 0.6));
}

/* -------------------------------------------------------------------------- */
/* 📱 واکنش‌گرایی کلی (General Responsive Styles) */
/* -------------------------------------------------------------------------- */
/* 📱 واکنش‌گرایی کلی (General Responsive Styles) */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .home-hero .actions {
        flex-direction: column;
        align-items: center;
    }

    .btn.lg {
        width: 100%;
        max-width: none;
        margin-bottom: 1rem;
    }

    .section-head {
        flex-direction: column;
        gap: 1rem;
    }

    .home-about .content {
        padding: 0 1rem;
    }

    .description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mode-item,
    .list-item {
        padding: 1.5rem;
    }

    .player-list-section .title {
        font-size: 2.5rem;
    }

    .player-list-section .description {
        font-size: 1rem;
        width: 90%;
        padding: 0.8rem;
    }

    .leaderboard-tabs {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .leaderboard-tabs .tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .list {
        gap: 1rem;
    }

    .list-item.player-card {
        padding: 1rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .player-rank {
        font-size: 2rem;
        min-width: auto;
    }

    .player-info {
        text-align: center;
    }

    .player-name {
        font-size: 1.2rem;
    }

    .player-stats,
    .player-kd {
        font-size: 0.9rem;
    }

    .player-icon {
        font-size: 2rem;
        order: -1;
    }

    /* واکنش‌گرایی Footer */
    .home-footer .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-wrapper {
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    .signs-wrapper {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .text,
    .description {
        font-size: 0.95rem;
    }

    .home-navbar {
        height: 4.0rem;
    }

    .mobile-menu {
        width: 100%;
    }

    .home-hero {
        height: 100vh;
    }

    .login {
        font-size: 14px;
        padding: 6px 14px;
        position: relative;
        left: 15%;
    }

    .actions {
        gap: 0.25rem;
    }

    .player-list-section {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .player-list-section .title {
        font-size: 2rem;
    }

    .player-list-section .description {
        font-size: 0.95rem;
    }

    .home-navbar {
        height: 4rem;
    }

    .list-item.player-card {
        padding: 0.8rem;
    }
}