/* --- CORE DARK MODE SETTINGS --- */
body.dark {
    background-color: #0c0c0e;
    color: #F3F3F3;
}

/* Fix: Ensure all links and headings inherit the light color */
body.dark a,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark p,
body.dark strong {
    color: #F3F3F3;
}

/* Fix: Metadata Hierarchy (Grey instead of pure white for dates/authors) */
body.dark span,
body.dark .meta-post-item span,
body.dark .comment-metadata a,
body.dark .post-author-box span {
    color: #B0B0B0; 
}

/* --- HEADER & MENU FIXES --- */
body.dark header {
    background-color: #131316 !important;
    border-bottom-color: #131316;
}

/* Fix: Force menu containers to be transparent or dark */
body.dark .bottom-header,
body.dark .menu-right,
body.dark .menu-left {
    background-color: #131316 !important; 
    color: #F3F3F3;
}

/* Fix: Specific Menu Link Colors */
body.dark .menu-right ul.navbar-nav > li > a,
body.dark .menu-left ul li a {
    color: #F3F3F3 !important;
}

body.dark .menu-right ul.navbar-nav > li h2{
    color: #F3F3F3;
}

/* SVG Icons in Header */
body.dark header svg,
body.dark header svg path,
body.dark header svg ellipse {
    stroke: #fff;
}

/* Logo Toggle */
body .logo-dark { display: none; }
body.dark .logo-dark { display: block; }
body.dark .logo-light { display: none; }

/* Navigation Buttons (Prev/Next) */
body.dark .navigation-slider div {
    background: #2D2D33;
}
body.dark .navigation-slider div svg path {
    stroke: #fff;
}

/* --- CONTENT & WIDGETS --- */
body.dark .container-last-posts,
body.dark .widget-sidebar {
    background-color: #131316;
}

body.dark .post-item-index {
    border-bottom-color: #2D2D33;
}

body.dark .tab-menu-index-item button {
    border-color: #2D2D33 !important;
    color: #fff;
}

/* --- FOOTER --- */
body.dark footer {
    background-color: #131316;
}

body.dark .footer-logo svg {
    opacity: 0.25;
}

/* --- FORMS & INPUTS --- */
body.dark select, 
body.dark textarea, 
body.dark input {
    background-color: transparent;
    color: #F3F3F3;
    border-color: #2D2D33 !important;
}

body.dark .checkbox-label {
    background-color: #e62120;
}

body.dark #reg_login_form {
	background-color: #131316;
}

/* --- COMPONENTS --- */
body.dark hr {
    border-color: #2D2D33;
}

body.dark .progress-sections span {
    border-right-color: #0c0c0e;
}

body.dark #modal-menu {
    background-color: #131316;
}

/* Swiper Buttons */
body.dark .swiper-button-prev-game-widget,
body.dark .swiper-button-next-game-widget,
body.dark .swiper-button-prev-video-widget,
body.dark .swiper-button-next-video-widget {
    color: #fff !important;
}

body.dark .swiper-button-prev-game-widget:hover,
body.dark .swiper-button-next-game-widget:hover,
body.dark .swiper-button-prev-video-widget:hover,
body.dark .swiper-button-next-video-widget:hover {
    color: #E62120 !important;
}

/* Price Widget Items */
body.dark .item-price {
    border-bottom-color: #2D2D33;
}

/* Mobile Menu */
body.dark .mob-main-menu>li>a {
    border-bottom-color: #2D2D33;
}

/* Toggle Switch */
body.dark .toggle-bar {
    border-top-color: #fff;
}
body.dark .toggle-bar::before,
body.dark .toggle-bar::after {
    background-color: #fff;
}

/* Review Slider & Publishing Date */
body.dark .review-slider .swiper-slide {
    background: #0c0c0e;
}
body.dark .img-date-publish-game span {
    background: #0c0c0e;
}
body.dark .title-post-comment-side {
    border-right-color: #2D2D33;
}
body.dark .date-publish-accordion .uk-accordion-title {
    border-bottom-color: #2D2D33;
}

/* Single Post Content */
body.dark .single-post-content {
    background-color: #131316;
}
body.dark .dbazi-single-post-content {
    color: #fff;
}
body.dark .dbazi-single-post-content table td {
    border-color: #3e3e3e;
}

/* Comments */
body.dark .comment-content {
    border-color: #2D2D33;
}
body.dark ol.comment-list .reply {
    border-color: #2D2D33;
}

/* Author Box & Meta */
body.dark .post-author-box {
    background: #0c0c0e;
}
body.dark .post-meta-bottom a {
    background-color: #2d2d33;
    color: #F3F3F3;
}

/* Archive Title & Search Results */
body.dark .archive-title {
    background: #0c0c0e;
}
body.dark .archive-title span {
    color: #E62120;
}
body.dark .no-result-posts img {
    filter: grayscale(0.5);
}
body.dark .category_description {
    border-color: #2D2D33;
}

/* Author Page Tabs */
body.dark .page-author-menu-tabs li {
    background-color: #131316;
}
body.dark .page-author-menu-tabs li a {
    color: #fff;
}
body.dark .page-author-menu-tabs li svg path, 
body.dark .page-author-menu-tabs li svg circle {
    stroke: #fff;
}

