/* =======================================
   GSUB WIKI STYLES
======================================= */

/* Archives Grid */
body, #page, .site-main, html, .site { background-color: #030712 !important; color: #94a3b8 !important; }
.gsub-wiki-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important; direction: rtl !important; padding: 20px 0 !important;
}

/* Card Physics & Neon */
.gsub-game-card {
    background: #0b0f19 !important; border: 1px solid #1e293b !important;
    border-radius: 24px !important; overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important; display: flex !important; flex-direction: column !important;
}
.gsub-game-card:hover {
    transform: translateY(-6px) !important; border-color: #8b5cf6 !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.25) !important;
}
.gsub-card-img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
    object-position: center top !important; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Star Ratings */
.gwiki-star-btn { border: none !important; background: transparent !important; outline: none !important; box-shadow: none !important; padding: 0 !important; }
.gwiki-has-hover .gwiki-star-btn:hover, .gwiki-has-hover .gwiki-star-btn:hover ~ .gwiki-star-btn { color: #334155 !important; }
.gwiki-has-hover:hover .gwiki-star-btn { color: #f59e0b !important; }
.gwiki-has-hover .gwiki-star-btn:hover ~ .gwiki-star-btn { color: #334155 !important; }

/* Review Scores */
.text-shadow-green { text-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.text-shadow-amber { text-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }

/* Hide Pagination on Filter */
.gwiki-pagination-hidden { display: none !important; }

.gwiki-coming-soon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    direction: rtl;
    font-family: "Yekan Bakh", sans-serif !important;
}

.gwiki-coming-soon-container h2, 
.gwiki-coming-soon-container p, 
.gwiki-coming-soon-container span, 
.gwiki-coming-soon-container a {
    font-family: "Yekan Bakh", sans-serif !important;
}

.gwiki-coming-soon-title {
    color: #10b981;
    font-size: 52px;
    font-weight: 950;
    letter-spacing: 5px;
    margin: 0 0 15px 0;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    font-family: sans-serif;
}

.gwiki-coming-soon-text {
    color: #94a3b8;
    font-family: "Yekan Bakh", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* استایل دکمه‌های ثبت پیشرفت پیشخوان */
.gsub-progress-action-btn, .gsub-progress-btn-guest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    background: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 16px;
    color: #94a3b8;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 13.5px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gsub-progress-action-btn:hover {
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

/* استایل دکمه در حالت فعال و تیک‌خورده (سبز نئونی) */
.gsub-progress-action-btn.is-active {
    background: rgba(16, 185, 129, 0.07) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2) !important;
}

.gsub-progress-action-btn.is-active:hover {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #ffffff !important;
}

/* استایل کادر وضعیت برای کاربران مهمان */
.gsub-progress-btn-guest {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(30, 41, 59, 0.5);
    color: #475569;
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================================================================
   👑 استایل‌های کاستوم و نئونی پیشخوان کاربر (Gwiki Dashboard)
   ========================================================================= */
.gsub-dashboard-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
    text-align: right;
    font-family: "Yekan Bakh", sans-serif !important;
}

.gsub-dash-header {
    background: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gsub-dash-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gsub-dash-avatar-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 24px;
}

.gsub-dash-stats-group {
    display: flex;
    gap: 12px;
}

.gsub-dash-stat-badge {
    background: #020617;
    border: 1px solid #1e293b;
    padding: 10px 18px;
    border-radius: 16px;
    text-align: center;
}

.gsub-dash-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .gsub-dash-grid {
        grid-template-columns: 1fr;
    }
}

.gsub-dash-card {
    background: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gsub-dash-card-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsub-game-progress-item {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid #1e293b;
    padding: 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
}

.gsub-game-progress-thumb {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #1e293b;
}

.gsub-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 100px;
    overflow: hidden;
    margin-top: 8px;
}

.gsub-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    border-radius: 100px;
    transition: width 0.5s ease;
}

.gsub-items-grid-dash {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gsub-item-card-dash {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid #1e293b;
    padding: 12px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    display: block;
}

.gsub-item-card-dash:hover {
    border-color: #06b6d4;
    transform: translateY(-2px);
}

/* استایل هوشمند دکمه ورود / پیشخوان در هدر (اصلاح شده برای موبایل) */
.gsub-header-auth-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0b0f19 !important;
    border: 1px solid #1e293b !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 100px !important;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    direction: rtl !important;
    white-space: nowrap !important; /* جلوگیری از شکستن متن در دو خط */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.gsub-header-auth-btn i {
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

.gsub-header-auth-btn:hover {
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25) !important;
    transform: translateY(-2px) !important;
}

.gsub-header-auth-btn.is-logged-in {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

.gsub-header-auth-btn.is-logged-in:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #ffffff !important;
}

/* بهینه‌سازی اختصاصی دکمه برای حالت موبایل */
@media (max-width: 768px) {
    .gsub-header-auth-btn {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        gap: 6px !important;
    }
}

/* =========================================================================
   👑 استایل اختصاصی فرم ورود فرانت‌اند جی‌ویکی (Yekan Bakh)
   ========================================================================= */
.gwiki-frontend-login-form {
    direction: rtl;
    text-align: right;
    margin-top: 20px;
}

.gwiki-frontend-login-form p {
    margin-bottom: 16px;
}

.gwiki-frontend-login-form label {
    display: block;
    color: #94a3b8 !important;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    margin-bottom: 6px;
}

.gwiki-frontend-login-form input[type="text"],
.gwiki-frontend-login-form input[type="password"] {
    width: 100% !important;
    background: #020617 !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 13px !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
}

.gwiki-frontend-login-form input[type="text"]:focus,
.gwiki-frontend-login-form input[type="password"]:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

.gwiki-frontend-login-form .login-remember {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.gwiki-frontend-login-form .login-remember label {
    margin-bottom: 0 !important;
    font-size: 12px !important;
    cursor: pointer;
}

.gwiki-frontend-login-form input[type="submit"] {
    width: 100% !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 100px !important;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25) !important;
    margin-top: 10px !important;
}

.gwiki-frontend-login-form input[type="submit"]:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-2px) !important;
}

