/* -------------------------------------------------------------------------- */
/* 🧱 تنظیمات پایه (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-color: rgb(15, 15, 15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* -------------------------------------------------------------------------- */
/* 🧭 نوار ناوبری (Navbar) */
/* -------------------------------------------------------------------------- */

.home-navbar {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    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;
}

.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;
    position: relative;
    top: -100%;
    left: -16%;
    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;
    }

    .mobile-menu {
        right: 42%;
        width: 80%;
        top: 5rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .home-navbar {
        height: 4.0rem;
    }

    .login {
        font-size: 14px;
        padding: 6px 14px;
        position: relative;
        left: 15%;
    }

    .actions {
        gap: 0.25rem;
    }
}

/* -------------------------------------------------------------------------- */
/* 📜 بخش قوانین (Rules Section) */
/* -------------------------------------------------------------------------- */

.home-rules {
    padding: 5rem 0;
    text-align: center;
    background: url('../img/background3.jpg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* لایه گرادیانت پایین تصویر */
.home-rules::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgb(15, 15, 15) 100%);
    pointer-events: none;
    z-index: -1;
}

/* افکت گرید پس‌زمینه */
.grid-bg {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.content {
    z-index: 1;
}

/* عنوان و متن بخش قوانین */
.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;
    }
}

.description {
    font-size: 1.2rem;
    margin: 0 auto 2rem;
    max-width: 600px;
}

/* لیست قوانین */
.rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: right;
}

.rule-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: scale(1.01);
    box-shadow: 0 0 15px #ffffff73;
}

.rule-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.rule-item ul {
    list-style-type: disc;
    padding-right: 1.5rem;
}

.rule-item li {
    margin-bottom: 0.5rem;
}

/* Terms Section */
.terms-section {
    margin-top: 4rem;
    text-align: right;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.terms-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.terms-subtitle {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.terms-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: right;
}

/* -------------------------------------------------------------------------- */
/* ⚙️ فوتر (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 a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.5);
}

.logo-wrapper 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;
}

.socials .social {
    color: #ccc;
    transition: all 0.3s ease;
}

.socials .social:hover {
    color: rgb(252, 252, 252);
    transform: translateY(-3px);
}

/* 🔸 پرداخت امن */
.signs-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.signs-wrapper p {
    font-size: 0.95rem;
    color: #bbb;
}

/* 🎯 ظاهر لوگوهای پرداخت */
.signs-wrapper .itemZ img {
    height: 45px;
    border-radius: 10px;
    padding: 5px;
    filter: drop-shadow(0 0 15px rgba(255, 238, 0, 0.6));
    transition: all 0.3s ease;
    cursor: pointer;
}

/* افکت hover برای لوگوها */
.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 {
    height: 45px;
    border-radius: 10px;
    padding: 5px;
    filter: drop-shadow(0 0 15px rgba(0, 122, 221, 0.6));
    transition: all 0.3s ease;
    cursor: pointer;
}

/* افکت hover برای لوگوها */
.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 {
    height: 45px;
    border-radius: 10px;
    padding: 5px;
    filter: drop-shadow(0 0 15px rgba(255, 217, 0, 0.6));
    transition: all 0.3s ease;
    cursor: pointer;
}

/* افکت hover برای لوگوها */
.signs-wrapper .itemS img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 217, 0, 0.6));
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .home-footer .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    .signs-wrapper {
        justify-content: center;
    }
}

/* -------------------------------------------------------------------------- */
/* 📱 واکنش‌گرایی کلی (General Responsive Styles) */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .rules-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rule-item {
        padding: 1.5rem;
    }

    .terms-section {
        padding: 1rem;
        margin-top: 2rem;
    }

    .terms-title {
        font-size: 1.5rem;
    }

    .terms-subtitle {
        font-size: 1.2rem;
    }

    .terms-text {
        font-size: 0.95rem;
    }

    .section-head {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .description,
    .terms-text {
        font-size: 0.95rem;
    }
}

.riotlink {
    color: #003cff;
    text-shadow: #003cff 0px 0px 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.riotlink:hover {
    color: #2357ff;
    text-shadow: #2357ff 0px 0px 25px;
}