/**
 * Dark Mode Styles
 * @package Kora_Plus_Pro
 */

/* زر الوضع المظلم */
.dark-mode-toggle {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    background: var(--accent, #ff6b00);
    border-color: var(--accent, #ff6b00);
    transform: rotate(180deg) scale(1.1);
}

/* الوضع المظلم */
body.dark-mode {
    --primary: #00c46e;
    --secondary: #ffffff;
    --accent: #ff8533;
    background: #0a0a0a;
    color: #e0e0e0;
}

/* الهيدر */
body.dark-mode .site-header {
    background: #1a1a1a;
    border-bottom: 1px solid #2c2c2c;
}

/* الفوتر */
body.dark-mode .site-footer {
    background: #0f0f0f;
    border-top: 1px solid #2c2c2c;
}

/* المقالات */
body.dark-mode .single-post .entry-header {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    border-right-color: var(--primary);
}

body.dark-mode .single-post .entry-title {
    color: #ffffff;
}

body.dark-mode .single-post .entry-meta {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

body.dark-mode .single-post .entry-meta span {
    color: #b0b0b0;
}

body.dark-mode .single-post .post-content {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .single-post .post-content h2,
body.dark-mode .single-post .post-content h3 {
    color: #ffffff;
}

body.dark-mode .single-post .share-section,
body.dark-mode .single-post .google-news-section {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

body.dark-mode .single-post .related-posts,
body.dark-mode .single-post .latest-posts {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

body.dark-mode .section-title {
    color: #ffffff;
}

/* الأقسام */
body.dark-mode .category-header,
body.dark-mode .search-header,
body.dark-mode .author-header {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
}

body.dark-mode .category-title,
body.dark-mode .search-title,
body.dark-mode .author-name {
    color: #ffffff;
}

body.dark-mode .category-description,
body.dark-mode .author-bio {
    color: #b0b0b0;
}

body.dark-mode .category-post-item,
body.dark-mode .search-result-item,
body.dark-mode .author-post-item,
body.dark-mode .section-post {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

body.dark-mode .post-title,
body.dark-mode .post-title a,
body.dark-mode .result-title a,
body.dark-mode .category-post-item .post-title,
body.dark-mode .category-post-item .post-title a,
body.dark-mode .category-posts .post-title,
body.dark-mode .category-posts .post-title a,
body.dark-mode .post-content-wrap .post-title,
body.dark-mode .post-content-wrap .post-title a,
body.dark-mode h3.post-title,
body.dark-mode h3.post-title a,
body.dark-mode .section-post .post-title,
body.dark-mode .section-post .post-title a {
    color: #ffffff !important;
}

body.dark-mode .post-title a:hover {
    color: var(--primary, #00c46e) !important;
}

body.dark-mode .post-excerpt,
body.dark-mode .result-excerpt,
body.dark-mode .category-post-item .post-excerpt {
    color: #b0b0b0 !important;
}

/* معلومات المقال في الوضع المظلم */
body.dark-mode .post-meta,
body.dark-mode .post-meta-footer,
body.dark-mode .post-date-badge,
body.dark-mode .meta-date {
    color: #b0b0b0 !important;
}

/* الفواصل في الوضع المظلم */
body.dark-mode .category-post-item,
body.dark-mode .category-posts .category-post-item {
    border-color: #2c2c2c !important;
}

body.dark-mode .post-content-wrap {
    background: #1a1a1a !important;
}

/* الصفحات */
body.dark-mode .single-page .entry-header {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
}

body.dark-mode .single-page .entry-title {
    color: #ffffff;
}

body.dark-mode .single-page .entry-meta {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

body.dark-mode .single-page .entry-content,
body.dark-mode .page-content {
    color: #e0e0e0;
}

body.dark-mode .single-page .entry-content h2,
body.dark-mode .single-page .entry-content h3,
body.dark-mode .page-content h2,
body.dark-mode .page-content h3 {
    color: #ffffff;
}

/* الصفحة الرئيسية */
body.dark-mode .home-section {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

/* الترقيم */
body.dark-mode .pagination-wrapper {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
}

body.dark-mode .pagination .page-numbers {
    background: #2c2c2c;
    border-color: #3c3c3c;
    color: #e0e0e0;
}

body.dark-mode .pagination .page-numbers:hover,
body.dark-mode .pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary), #00d87a);
    border-color: var(--primary);
    color: #000;
}

/* القوائم الفرعية */
body.dark-mode .main-nav .sub-menu {
    background: #1a1a1a;
    border-color: var(--primary);
}

body.dark-mode .main-nav .sub-menu li a {
    color: #e0e0e0;
}

body.dark-mode .main-nav .sub-menu li a:hover {
    background: linear-gradient(90deg, rgba(0,196,110,0.2), transparent);
}

/* البحث */
body.dark-mode .search-box {
    background: #1a1a1a;
}

body.dark-mode .search-box input {
    background: #2c2c2c;
    border-color: #3c3c3c;
    color: #e0e0e0;
}

/* الـ Sidebar */
body.dark-mode .widget {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

body.dark-mode .widget-title {
    color: #ffffff;
}

/* Smooth Transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}



