/*
Theme Name: Dara
Theme URI: https://Daracom.ir
Author: You
Author URI: https://Daracom.ir
Description: قالب دارا
Version: 1.0
License: GPLv2
Text Domain: daratheme
*/

/* ===== فونت ایران‌سنس ===== */
@font-face {
	font-family: 'iransans';
	src: url('https://daracom.ir/wp-content/uploads/2026/07/iransans.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

body {
    font-family: 'Iran Sans', Tahoma, Geneva, Verdana, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.8;
    padding: 20px;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 50px;
    box-shadow: 0 0 30px rgba(0,0,0,0.04);
    border-radius: 6px;
}

/* ===== هدر ===== */
.site-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 35px;
}

.header-top {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* لوگوی متنی نمونه */
.site-logo-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-link {
    text-decoration: none;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: #1D9BF0;
    font-size: 28px;
    font-weight: 300;
}

/* لوگوی تصویری (وقتی آپلود بشه) */
.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title-group {
    flex: 1;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #111;
}

.site-description {
    color: #777;
    font-size: 15px;
    margin-top: 2px;
}

/* ===== منوی ناوبری ===== */
.main-nav {
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: #f5f5f5;
    transition: all 0.3s;
    display: inline-block;
}

.main-menu a:hover {
    background: #1D9BF0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
}

.main-menu .current-menu-item a {
    background: #1D9BF0;
    color: #fff;
}

/* ===== رنگ آبی ===== */
a {
    color: #1D9BF0;
    transition: color 0.3s;
}

a:hover {
    color: #0a6fb5;
}

.post-title a {
    color: #111;
}

.post-title a:hover {
    color: #1D9BF0;
}

.read-more {
    color: #1D9BF0;
    border-bottom-color: #1D9BF0;
}

.read-more:hover {
    border-bottom-color: #0a6fb5;
    color: #0a6fb5;
}

.single-content a {
    color: #1D9BF0;
    text-decoration: underline;
}

/* ===== لیست مطالب ===== */
.post-item {
    margin-bottom: 45px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

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

.post-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.post-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 14px;
}

.post-meta span {
    margin-left: 12px;
}

.post-excerpt {
    font-size: 16px;
    color: #2a2a2a;
}

.post-excerpt p {
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #ddd;
    transition: border-color 0.3s;
}

/* ===== صفحه‌بندی ===== */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers.current {
    background: #1D9BF0;
    color: #fff;
    border-color: #1D9BF0;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f0f0f0;
}

/* ===== صفحه تک مطلب ===== */
.single-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.single-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
}

.single-content {
    font-size: 17px;
    line-height: 1.9;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 26px;
    color: #1D9BF0;
}

.single-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 22px;
}

.single-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.single-content ul, 
.single-content ol {
    margin-right: 25px;
    margin-bottom: 20px;
}

.single-content blockquote {
    border-right: 4px solid #1D9BF0;
    padding-right: 20px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

/* ===== فوتر ===== */
.site-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid #eee;
    font-size: 14px;
    color: #999;
    text-align: center;
}

.site-footer a {
    color: #999;
    text-decoration: none;
}

.site-footer a:hover {
    color: #1D9BF0;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 650px) {
    .container {
        padding: 20px 18px;
    }
    .post-title {
        font-size: 22px;
    }
    .single-title {
        font-size: 26px;
    }
    .site-logo-text {
        font-size: 24px;
    }
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-menu {
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .main-menu a {
        text-align: center;
        padding: 12px;
    }
}