/*
Theme Name: دانشنامه سیستان (Sistan Encyclopedia)
Theme URI: https://sistanpedia.ir
Author: Sistan Encyclopedia Team
Description: قالب علمی، پژوهشی و تک‌زبانه فارسی برای دانشنامه سیستان با چیدمان الهام‌گرفته از دانشنامه‌های مرجع.
Version: 1.0.0
Text Domain: sistan-encyclopedia
*/

:root {
    --primary-crimson: #6b1525;
    --primary-navy: #1b2a4a;
    --bg-cream: #f8f6f1;
    --bg-white: #ffffff;
    --border-light: #e0dad0;
    --text-dark: #1f2421;
    --text-muted: #5a5e66;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
}

a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-crimson);
}

/* Header & Navbar */
.site-header {
    background-color: var(--primary-crimson);
    color: #fff;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    flex-wrap: wrap;
}

.site-branding a {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.site-branding span {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #f5ecee;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 4px;
}

.main-navigation a:hover {
    color: #ffffff;
    border-bottom: 2px solid #f2c94c;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-icon-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* Main Wrapper with Sidebar */
.page-container {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
}

@media (max-width: 960px) {
    .page-container {
        grid-template-columns: 1fr;
    }
}

/* Hero Banner */
.hero-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #1b365d 0%, #2a528a 50%, #7d5a38 100%);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-bottom: 28px;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 28, 48, 0.35), rgba(15, 28, 48, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    width: 100%;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 17px;
    color: #f0ebe1;
    margin-bottom: 24px;
}

.hero-search-form {
    display: flex;
    background: #fff;
    border-radius: 30px;
    padding: 6px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    max-width: 560px;
    margin: 0 auto;
}

.hero-search-form input {
    border: none;
    outline: none;
    flex: 1;
    font-family: inherit;
    font-size: 15px;
    padding: 8px 10px;
    color: var(--text-dark);
}

.hero-search-form button {
    background: var(--primary-crimson);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 8px 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* Three Columns Grid */
.articles-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .articles-columns {
        grid-template-columns: 1fr;
    }
}

.column-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 18px;
}

.column-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-navy);
    border-bottom: 2px solid var(--primary-crimson);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.mini-entry-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ece3;
}

.mini-entry-item:last-child {
    border-bottom: none;
}

.mini-entry-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    background: #e9e3d5;
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-crimson);
    font-weight: bold;
    font-size: 12px;
}

.mini-entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-entry-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-entry-info p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Timeline Sidebar */
.timeline-sidebar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 18px;
    height: fit-content;
}

.timeline-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-crimson);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.timeline-list {
    list-style: none;
    border-right: 2px solid #d5cebf;
    padding-right: 14px;
}

.timeline-list li {
    position: relative;
    margin-bottom: 14px;
    font-size: 13.5px;
}

.timeline-list li::before {
    content: "";
    position: absolute;
    right: -19px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-crimson);
}

/* Single Entry Article */
.single-entry-container {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 36px 42px;
    max-width: 900px;
    margin: 24px auto;
}

.single-entry-title {
    font-size: 30px;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.sistan-entry-meta-box {
    background-color: #f8f6f0;
    border-right: 4px solid var(--primary-crimson);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14.5px;
    border-radius: 4px;
}

.sistan-abstract {
    background-color: #fdfcf9;
    border: 1px solid var(--border-light);
    padding: 18px 22px;
    margin-bottom: 28px;
    border-radius: 6px;
    font-size: 16px;
}

.entry-body-text {
    font-size: 17px;
    line-height: 2;
    text-align: justify;
}

.entry-body-text h2 {
    color: var(--primary-navy);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
    margin: 32px 0 14px;
    font-size: 22px;
}

.sistan-references {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 2px solid var(--primary-crimson);
}

.sistan-references h3 {
    color: var(--primary-crimson);
    margin-bottom: 12px;
}

.sistan-references ol {
    padding-right: 22px;
    font-size: 15px;
}

.sistan-citation-box {
    margin-top: 28px;
    background-color: #f3f5f8;
    border: 1px solid #cfd7e3;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 14px;
}

.sistan-citation-box p {
    margin: 8px 0 12px;
    background: #fff;
    padding: 10px;
    border: 1px dashed #b0bccf;
}

.sistan-citation-box button {
    background-color: var(--primary-navy);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: #212529;
    color: #d6d8db;
    margin-top: 48px;
    padding: 36px 24px 20px;
    font-size: 13.5px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #373c42;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 6px;
}

.footer-grid a {
    color: #adb5bd;
}

.footer-bottom {
    max-width: 1280px;
    margin: 16px auto 0;
    text-align: center;
    font-size: 12.5px;
    color: #9aa0a6;
}