/*
Theme Name: MTW
Theme URI: https://example.com/
Author: MTW Dev Team
Description: Custom theme for My Trading Wiki.
Version: 1.0.0
Text Domain: mtw
*/

html {
    direction: rtl;
}

body {
    font-family: "Noto Sans Arabic", "Inter", sans-serif;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

.entry-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.entry-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    border-right: 5px solid #0d59f2;
    padding-right: 1rem;
}

.entry-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #0d59f2;
}

.entry-content h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.entry-content h5,
.entry-content h6 {
    font-size: 1.1rem;
}

.mtw-inline-related h3,
.mtw-inline-related__card h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-top: 0;
}

.dark .mtw-inline-related h3,
.dark .mtw-inline-related__card h4 {
    color: #fff;
}

.dark .entry-content h1,
.dark .entry-content h2,
.dark .entry-content h3,
.dark .entry-content h4,
.dark .entry-content h5,
.dark .entry-content h6 {
    color: #fff;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-right: 4px solid #0d59f2;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #eff4ff;
    border-radius: 1rem;
    font-style: italic;
}

.dark .entry-content blockquote {
    background: rgba(13, 89, 242, 0.1);
    border-color: rgba(13, 89, 242, 0.4);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.entry-content table th,
.entry-content table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: right;
}

.dark .entry-content table th,
.dark .entry-content table td {
    border-color: #2d3748;
}

.entry-content table th {
    background: #f8fafc;
    font-weight: 600;
}

.navigation.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    min-width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid #cbd5f5;
    color: #0f172a;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fff;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
    background: #0d59f2;
    border-color: #0d59f2;
    color: #fff;
}

.dark .navigation.pagination .page-numbers {
    border-color: #2d3748;
    background: #1a1d24;
    color: #e2e8f0;
}

.dark .navigation.pagination .page-numbers.current,
.dark .navigation.pagination .page-numbers:hover {
    background: #0d59f2;
    border-color: #0d59f2;
    color: #fff;
}

/* Custom scrollbar to match light theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f6f8;
}

::-webkit-scrollbar-thumb {
    background: #c5ccda;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca6ba;
}
