/*
Theme Name: طرهان وب
Theme URI: https://tarhanweb.ir
Author: طرهان وب
Author URI: https://tarhanweb.ir
Description: قالب خبری حرفه‌ای سه‌ستونه با امکانات پیشرفته - طراحی و توسعه طرهان وب
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tarhanweb
Tags: news, rtl-language, three-columns, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options
*/

/* ========================================
   CSS Variables & Root
======================================== */
:root {
    --primary-color: #c0392b;
    --primary-dark: #922b21;
    --primary-light: #e74c3c;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --bg-color: #f5f5f5;
    --bg-white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --header-bg: #c0392b;
    --header-text: #ffffff;
    --topbar-bg: #1a252f;
    --footer-bg: #1a252f;
    --footer-text: #ecf0f1;
    --breaking-bg: #e74c3c;
    --breaking-text: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-main: 'Vazirmatn', 'Tahoma', sans-serif;
    --font-title: 'Vazirmatn', 'Tahoma', sans-serif;
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    font-size: 14px;
}
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========================================
   Typography
======================================== */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary-color);
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}
.wrapper { display: flex; gap: 20px; }
.main-content { flex: 1; min-width: 0; }

/* ========================================
   Top Bar
======================================== */
#topbar {
    background-color: var(--topbar-bg);
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 2px solid var(--primary-color);
}
#topbar .topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
#topbar .topbar-right { display: flex; align-items: center; gap: 15px; }
#topbar .topbar-left { display: flex; align-items: center; gap: 10px; }
#topbar .topbar-date { color: #aaa; }
#topbar .topbar-weather {
    display: flex; align-items: center; gap: 5px; color: #aaa;
}
#topbar .social-links { display: flex; gap: 8px; }
#topbar .social-links a {
    color: #aaa; font-size: 14px; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.08);
    transition: var(--transition);
}
#topbar .social-links a:hover { background: var(--primary-color); color: #fff; }

/* ========================================
   Header
======================================== */
#site-header {
    background: var(--header-bg);
    padding: 15px 0;
    position: relative;
    box-shadow: var(--shadow-md);
}
#site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
#site-logo a {
    display: flex; align-items: center; gap: 12px; color: var(--header-text);
}
#site-logo img { border-radius: var(--radius-sm); }
.site-title {
    font-size: 28px; font-weight: 900; color: var(--header-text);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); letter-spacing: -0.5px;
}
.site-tagline { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.header-ad-banner {
    flex: 1; max-width: 500px; text-align: center;
}
.header-ad-banner img { border-radius: var(--radius-sm); margin: 0 auto; }
.header-search { position: relative; }
.header-search input {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px; padding: 8px 40px 8px 15px; color: #fff;
    font-family: var(--font-main); font-size: 13px; width: 220px;
    transition: var(--transition); direction: rtl;
}
.header-search input::placeholder { color: rgba(255,255,255,0.6); }
.header-search input:focus { outline: none; background: rgba(255,255,255,0.25); width: 260px; }
.header-search button {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #fff; cursor: pointer; font-size: 14px;
}

/* ========================================
   Navigation
======================================== */
#main-nav {
    background: var(--secondary-color);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#main-nav .nav-inner { position: relative; }
#main-nav ul { display: flex; flex-wrap: wrap; }
#main-nav ul li { position: relative; }
#main-nav ul li a {
    display: block; padding: 13px 16px; color: #ecf0f1;
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item > a { background: var(--primary-color); color: #fff; }
/* Dropdown */
#main-nav ul li ul {
    position: absolute; top: 100%; right: 0; min-width: 200px;
    background: var(--secondary-color); flex-direction: column;
    display: none; z-index: 999; box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--primary-color); flex-wrap: nowrap;
}
#main-nav ul li:hover > ul { display: flex; }
#main-nav ul li ul li a {
    border-left: none; border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 16px; font-size: 13px;
}
/* Hamburger */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 12px 15px; color: #fff; font-size: 22px;
}
.mobile-menu-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998;
}
.mobile-menu-overlay.active { display: block; }
#mobile-nav {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: var(--secondary-color); z-index: 999; overflow-y: auto;
    transition: right 0.3s ease; padding-bottom: 30px;
}
#mobile-nav.open { right: 0; }
#mobile-nav .mobile-nav-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; background: var(--primary-color); color: #fff;
}
#mobile-nav .mobile-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
#mobile-nav ul { padding: 10px 0; }
#mobile-nav ul li a {
    display: block; padding: 12px 20px; color: #ecf0f1; font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06); transition: var(--transition);
}
#mobile-nav ul li a:hover { background: var(--primary-color); padding-right: 28px; }
#mobile-nav ul li ul { padding: 0; background: rgba(0,0,0,0.15); }
#mobile-nav ul li ul li a { padding-right: 36px; font-size: 13px; }

