/*
Theme Name:  Rastad
Theme URI: https://rastad.io/
Author: hasan varaseh
Author URI: hasan.varaseh2003@gmail.com
Description:
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 7.4
Version: 1.0.0
Text Domain: rastad
Domain Path: /languages

 */
/* CSS Document */
/*---------------------------*/
/* https://rastad.io */
/*---------------------------*/
@font-face {
    font-family: 'Estedad-Bold';
    src: url('assets/fonts/Estedad-Bold.woff2') format('woff2'),
    url('assets/fonts/Estedad-Bold.woff') format('woff');
    font-style: normal;
    font-weight: 700;  /* Set font-weight to bold for the bold font */
    font-display: fallback;
}

@font-face {
    font-family: 'Estedad-Regular';
    src: url('assets/fonts/Estedad-Regular.woff2') format('woff2'),
    url('assets/fonts/Estedad-Regular.woff') format('woff');
    font-style: normal;
    font-weight: 400;  /* Assuming this is the regular weight */
    font-display: fallback;
}

html {
    overflow-x: hidden;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

body {
    font-family: "Estedad-Regular";
    direction: rtl;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    /*background-color: #0C0A1A;*/
    background-image: linear-gradient(to right top, #1c135b, #18134f, #151243, #131137, #120f2b, #120f2b, #120f2b, #120f2b, #131137, #151243, #18134f, #1c135b);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
}

.text-justify {
    text-align: justify;
}

.font-weight-900 {
    font-weight: 900;
}

.font-size-20 {
    font-size: 20px;
}

.font-size-24 {
    font-size: 24px;
}

.font-size-14 {
    font-size: 14px;
}

.font-size-12 {
    font-size: 12px;
}

.font-size-36 {
    font-size: 36px;
}

.font-size-16 {
    font-size: 16px;
}

.font-size-44 {
    font-size: 44px;
}

/* =========================================
   Base Navbar & Brand
========================================= */
.navbar {
    padding: 15px 9px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.logo-img {
    width: 90%;
    height: auto;
    max-height: 50px;
}

/* =========================================
   Desktop Navigation Links
========================================= */
.navbar-nav {
    padding-right: 5px;
}

.navbar-nav .nav-link {
    color: #ccc;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* جلوگیری از پرش در زمان هاور */
    border-radius: var(--box-radius);
    padding: 8px 12px;
}

/* حل مشکل رنگ مشکی و استایل هاور/اکتیو */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show {
    background-color: #CCCCCC26;
    border-color: #CCCCCC33;
    color: #ffffff !important;
}

/* =========================================
   Dropdown (زیرمنو)
========================================= */
/* تنظیم آیکون فلش بوت‌استرپ برای سایت راست‌چین */
.dropdown-toggle::after {
    margin-right: 0.5em;
    margin-left: 0;
    vertical-align: middle;
}

.rst-dropdown {
    background-color: #272545; /* رنگ تیره بک‌گراند زیرمنو */
    border-radius: var(--box-radius);
    padding: 10px 0;
    text-align: right;
    min-width: 250px;
}

.rst-dropdown .dropdown-item {
    color: #7C88FF;
    font-size: 0.95rem;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.rst-dropdown .dropdown-item:hover,
.rst-dropdown .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-right: 25px; /* افکت نرم حرکت متن به سمت راست موقع هاور */
}

/* باز شدن زیرمنو با هاور در دسکتاپ */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

/* انیمیشن نرم باز شدن منو */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Search Form
========================================= */
.search-container {
    position: relative;
    width: 418px;
}

.search-input {
    background-color: var(--gray);
    border: 1px solid #4a4953;
    border-radius: var(--box-radius);
    color: #fff;
    padding-right: 40px;
    height: 40px;
}

.search-input::placeholder {
    color: white;
}

.search-input:focus {
    background-color: #2f2e40;
    color: #fff;
    box-shadow: none;
    border: 1px solid #6366f1;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

/* =========================================
   Buttons (ورود و عضویت)
========================================= */
.btn-custom-login {
    background-color: var(--gray);
    color: #fff;
    border-radius: var(--box-radius);
    border: 1px solid #4a4953;
    padding: 8px 20px;
    margin-right: 10px;
}

.btn-custom-login:hover {
    background-color: #fff;
    color: #000;
    transition: ease 1s;
}

.btn-custom-signup {
    background: linear-gradient(180deg, var(--one-color) 0%, var(--two-color) 100%);
    color: #fff;
    border: none;
    border-radius: var(--box-radius);
    padding: 8px 20px;
    margin-right: 10px;
}

.btn-custom-signup:hover {
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.25), 0 0 11.5px #4250E2;
    border-color: #4250E2;
    color: white;
}


/* =========================================
   Mobile Menu (Offcanvas style)
========================================= */
@media (max-width: 991px) {

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        z-index: 1050;
        padding: 25px 20px 20px 20px;
        overflow-y: auto;
        display: block !important;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    .navbar-collapse.show {
        visibility: visible;
        opacity: 1;
    }

    .rst-mobile-menu-wrapper {
        min-height: 100%;
    }

    .top-controls {
        flex-direction: column;
        width: 100%;
        margin-bottom: 25px;
    }

    .search-container {
        width: 100%;
    }

    /* جستجو در موبایل */
    .search-input {
        width: 100%;
        padding-right: 15px;
        padding-left: 40px;
    }

    .search-icon {
        left: 15px;
        right: auto;
    }

    /* لینک‌های منو در موبایل */
    .navbar-nav {
        text-align: right;
        width: 100%;
        padding-right: 0;
    }

    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        margin-left: 0;
        padding: 10px 5px;
        color: #ffffff !important;
        border: none;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link.show {
        background-color: transparent;
        border: none;
        color: #ffffff !important;
    }

    /* استایل زیرمنو در حالت موبایل */
    .rst-dropdown {
        background-color: rgba(255, 255, 255, 0.03) !important;
        border: none !important;
        box-shadow: none !important;
        margin-top: 5px !important;
        padding: 5px 0;
    }

    .rst-dropdown .dropdown-item {
        font-size: 1rem;
        padding: 10px 20px 10px 10px;
        color: #7C88FF;
    }

    .rst-dropdown .dropdown-item:hover,
    .rst-dropdown .dropdown-item:focus {
        color: #fff;
        background-color: transparent;
    }

    /* خط جداکننده */
    .mobile-menu-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
        width: 100%;
    }

    /* دکمه‌های سوشیال در موبایل */
    .mobile-social-btn {
        width: 38px;
        height: 38px;
        background-color: #3F4DE3;
        color: white;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        text-decoration: none;
        transition: 0.3s;
    }

    .mobile-social-btn:hover {
        background-color: #2b38b8;
        color: white;
    }
}

/*footer*/
footer.rst-footer {
    background: linear-gradient(268deg, #1A1253 0%, #0D0A1A 65%);
    color: white;
}

.rst-footer-title {
    color: #7E86DF;
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0;
}

.rst-footer-links li {
    margin-bottom: 12px;
}

.rst-footer-links a {
    color: #ffffff;
    text-decoration: none !important;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.3s;
    display: block;
}

.rst-footer-links a:hover {
    opacity: 1;
    color: #7E86DF;
    transform: translateX(-5px);
}

.rst-social-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3F4DE3 0%, #7E86DF 100%);
    border-radius: var(--box-radius);
    transition: all 0.3s ease;
    position: relative;
    color: white;
    box-shadow: 0 4px 15px rgba(63, 77, 227, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.rst-social-box:hover {
    background: linear-gradient(135deg, #7E86DF 0%, #3F4DE3 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(63, 77, 227, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.rst-social-box svg {
    width: 24px;
    height: 24px;
    transition: 0.3s;
    stroke: white;
}

.rst-social-box::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1a1a2e;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    pointer-events: none;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rst-social-box::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: #1a1a2e;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    margin-bottom: -2px;
}

.rst-social-box:hover::after,
.rst-social-box:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.rst-desc {
    line-height: 1.5;
}