/* استایل تب‌های سوییچ ورود / ثبت‌نام */
.gwiki-auth-tabs {
    display: flex;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 100px;
    padding: 4px;
    margin-bottom: 25px;
}

.gwiki-auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px 16px;
    border-radius: 100px;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 12.5px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gwiki-auth-tab-btn.active {
    background: #0b0f19;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
}

/* اصلاح رنگ پس‌زمینه اینپوت ایمیل و حالت اتوفیل مرورگر */
.gwiki-frontend-login-form input[type="email"],
.gwiki-frontend-login-form input:-webkit-autofill {
    background-color: #020617 !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0px 1000px #020617 inset !important;
    border: 1px solid #1e293b !important;
}

/* روان‌سازی اسکرول نوار تب‌ها و بهینه‌سازی انیمیشن جابه‌جایی */
.gwiki-dash-main-tabs {
    display: flex !important;
    gap: 10px !important;
    border-bottom: 1px solid #1e293b !important;
    padding-bottom: 12px !important;
    direction: rtl !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scroll-behavior: smooth !important; /* حرکت نرم موقع جا‌به‌جایی خودکار */
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.gwiki-dash-main-tabs::-webkit-scrollbar {
    display: none !important;
}

.gwiki-dash-tab-btn {
    background: #0b0f19 !important;
    border: 1px solid #1e293b !important;
    color: #64748b !important;
    padding: 10px 18px !important;
    border-radius: 14px !important;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    flex-shrink: 0 !important; /* جلوگیری از فشرده شدن دکمه‌ها */
    white-space: nowrap !important;
}

.gwiki-dash-tab-btn:hover {
    color: #ffffff !important;
    border-color: #8b5cf6 !important;
}

.gwiki-dash-tab-btn.active {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #a78bfa !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2) !important;
}

/* اصلاح فواصل در صفحات کوچک */
@media (max-width: 768px) {
    .gwiki-dash-tab-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

/* شبکه انتخاب آواتار گیمینگ */
.gwiki-avatar-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.gwiki-avatar-opt {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 14px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gwiki-avatar-opt:hover {
    border-color: #10b981;
    color: #10b981;
}

.gwiki-avatar-opt.active {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

/* =========================================================================
   👑 ترمیم استایل کارت‌های آرشیو (Walkthrough / Character / Item Archive)
   ========================================================================= */
.site-main article, 
.elementor-post, 
.elementor-posts-container .elementor-post {
    background: #0b0f19 !important;
    border: 1px solid #1e293b !important;
    border-radius: 24px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease !important;
    direction: rtl !important;
    text-align: right !important;
}

.site-main article:hover, 
.elementor-post:hover {
    border-color: #8b5cf6 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.2) !important;
}

.elementor-post__title, .elementor-post__title a {
    color: #10b981 !important;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.elementor-post__excerpt p, .elementor-post__excerpt {
    color: #94a3b8 !important;
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 12.5px !important;
    line-height: 1.8 !important;
    margin-top: 10px !important;
}

/* =========================================================================
   👑 ترمیم کارت نمرات رسانه‌ها (Review Scores)
   ========================================================================= */
.gwiki-scores-wrapper {
    background: #0b0f19 !important;
    border: 1px solid #1e293b !important;
    border-radius: 24px !important;
    padding: 24px !important;
    margin-top: 20px !important;
    direction: rtl !important;
}

.gwiki-score-card {
    border-radius: 16px !important;
    padding: 16px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #020617 !important;
    border: 1px solid #1e293b !important;
    transition: all 0.3s ease !important;
}

.gwiki-score-card:hover {
    transform: translateY(-2px) !important;
}

.score-value {
    font-family: monospace, sans-serif !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.score-label {
    font-family: "Yekan Bakh", sans-serif !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
}

/* اصلاح تراز کامنت‌ها در صفحات لور و واکترو */
.single-lore .site-main #comments,
.single-character .site-main #comments,
.single-walkthrough .site-main #comments,
.gwiki-standalone-comments-wrapper #comments {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* رفع باگ افتادن المان‌های هدر به انتهای صفحه */
#gwiki-comments-placement,
.elementor-widget-shortcode {
    position: static !important;
}

/* =========================================================================
   📱 بهینه‌سازی اختصاصی ریسپانسیو موبایل پیشخوان (Gwiki Dashboard Mobile)
   ========================================================================= */

@media (max-width: 768px) {
    /* ۱. کاهش پدینگ کلی کانتینر اصلی در موبایل */
    .gsub-dashboard-wrapper {
        margin: 15px auto !important;
        padding: 0 10px !important;
    }

    /* ۲. اصلاح کادر هدر پروفایل کاربر */
    .gsub-dash-header {
        padding: 20px 16px !important;
        border-radius: 18px !important;
        gap: 16px !important;
    }

    .gsub-dash-user-info {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* ۳. 🎯 حل ریشه‌ای بیرون زدن کارت‌های آمار (تبدیل به گرید ۲در۲ متقارن) */
    .gsub-dash-stats-group {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* چیدمان دو ستونه */
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gsub-dash-stat-badge {
        width: 100% !important;
        padding: 10px 8px !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
    }

    .gsub-dash-stat-badge div,
    .gsub-dash-stat-badge span {
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    /* ۴. اصلاح کارت‌های داخل پیشخوان */
    .gsub-dash-card {
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }

    /* ۵. بهینه‌سازی بخش درصد پیشرفت بازی‌ها (کارت‌های The Witcher و ...) */
    .gsub-game-progress-item {
        padding: 12px !important;
        gap: 12px !important;
    }

    .gsub-game-progress-thumb {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }

    /* ۶. اصلاح گرید آواتارهای انتخابی در موبایل */
    .gwiki-avatar-selector-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    .gwiki-avatar-opt {
        height: 44px !important;
        font-size: 18px !important;
    }
}