/* Menu Walker (Dropdowns) */
body.dark .menu-walker {
    background-color: #131316;
    border-top-color: #2D2D33;
}
body.dark .menu-right ul.navbar-nav ul.sub-menu {
    border-bottom-color: #2D2D33;
}

/* Related Posts Block */
body.dark .related-in-post {
    border-color: #2D2D33;
}
body.dark .title-related-in-post.title-listing-related {
    background: #0c0c0e !important;
}

/* Blockquotes */
body.dark .wp-block-quote {
    border: 1px solid #2D2D33;
    background: #0C0C0E !important;
}
body.dark .wp-block-quote>cite {
    border-color: #2D2D33;
    background: #0c0c0e;
    color: #fff;
}

/* 404 Page Button */
body.dark .not-found-page a {
    background: #373d3f;
    color: #fff;
}

/* Price Widget Toggle Buttons */
body.dark .show-more-price,
body.dark .show-less-price {
    background: #131316;
    color: #F3F3F3;
}


/* ========================================================
   DBAZI MAGAZINE DARK MODE FIX (GUARANTEED)
   Add to the bottom of dark.css
   ======================================================== */

/* 1. اصلاح پس‌زمینه کل صفحه مجله */
html body.dark .magazine-single-new {
    background-color: #0c0c0e !important;
}

/* 2. تیره کردن کارت‌های سفید (هم محتوا و هم نظرات) */
html body.dark .mag-single-card,
html body.dark .mag-comments-section {
    background-color: #131316 !important;
    background: #131316 !important; /* برای اطمینان مضاعف */
    border: 1px solid #2d2d33 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4) !important;
    color: #f3f3f3 !important;
}

/* 3. اصلاح نوار مسیر (Breadcrumb) بالا */
html body.dark .mag-breadcrumb-container {
    background-color: #131316 !important;
    border-bottom: 1px solid #2d2d33 !important;
    box-shadow: none !important;
}

/* 4. اصلاح رنگ تمام متون، پاراگراف‌ها و لینک‌ها داخل مجله */
html body.dark .magazine-single-new p,
html body.dark .magazine-single-new li,
html body.dark .magazine-single-new span,
html body.dark .magazine-single-new h1,
html body.dark .magazine-single-new h2,
html body.dark .magazine-single-new h3,
html body.dark .entry-title {
    color: #e0e0e0 !important;
    text-shadow: none !important;
}

/* 5. اصلاح لینک‌های نوار مسیر */
html body.dark .custom-breadcrumbs a {
    color: #b0b0b0 !important;
}
html body.dark .custom-breadcrumbs a:hover {
    color: #E62120 !important;
}
html body.dark .custom-breadcrumbs .current-post {
    color: #777 !important;
}

/* 6. اصلاح بج تاریخ انتشار */
html body.dark .meta-date-badge {
    background-color: rgba(230, 33, 32, 0.1) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(230, 33, 32, 0.2) !important;
}

/* 7. اصلاح دکمه‌های "شماره قبلی/بعدی" */
html body.dark .nav-btn-wrapper a {
    background-color: #1f1f22 !important;
    color: #f3f3f3 !important;
    border-color: #333 !important;
}
html body.dark .nav-btn-wrapper a:hover {
    background-color: #E62120 !important;
    border-color: #E62120 !important;
}

/* 8. اصلاح حیاتی بخش نظرات (که الان سفید/سیاه قاطی شده) */
html body.dark .mag-comments-section .comment-body {
    background-color: #18181b !important;
    border: 1px solid #2d2d33 !important;
    margin-bottom: 15px !important;
    padding: 20px !important;
    border-radius: 10px !important;
}

html body.dark .comments-title-main {
    color: #fff !important;
    border-right: 4px solid #E62120 !important;
}

/* نام نویسنده و متادیتای نظرات */
html body.dark .comment-author .fn, 
html body.dark .comment-author .fn a {
    color: #ffffff !important;
}
html body.dark .comment-metadata a {
    color: #888 !important;
}

/* محتوای نظرات */
html body.dark .comment-content {
    border-color: #2d2d33 !important;
}
html body.dark .comment-content p {
    color: #d1d1d1 !important;
}

/* دکمه پاسخ */
html body.dark .comment-reply-link {
    border: 1px solid #E62120 !important;
    color: #E62120 !important;
    background: transparent !important;
}
html body.dark .comment-reply-link:hover {
    background-color: #E62120 !important;
    color: #fff !important;
}

/* 9. اصلاح فرم ارسال نظر (باکس‌های ورودی) */
html body.dark .comment-form input,
html body.dark .comment-form textarea {
    background-color: #0c0c0e !important;
    border: 1px solid #333 !important;
    color: #fff !important;
}
html body.dark .comment-form input:focus,
html body.dark .comment-form textarea:focus {
    border-color: #555 !important;
}

/* 10. حذف پدینگ اضافه اگر در موبایل وجود دارد */
@media (max-width: 768px) {
    html body.dark .mag-single-card {
        padding: 20px !important;
    }
}