/*
Theme Name: تیترنما
Theme URI: almaee
Author: almaee
Author URI: almaee
Description: قالب خبرخوان وردپرسی «تیترنما» - نمایش تیتر اخبار از منابع مختلف با دسته‌بندی موضوعی، پربازدیدها، ابر تگ جستجو، باکس قیمت طلا/دلار/بورس و نمایش زنده اخبار. برای مشاهده کامل خبر، آیفریم سایت منبع باز می‌شود. این قالب همراه با افزونه اختصاصی «تیترنما - خبرخوان RSS» کار می‌کند.
Version: 1.0.0
Text Domain: titrnama-theme
Tags: news, rss, right-to-left, persian
*/

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: #eef0f3;
	color: #232323;
	direction: rtl;
	font-size: 14px;
	line-height: 1.9;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.site-header-top {
	background: var(--titrnama-header-bg, #20232a);
	color: #cfd3da;
	font-size: 12px;
}
.site-header-top .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.site-header-top a { color: #cfd3da; text-decoration: none; margin-inline-start: 14px; }
.site-header-top a:hover { color: #fff; }

.site-header-main { background: #fff; border-bottom: 3px solid var(--titrnama-accent, #1866c4); }
.site-header-main .container { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; }
.site-logo { font-size: 26px; font-weight: 800; text-decoration: none; color: #1a1a1a; }
.site-logo span { color: var(--titrnama-accent, #1866c4); }
.site-tagline { font-size: 12px; color: #888; margin-top: 4px; }

.site-search-form { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.site-search-form input[type=search] { border: 0; padding: 8px 12px; width: 220px; font-family: inherit; }
.site-search-form button { border: 0; background: var(--titrnama-accent, #1866c4); color: #fff; padding: 0 16px; cursor: pointer; }

.main-navigation { background: #20232a; }
.main-navigation ul { display: flex; list-style: none; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 12px 18px; color: #e6e8ec; text-decoration: none; font-size: 14px; }
.main-navigation a:hover, .main-navigation li.current-menu-item > a { background: var(--titrnama-accent, #1866c4); color: #fff; }

/* ===== Layout ===== */
.site-content-wrap { padding: 22px 0 40px; }
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .content-with-sidebar { grid-template-columns: 1fr; } }

/* ===== Category boxes on homepage ===== */
.titrnama-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
@media (max-width: 900px) { .titrnama-cat-grid { grid-template-columns: 1fr; } }
.titrnama-cat-box { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.titrnama-cat-box-header { background: #fff; border-bottom: 3px solid var(--titrnama-accent, #1866c4); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.titrnama-cat-box-header h2 { font-size: 15px; margin: 0; font-weight: 700; }
.titrnama-cat-box-header a { font-size: 11px; color: #999; text-decoration: none; }
.titrnama-cat-box ul { list-style: none; padding: 6px 14px; margin: 0; }
.titrnama-cat-box li { padding: 9px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.titrnama-cat-box li:last-child { border-bottom: 0; }
.titrnama-cat-box li a { text-decoration: none; color: #333; }
.titrnama-cat-box li a:hover { color: var(--titrnama-accent, #1866c4); }
.titrnama-cat-box li:before { content: "◆"; color: var(--titrnama-accent, #1866c4); font-size: 8px; margin-inline-end: 6px; }

/* ===== Live news box ===== */
.titrnama-live-wrap { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 24px; }
.titrnama-live-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 3px solid #d0392b; }
.titrnama-live-header h2 { font-size: 15px; margin: 0; }
.titrnama-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #d0392b; animation: titrnama-pulse 1.4s infinite; }
@keyframes titrnama-pulse { 0% { opacity: 1; } 50% { opacity: .25; } 100% { opacity: 1; } }

/* ===== Post list widgets (used in template-parts) ===== */
.titrnama-list { list-style: none; }
.titrnama-list li { padding: 9px 0; border-bottom: 1px solid #f1f1f1; font-size: 13px; }
.titrnama-list li a { text-decoration: none; color: #262626; }
.titrnama-list li a:hover { color: var(--titrnama-accent, #1866c4); }

/* ===== Single post ===== */
.single-news-header { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.single-news-header h1 { font-size: 22px; margin: 0 0 10px; }
.single-news-meta { font-size: 12px; color: #888; display: flex; gap: 14px; flex-wrap: wrap; }
.single-news-meta .badge { background: #f1f4f8; color: var(--titrnama-accent, #1866c4); padding: 2px 10px; border-radius: 20px; }
.single-news-summary { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); line-height: 2.1; }
.single-news-source-btn { display: inline-block; background: var(--titrnama-accent, #1866c4); color: #fff !important; padding: 10px 22px; border-radius: 4px; text-decoration: none; font-size: 13px; }
.single-news-iframe-wrap { background: #fff; border-radius: 6px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.single-news-iframe-wrap iframe { width: 100%; height: 900px; border: 1px solid #eee; border-radius: 4px; }
.titrnama-iframe-fallback { text-align: center; padding: 30px; color: #888; font-size: 13px; }

/* ===== Widgets ===== */
.widget-title { font-size: 14px; font-weight: 700; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--titrnama-accent, #1866c4); }
.titrnama-widget { background: #fff; border-radius: 6px; padding: 16px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }

/* ===== Footer ===== */
.site-footer { background: #20232a; color: #ccc; margin-top: 30px; }
.site-footer .container { padding: 28px 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.site-footer .widget-title { color: #fff; border-color: var(--titrnama-accent, #1866c4); }
.site-footer .titrnama-widget { background: transparent; box-shadow: none; padding: 0; }
.site-footer-bottom { background: #16181c; text-align: center; padding: 14px; font-size: 12px; color: #999; }
@media (max-width: 700px) { .site-footer .container { grid-template-columns: 1fr; } }

/* ===== Contact / About / Links pages ===== */
.page-box { background: #fff; border-radius: 6px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.titrnama-contact-form input, .titrnama-contact-form textarea { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.titrnama-contact-form button { background: var(--titrnama-accent, #1866c4); color: #fff; border: 0; padding: 10px 26px; border-radius: 4px; cursor: pointer; }
.titrnama-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .titrnama-links-grid { grid-template-columns: 1fr 1fr; } }
.titrnama-links-grid a { display: block; background: #f7f8fa; border-radius: 6px; padding: 14px; text-align: center; text-decoration: none; color: #333; font-size: 13px; }
.titrnama-links-grid a:hover { background: var(--titrnama-accent, #1866c4); color: #fff; }