/* ========================================
   Breaking News
======================================== */
#breaking-news {
    background: var(--breaking-bg);
    padding: 0;
    overflow: hidden;
    position: relative;
}
.breaking-news-inner {
    display: flex; align-items: stretch; height: 40px;
}
.breaking-label {
    background: var(--secondary-color); color: #fff; padding: 0 18px;
    font-weight: 800; font-size: 13px; white-space: nowrap;
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    position: relative; z-index: 1;
}
.breaking-label::after {
    content: ''; position: absolute; left: -10px; top: 0; bottom: 0;
    width: 20px; background: var(--secondary-color); clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.breaking-label .blink { animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.breaking-ticker { flex: 1; overflow: hidden; display: flex; align-items: center; }
.breaking-ticker-inner {
    display: flex; white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}
.breaking-ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.breaking-ticker-inner a {
    color: #fff; font-size: 13px; font-weight: 600; padding: 0 25px;
    display: inline-block;
}
.breaking-ticker-inner a::after { content: ' ◀ '; color: rgba(255,255,255,0.5); }
.breaking-nav { display: flex; align-items: center; gap: 2px; padding: 0 10px; flex-shrink: 0; }
.breaking-nav button {
    background: rgba(0,0,0,0.2); border: none; color: #fff; width: 26px; height: 26px;
    border-radius: 3px; cursor: pointer; font-size: 12px; transition: var(--transition);
}
.breaking-nav button:hover { background: rgba(0,0,0,0.4); }

/* ========================================
   Slider Section
======================================== */
#slider-section { padding: 20px 0 10px; }
.slider-wrapper { display: flex; gap: 15px; }
.main-slider-box { flex: 1; position: relative; overflow: hidden; border-radius: var(--radius-md); }
.slider-container {
    position: relative; overflow: hidden; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); min-height: 380px;
}
.slider-track { display: flex; transition: transform 0.6s ease; height: 380px; }
.slide {
    min-width: 100%; position: relative; overflow: hidden;
}
.slide img { width: 100%; height: 380px; object-fit: cover; }
.slide-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px 20px 20px;
}
.slide-category {
    background: var(--primary-color); color: #fff; padding: 3px 10px;
    border-radius: 3px; font-size: 11px; font-weight: 700;
    display: inline-block; margin-bottom: 8px;
}
.slide-title {
    color: #fff; font-size: 18px; font-weight: 700; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-meta { color: rgba(255,255,255,0.7); font-size: 11px; margin-top: 5px; }
.slider-controls {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
    cursor: pointer; transition: var(--transition); border: none;
}
.slider-dot.active { background: #fff; width: 20px; border-radius: 4px; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(255,255,255,0.85); border: none; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 14px; transition: var(--transition);
    box-shadow: var(--shadow-md); color: var(--secondary-color);
}
.slider-arrow:hover { background: var(--primary-color); color: #fff; }
.slider-prev { right: 10px; }
.slider-next { left: 10px; }

/* Popular News Widget (next to slider) */
.popular-news-widget {
    width: 280px; flex-shrink: 0;
    background: var(--bg-white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.widget-header {
    background: var(--primary-color); color: #fff;
    padding: 12px 15px; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; gap: 8px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.widget-header .widget-icon { font-size: 16px; }
.popular-news-list { padding: 10px; }
.popular-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px dashed var(--border-color);
}
.popular-item:last-child { border-bottom: none; }
.popular-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary-color); color: #fff;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.popular-item:nth-child(1) .popular-num { background: #e74c3c; }
.popular-item:nth-child(2) .popular-num { background: #e67e22; }
.popular-item:nth-child(3) .popular-num { background: #f1c40f; color: #333; }
.popular-item-content h4 {
    font-size: 12.5px; line-height: 1.5; color: var(--secondary-color);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.popular-item-content h4:hover { color: var(--primary-color); }
.popular-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ========================================
   Three Column Layout
======================================== */
#main-grid { padding: 20px 0; }
.three-col-grid { display: grid; grid-template-columns: 1fr 280px 220px; gap: 20px; }

/* Column 1 - Latest News */
.col-latest-news .section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 15px; border-bottom: 3px solid var(--primary-color); padding-bottom: 10px;
}
.section-title {
    font-size: 16px; font-weight: 800; color: var(--secondary-color);
    display: flex; align-items: center; gap: 8px;
}
.section-title::before {
    content: ''; width: 4px; height: 20px; background: var(--primary-color);
    border-radius: 2px; display: block;
}
.section-more { font-size: 12px; color: var(--primary-color); font-weight: 600; }
.section-more:hover { color: var(--primary-dark); }

.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.news-card {
    background: var(--bg-white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition);
    border: 1px solid var(--border-color);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card.featured { grid-column: 1 / -1; display: flex; gap: 0; }
.news-card.featured .card-img { width: 45%; flex-shrink: 0; }
.news-card.featured .card-body { padding: 15px; flex: 1; }
.card-img { position: relative; overflow: hidden; }
.card-img a { display: block; }
.card-img img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .card-img img { transform: scale(1.05); }
.card-category {
    position: absolute; top: 8px; right: 8px;
    background: var(--primary-color); color: #fff;
    padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700;
}
.card-body { padding: 12px; }
.card-title {
    font-size: 13.5px; font-weight: 700; line-height: 1.6; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { color: var(--secondary-color); }
.card-title a:hover { color: var(--primary-color); }
.card-excerpt {
    font-size: 12px; color: var(--text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 8px;
}
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-muted); }
.card-meta span { display: flex; align-items: center; gap: 3px; }

/* Column 2 - Widgets */
.col-widgets { display: flex; flex-direction: column; gap: 15px; }

/* Column 3 - Ads */
.col-ads { display: flex; flex-direction: column; gap: 15px; }
.ad-box {
    background: var(--bg-white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); overflow: hidden; border: 1px dashed var(--border-color);
    text-align: center; padding: 10px;
}
.ad-box img { border-radius: var(--radius-sm); margin: 0 auto; }
.ad-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #ccc; border-radius: var(--radius-md);
    padding: 30px 15px; text-align: center; color: #999; font-size: 12px;
}
.ad-placeholder .ad-size { font-size: 11px; color: #bbb; margin-top: 5px; }

/* ========================================
   Widgets Styling
======================================== */
.widget-box {
    background: var(--bg-white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border-color);
    margin-bottom: 15px;
}
.widget-box .widget-header { border-radius: 0; }
.widget-box .widget-body { padding: 12px; }

/* News list in widgets */
.widget-news-list li {
    padding: 8px 0; border-bottom: 1px dashed var(--border-color);
    display: flex; gap: 8px; align-items: flex-start;
}
.widget-news-list li:last-child { border-bottom: none; }
.widget-news-list li::before {
    content: '▪'; color: var(--primary-color); flex-shrink: 0; margin-top: 3px;
}
.widget-news-list li a {
    color: var(--text-color); font-size: 12.5px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.widget-news-list li a:hover { color: var(--primary-color); }

/* Round image news */
.widget-round-news li {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px dashed var(--border-color);
}
.widget-round-news li:last-child { border-bottom: none; }
.widget-round-img {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--primary-color);
}
.widget-round-news li a { font-size: 12px; color: var(--text-color); line-height: 1.5; }
.widget-round-news li a:hover { color: var(--primary-color); }

/* Important news colors */
.widget-important-news li {
    display: flex; gap: 8px; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px dashed var(--border-color);
}
.widget-important-news li:last-child { border-bottom: none; }
.imp-badge {
    padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 700;
    flex-shrink: 0; color: #fff;
}
.imp-badge.green { background: #27ae60; }
.imp-badge.red { background: #e74c3c; }
.widget-important-news li a { font-size: 12.5px; color: var(--text-color); line-height: 1.5; }

/* Prayer Times */
.prayer-times-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px;
}
.prayer-item {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-sm); padding: 10px; text-align: center; color: #fff;
}
.prayer-item .prayer-name { font-size: 11px; opacity: 0.85; margin-bottom: 3px; }
.prayer-item .prayer-time { font-size: 16px; font-weight: 700; }

/* Weather Widget */
.weather-widget-body {
    padding: 15px; background: linear-gradient(135deg, #1e3c72, #2a5298); color: #fff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.weather-main { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.weather-temp { font-size: 40px; font-weight: 300; }
.weather-info .weather-city { font-size: 16px; font-weight: 700; }
.weather-info .weather-desc { font-size: 13px; opacity: 0.8; }
.weather-icon { font-size: 50px; }
.weather-details { display: flex; gap: 15px; font-size: 12px; opacity: 0.85; flex-wrap: wrap; }
.weather-details span { display: flex; align-items: center; gap: 4px; }

/* Poll Widget */
.poll-widget .poll-question { font-size: 13px; font-weight: 700; padding: 12px; color: var(--secondary-color); }
.poll-option { padding: 8px 12px; }
.poll-option label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.poll-option input[type="radio"] { accent-color: var(--primary-color); }
.poll-bar-wrap { margin-top: 4px; background: #eee; border-radius: 10px; height: 6px; overflow: hidden; }
.poll-bar { height: 100%; background: var(--primary-color); border-radius: 10px; transition: width 0.5s; }
.poll-percent { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.poll-btn {
    display: block; width: calc(100% - 24px); margin: 0 12px 12px;
    background: var(--primary-color); color: #fff; border: none; border-radius: var(--radius-sm);
    padding: 10px; font-family: var(--font-main); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
}
.poll-btn:hover { background: var(--primary-dark); }

/* Newspapers Slider Widget */
.newspapers-slider { overflow: hidden; padding: 10px; }
.newspapers-track { display: flex; gap: 10px; transition: transform 0.4s ease; }
.newspaper-item {
    min-width: calc(50% - 5px); border-radius: var(--radius-sm); overflow: hidden;
    box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.newspaper-item img { width: 100%; height: 120px; object-fit: cover; }
.newspaper-item p { font-size: 11px; padding: 5px 8px; color: var(--text-color); }

/* Social Widget */
.social-widget { padding: 12px; }
.social-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-radius: var(--radius-sm); margin-bottom: 8px;
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: var(--transition);
}
.social-item:hover { transform: translateX(-3px); box-shadow: var(--shadow-md); }
.social-item.telegram { background: #0088cc; }
.social-item.instagram { background: linear-gradient(45deg, #405de6, #833ab4, #c13584, #e1306c, #fd1d1d); }
.social-item.twitter { background: #1da1f2; }
.social-item.aparat { background: #ee0000; }
.social-item.eitaa { background: #0bc763; }
.social-item.rubika { background: #8B5CF6; }
.social-item.bale { background: #0062c1; }
.social-item.soroush { background: #f98b00; }
.social-item .social-count { margin-right: auto; font-size: 11px; opacity: 0.85; }

/* Photo/Video Section */
#media-section { padding: 15px 0; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.media-box { background: var(--bg-white); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; }
.media-slider-track { display: flex; transition: transform 0.5s ease; }
.media-slide { min-width: 100%; position: relative; }
.media-slide img, .media-slide video {
    width: 100%; height: 260px; object-fit: cover; display: block;
}
.media-slide-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 15px 12px; color: #fff;
}
.media-slide-overlay p { font-size: 13px; font-weight: 600; }
.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 56px; height: 56px; background: rgba(255,255,255,0.9); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--primary-color); cursor: pointer;
    transition: var(--transition); box-shadow: var(--shadow-lg);
}
.play-btn:hover { background: var(--primary-color); color: #fff; transform: translate(-50%,-50%) scale(1.1); }
.media-nav-dots { display: flex; justify-content: center; gap: 6px; padding: 10px; }
.media-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border-color);
    cursor: pointer; border: none; transition: var(--transition);
}
.media-dot.active { background: var(--primary-color); }
.media-arrows { display: flex; justify-content: center; gap: 10px; padding: 0 10px 10px; }
.media-arrow {
    background: var(--primary-color); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 13px; transition: var(--transition);
}
.media-arrow:hover { background: var(--primary-dark); }

/* ========================================
   Single Post
======================================== */
.single-post-container { max-width: 860px; }
.post-header { margin-bottom: 20px; }
.post-rotitle {
    font-size: 12px; color: var(--primary-color); font-weight: 700;
    margin-bottom: 5px; display: flex; align-items: center; gap: 5px;
}
.post-rotitle::before { content: '◀'; font-size: 10px; }
.post-title {
    font-size: 24px; font-weight: 900; line-height: 1.5;
    color: var(--secondary-color); margin-bottom: 12px;
}
.post-lead {
    font-size: 15px; font-weight: 600; color: var(--text-color);
    line-height: 1.7; border-right: 4px solid var(--primary-color);
    padding-right: 15px; background: rgba(192,57,43,0.05);
    padding: 12px 15px 12px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 15px;
}
.post-meta-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 15px;
    padding: 10px 0; border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color); margin-bottom: 15px;
}
.post-meta-bar .meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.post-meta-bar .meta-item strong { color: var(--secondary-color); }
.post-news-code { background: #f0f0f0; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-family: monospace; }
.post-actions {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.action-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: var(--radius-sm); font-size: 12px;
    font-family: var(--font-main); font-weight: 600; cursor: pointer;
    border: 1px solid var(--border-color); background: #fff;
    color: var(--text-color); transition: var(--transition);
}
.action-btn:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.action-btn.btn-print { background: #2c3e50; color: #fff; border-color: #2c3e50; }
.action-btn.btn-copy { background: #27ae60; color: #fff; border-color: #27ae60; }
.post-social-share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-social-share span { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.share-btn {
    padding: 6px 12px; border-radius: 3px; font-size: 11px; font-weight: 700;
    color: #fff; border: none; cursor: pointer; transition: var(--transition);
}
.share-btn.eitaa { background: #0bc763; }
.share-btn.rubika { background: #8B5CF6; }
.share-btn.bale { background: #0062c1; }
.share-btn.soroush { background: #f98b00; }
.share-btn.telegram { background: #0088cc; }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Zoom controls */
.zoom-controls { display: flex; align-items: center; gap: 5px; }
.zoom-btn {
    width: 28px; height: 28px; border-radius: 50%; background: #eee; border: none;
    cursor: pointer; font-size: 14px; font-weight: 700; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; color: var(--secondary-color);
}
.zoom-btn:hover { background: var(--primary-color); color: #fff; }
#post-content { font-size: 15px; line-height: 2; color: var(--text-color); }
#post-content p { margin-bottom: 15px; }
#post-content img { border-radius: var(--radius-md); margin: 15px 0; }
#post-content h2 { font-size: 18px; margin: 20px 0 10px; color: var(--secondary-color); }
#post-content blockquote {
    border-right: 4px solid var(--primary-color); padding: 10px 15px;
    background: #f9f9f9; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 15px 0;
    font-style: italic; color: var(--text-light);
}

/* Screenshot button */
.btn-screenshot {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; background: #8e44ad; color: #fff; border: none;
    border-radius: var(--radius-sm); font-family: var(--font-main);
    font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-screenshot:hover { background: #6c3483; }

/* Reporter Card */
.reporter-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    border-radius: var(--radius-lg); padding: 25px; margin-top: 25px;
    display: flex; gap: 20px; align-items: center; color: #fff;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.reporter-card::before {
    content: ''; position: absolute; top: -30px; left: -30px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.reporter-card::after {
    content: ''; position: absolute; bottom: -40px; right: 60px;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.reporter-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary-color); flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(192,57,43,0.3);
}
.reporter-avatar-default {
    width: 80px; height: 80px; border-radius: 50%; background: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #fff; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.3);
}
.reporter-info { flex: 1; }
.reporter-label { font-size: 11px; opacity: 0.7; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 1px; }
.reporter-name { font-size: 18px; font-weight: 800; margin-bottom: 5px; }
.reporter-bio { font-size: 12px; opacity: 0.8; line-height: 1.6; margin-bottom: 10px; }
.reporter-stats { display: flex; gap: 15px; }
.reporter-stat { text-align: center; }
.reporter-stat .stat-num { font-size: 18px; font-weight: 700; color: #f1c40f; }
.reporter-stat .stat-label { font-size: 10px; opacity: 0.7; }

/* Comments */
.comments-section { margin-top: 30px; }
.comment-card {
    background: #fffde7; border: 1px solid #fff176;
    border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(255,193,7,0.15);
}
.comment-form-title {
    font-size: 16px; font-weight: 800; color: var(--secondary-color);
    margin-bottom: 15px; display: flex; align-items: center; gap: 8px;
}
.comment-form-title::before { content: '💬'; }
.comment-field {
    width: 100%; margin-bottom: 12px;
    padding: 10px 14px; border: 1px solid #fdd835;
    border-radius: var(--radius-sm); font-family: var(--font-main);
    font-size: 13px; background: #fff; transition: var(--transition); direction: rtl;
    color: var(--text-color);
}
.comment-field:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }
.comment-submit {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff; border: none; padding: 12px 30px;
    border-radius: var(--radius-sm); font-family: var(--font-main);
    font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition);
    box-shadow: 0 4px 12px rgba(39,174,96,0.3);
}
.comment-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(39,174,96,0.4); }
.existing-comments { margin-top: 20px; }
.comment-item {
    background: #fff; border: 1px solid #fff9c4; border-radius: var(--radius-md);
    padding: 12px; margin-bottom: 10px; border-right: 3px solid #fdd835;
}
.comment-author { font-weight: 700; font-size: 13px; color: var(--secondary-color); }
.comment-date { font-size: 11px; color: var(--text-muted); margin-right: 10px; }
.comment-body { font-size: 13px; color: var(--text-color); margin-top: 6px; line-height: 1.6; }

/* Related Posts */
.related-posts { margin-top: 25px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.related-item { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.related-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-item img { width: 100%; height: 130px; object-fit: cover; }
.related-item h4 { font-size: 12.5px; padding: 8px; color: var(--secondary-color); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item h4 a { color: inherit; }
.related-item h4 a:hover { color: var(--primary-color); }

/* ========================================
   Footer
======================================== */
#site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 30px;
}
.footer-top { padding: 40px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-about {}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { border-radius: var(--radius-sm); }
.footer-site-name { font-size: 20px; font-weight: 800; color: #fff; }
.footer-desc { font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 12px; }
.footer-col-title {
    font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 15px;
    padding-bottom: 8px; border-bottom: 2px solid var(--primary-color);
}
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
    color: rgba(255,255,255,0.6); font-size: 12.5px; transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
}
.footer-links li a::before { content: '◀'; font-size: 9px; color: var(--primary-color); }
.footer-links li a:hover { color: #fff; padding-right: 3px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary-color); color: #fff; }
.footer-bottom {
    background: rgba(0,0,0,0.25); padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.copyright { font-size: 12px; color: rgba(255,255,255,0.5); }
.copyright a { color: var(--primary-light); }
.footer-powered { font-size: 11px; color: rgba(255,255,255,0.35); }

/* ========================================
   Breadcrumb
======================================== */
.breadcrumb-bar { padding: 8px 0; background: #fff; border-bottom: 1px solid var(--border-color); margin-bottom: 15px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary-color); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-muted); }

/* ========================================
   Sticky Notification Bar
======================================== */
#notification-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--secondary-color); color: #fff;
    padding: 12px 20px; display: none; align-items: center; justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3); gap: 15px;
}
#notification-bar.show { display: flex; }
.notif-content { display: flex; align-items: center; gap: 10px; }
.notif-icon { font-size: 20px; }
.notif-text { font-size: 13px; }
.notif-text strong { color: var(--accent-color); }
.notif-actions { display: flex; gap: 8px; }
.notif-btn {
    padding: 7px 16px; border-radius: var(--radius-sm); font-size: 12px;
    font-weight: 700; cursor: pointer; border: none; font-family: var(--font-main);
    transition: var(--transition);
}
.notif-allow { background: var(--primary-color); color: #fff; }
.notif-allow:hover { background: var(--primary-dark); }
.notif-deny { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.notif-deny:hover { background: rgba(255,255,255,0.2); }
.notif-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 18px; cursor: pointer; }

/* ========================================
   Customizer Live Preview
======================================== */
.customize-preview-active { pointer-events: none; }

/* ========================================
   Admin Bar adjustment
======================================== */
.admin-bar #main-nav { top: 32px; }

/* ========================================
   Responsive
======================================== */
@media (max-width: 1200px) {
    .three-col-grid { grid-template-columns: 1fr 260px 200px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-grid .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 992px) {
    .three-col-grid { grid-template-columns: 1fr 240px; }
    .col-ads { display: none; }
    .slider-wrapper { flex-direction: column; }
    .popular-news-widget { width: 100%; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .three-col-grid { grid-template-columns: 1fr; }
    .col-widgets { display: none; }
    #main-nav { display: none; }
    .nav-toggle { display: flex; }
    #main-nav.mobile-visible { display: block; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card.featured { flex-direction: column; }
    .news-card.featured .card-img { width: 100%; }
    .header-ad-banner { display: none; }
    .reporter-card { flex-direction: column; text-align: center; }
    .reporter-stats { justify-content: center; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    #topbar .topbar-right { display: none; }
    .post-actions { gap: 5px; }
    .action-btn { padding: 6px 10px; font-size: 11px; }
}
@media (max-width: 480px) {
    .site-title { font-size: 20px; }
    .post-title { font-size: 18px; }
    .container { padding: 0 10px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    #topbar, #main-nav, #breaking-news, #slider-section,
    #site-footer, #notification-bar, .post-actions, .col-ads,
    .col-widgets, .related-posts, .comments-section { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .post-title { font-size: 18pt; }
    #post-content { font-size: 11pt; }
    .reporter-card { background: #f5f5f5 !important; color: #000 !important; }
}
