/*
Theme Name: خبرکاکاوند
Theme URI: https://tarhanweb.ir
Author: طرهان وب
Author URI: https://tarhanweb.ir
Description: قالب خبری حرفه‌ای فارسی راست‌چین با ۳ ستونه، اسلایدر، خبر فوری، گالری رسانه‌ای، ۱۵ ویجت اختصاصی و تنظیمات کامل پیشخوان
Version: 1.1.0
License: GPL v2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khabarkakavand
Domain Path: /languages
Tags: news, rtl, responsive, customizer, slider, gallery, widgets
*/

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: var(--header-bg, #1a1a2e);
    color: #fff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-top {
    background: var(--header-top-bg, #16213e);
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-date {
    color: #ccc;
}

.header-social a {
    color: #ccc;
    margin-right: 12px;
    font-size: 1rem;
}

.header-social a:hover {
    color: #fff;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: var(--logo-height, 60px);
    width: auto;
    transition: all 0.3s;
}

/* Navigation */
.main-navigation {
    background: var(--nav-bg, #0f3460);
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent-color, #e94560);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0f3460;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.nav-menu .sub-menu .sub-menu {
    top: 0;
    right: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Breaking News Ticker */
.breaking-news {
    background: var(--breaking-bg, #e94560);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.breaking-label {
    background: #1a1a2e;
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-left: 10px;
    border-radius: 3px;
}

.breaking-ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: inline-block;
    animation: ticker var(--ticker-speed, 30s) linear infinite;
}

.ticker-content a {
    color: #fff;
    margin-left: 40px;
    font-size: 0.9rem;
}

.ticker-content a:hover {
    text-decoration: underline;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Slider Section */
.slider-section {
    padding: 20px 0;
    background: #fff;
}

.slider-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.main-slider {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slider-item {
    position: relative;
    display: none;
}

.slider-item.active {
    display: block;
}

.slider-item img {
    width: 100%;
    height: var(--slider-h, 400px);
    object-fit: cover;
}

.slider-cover {
    position: absolute;
    inset: 0;
    background: var(--slider-cover-color, #0033cc);
    opacity: var(--slider-cover-opacity, 0.18);
    pointer-events: none;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 20px 20px;
    color: #fff;
}

.slider-overlay h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.slider-overlay .meta {
    font-size: 0.8rem;
    color: #ccc;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 20px;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--accent-color, #e94560);
    width: 25px;
    border-radius: 5px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: var(--accent-color, #e94560);
}

.slider-prev { right: 15px; }
.slider-next { left: 15px; }

/* Slider Side Widgets */
.slider-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-widget {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    flex: 1;
}

.side-widget-title {
    background: var(--accent-color, #e94560);
    color: #fff;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-widget-title i {
    font-size: 1rem;
}

.side-widget-content {
    padding: 10px;
}

.side-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.side-thumb-link {
    flex: 0 0 120px;
    height: 90px;
    display: block;
}

.side-news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.side-news-body { min-width: 0; flex: 1; }

.side-excerpt {
    font-size: 0.75rem;
    line-height: 1.7;
    color: #666;
    margin: 4px 0 2px;
}

.side-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: bold;
    color: var(--accent-color, #e94560);
}

.side-more i { font-size: 0.7rem; }

.side-news-item h4 {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

.side-news-item h4:hover {
    color: var(--accent-color, #e94560);
}

.side-news-item .meta {
    font-size: 0.7rem;
    color: #888;
    margin-top: 3px;
}

/* Main Content Area - 3 Columns */
.main-content-area {
    padding: 25px 0;
}

.main-content-area .container {
    display: grid;
    grid-template-columns: 1fr 300px 280px;
    gap: 20px;
}

/* Column 1 - Latest News */
.column-main {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-color, #e94560);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color, #e94560);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.news-list-item:hover {
    background: #fafafa;
    margin: 0 -20px;
    padding-right: 20px;
    padding-left: 20px;
}

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

.news-list-thumb {
    flex: 0 0 var(--news-thumb-w, 260px);
    width: var(--news-thumb-w, 260px);
    display: block;
}

.news-list-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.news-list-content { min-width: 0; flex: 1; }

.news-list-content h3 {
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-list-content h3:hover {
    color: var(--accent-color, #e94560);
}

.news-list-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 8px;
}

.news-more {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 14px;
    background: var(--accent-color, #e94560);
    color: #fff;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: bold;
}

.news-more:hover { opacity: 0.88; color: #fff; }

.news-list-meta {
    display: flex;
    gap: 15px;
    font-size: 0.78rem;
    color: #888;
}

.news-list-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

/* Column 3 - Ads */
.column-ads {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    text-align: center;
    padding: 15px;
}

.ad-box img {
    border-radius: 5px;
    width: 100%;
}

/* Widget Base Styles */
.widget {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.widget-title {
    background: var(--widget-title-bg, linear-gradient(135deg, var(--accent-color, #e94560), #c73e54));
    color: #fff;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
}

.widget-content {
    padding: 15px;
}

/* Popular News Widget */
.popular-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.popular-rank {
    width: 30px;
    height: 30px;
    background: var(--accent-color, #e94560);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.popular-news-item h4 {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333;
}

/* Circular Image Widget */
.circular-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.circular-news-item img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color, #e94560);
    flex-shrink: 0;
}

.circular-news-item h4 {
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Important News Widget */
.important-news-item {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-right: 4px solid;
    background: #fafafa;
}

.important-news-item.green {
    border-color: #28a745;
    background: #e8f5e9;
}

.important-news-item.red {
    border-color: #dc3545;
    background: #ffebee;
}

.important-news-item h4 {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Weather Widget */
.weather-widget {
    text-align: center;
    padding: 20px;
}

.weather-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.weather-temp {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color, #e94560);
}

.weather-city {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.weather-desc {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

/* Prayer Times Widget */
.prayer-times table {
    width: 100%;
    border-collapse: collapse;
}

.prayer-times td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.prayer-times td:first-child {
    font-weight: bold;
    color: #555;
}

.prayer-times td:last-child {
    text-align: left;
    color: var(--accent-color, #e94560);
    font-weight: bold;
}

/* Social Widget */
.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-links .telegram { background: #0088cc; }
.social-links .instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-links .twitter { background: #1da1f2; }
.social-links .eitaa { background: #ff6b00; }
.social-links .rubika { background: #6a1b9a; }
.social-links .bale { background: #00a8e8; }
.social-links .soroush { background: #4caf50; }

.social-links i {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* Poll Widget */
.poll-options label {
    display: block;
    padding: 10px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.poll-options label:hover {
    background: #e8e8e8;
}

.poll-options input[type="radio"] {
    margin-left: 8px;
}

.poll-submit {
    width: 100%;
    padding: 10px;
    background: var(--accent-color, #e94560);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s;
}

.poll-submit:hover {
    background: #c73e54;
}

/* Newspaper Widget */
.newspaper-slider {
    position: relative;
    overflow: hidden;
}

.newspaper-slide {
    display: none;
    text-align: center;
}

.newspaper-slide.active {
    display: block;
}

.newspaper-slide img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 8px;
}

.newspaper-slide h4 {
    font-size: 0.85rem;
    color: #333;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 0;
    color: #fff;
}

.gallery-section .section-title {
    color: #fff;
    border-color: var(--accent-color, #e94560);
}

.gallery-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.gallery-tab {
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.gallery-tab.active,
.gallery-tab:hover {
    background: var(--accent-color, #e94560);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 15px 15px;
    color: #fff;
    font-size: 0.85rem;
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(233, 69, 96, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--footer-bg, #1a1a2e);
    color: #ccc;
    padding-top: 40px;
}

.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-top .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color, #e94560);
    display: inline-block;
}

.footer-widget p {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-widget ul li a {
    color: #ccc;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.footer-widget ul li a:hover {
    color: var(--accent-color, #e94560);
    padding-right: 5px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    margin-top: 30px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--accent-color, #e94560);
}

/* Single Post */
.kk-single-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.post-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.post-supertitle {
    display: inline-block;
    background: var(--accent-color, #e94560);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.post-title {
    font-size: 1.6rem;
    line-height: 1.5;
    color: #222;
    margin-bottom: 15px;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.82rem;
    color: #666;
    align-items: center;
}

.post-meta-bar span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-lead {
    background: linear-gradient(135deg, #fff8e1, #fffde7);
    border-right: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-thumbnail {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1rem;
    line-height: 2;
    color: #333;
}

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

.post-content h2,
.post-content h3 {
    margin: 25px 0 15px;
    color: #222;
}

.post-content img {
    border-radius: 8px;
    margin: 15px 0;
}

/* Post Actions Bar */
.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.post-action-btn:hover {
    background: var(--accent-color, #e94560);
    color: #fff;
    border-color: var(--accent-color, #e94560);
}

/* Reporter Card */
.reporter-card {
    --rc-bg: #f8f9fa;
    --rc-text: #333;
    --rc-accent: var(--accent-color, #e94560);
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--rc-bg);
    color: var(--rc-text);
    border-radius: 15px;
    margin: 25px 0;
    border: 2px dashed var(--rc-accent);
}

.reporter-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--rc-accent);
}

.reporter-info { min-width: 0; flex: 1; }

.reporter-info h4 {
    color: var(--rc-text);
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.reporter-info p {
    font-size: 0.85rem;
    color: var(--rc-text);
    opacity: 0.8;
    line-height: 1.6;
}

.reporter-rank {
    background: var(--rc-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: normal;
    padding: 2px 10px;
    border-radius: 20px;
}

.reporter-email { font-size: 0.8rem !important; }

.reporter-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.rating-stars { display: inline-flex; gap: 2px; }

.rating-star {
    background: none;
    border: none;
    padding: 0 1px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #c9ced3;
    line-height: 1;
    transition: transform 0.15s, color 0.15s;
}

.rating-star.on { color: #f5b301; }
.rating-stars:hover .rating-star { color: #f5b301; }
.rating-star:hover ~ .rating-star { color: #c9ced3 !important; }
.rating-star:hover { transform: scale(1.2); }

.rating-text { font-size: 0.78rem; opacity: 0.85; }

.reporter-all {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 16px;
    background: var(--rc-accent);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.reporter-all:hover { opacity: 0.88; color: #fff; }

/* QR Code */
.qr-code-box {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

.qr-code-box img {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-share a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.78rem;
    transition: all 0.3s;
}

.social-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-eitaa { background: #ff6b00; }
.share-rubika { background: #6a1b9a; }
.share-bale { background: #00a8e8; }
.share-soroush { background: #4caf50; }
.share-telegram { background: #0088cc; }
.share-whatsapp { background: #25d366; }

/* Comments */
.comments-area {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.comments-title {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 20px;
}

.comment-list {
    margin-bottom: 30px;
}

.comment-body {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fffde7, #fff8e1);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid #ffe082;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}

/* Comment Form */
.comment-form {
    background: linear-gradient(135deg, #fffde7, #fff8e1);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ffe082;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color, #e94560);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Related Posts */
.related-posts {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.related-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-item h4 {
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background: #fff;
    border-radius: 8px;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: var(--accent-color, #e94560);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb a {
    color: var(--accent-color, #e94560);
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

/* Notification Badge */
.notification-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--accent-color, #e94560);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    animation: slideIn 0.5s ease;
    max-width: 350px;
}

.notification-badge.show {
    display: block;
}

.notification-badge h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.notification-badge p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.notification-close {
    position: absolute;
    top: 8px;
    left: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-form input:focus {
    border-color: var(--accent-color, #e94560);
    outline: none;
}

.search-form button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color, #e94560);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--accent-color, #e94560);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.scroll-top:hover {
    background: #c73e54;
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* ===== هدر ثابت / چسبیده (از پیشخوان) ===== */
.kk-header-sticky .site-header { position: sticky; top: 0; }
.kk-header-fixed .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; }
.admin-bar.kk-header-sticky .site-header,
.admin-bar.kk-header-fixed .site-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar.kk-header-sticky .site-header,
    .admin-bar.kk-header-fixed .site-header { top: 46px; }
}
@media (max-width: 768px) {
    .kk-header-nomobile .site-header { position: relative !important; top: auto !important; }
}

/* ===== اسلایدر بدون ستون کناری ===== */
.slider-section.no-side .container { grid-template-columns: 1fr; }

/* ===== تک خبر ===== */
.main-content-area .container.single-container { grid-template-columns: minmax(0, 1fr) 300px; }
.main-content-area .container.single-container.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.kk-single-card, .column-main, .column-widgets { min-width: 0; }


/* عکس نویسنده در نوار مشخصات خبر */
.meta-author { display: inline-flex; align-items: center; gap: 6px; }
.meta-author-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-color, #e94560); }


/* تاریخ و ساعت هدر */
.header-time { margin-right: 12px; opacity: 0.95; font-variant-numeric: tabular-nums; }

/* ===== پاپ شناور اخبار نویسندگان ===== */
.authors-float {
    --af-color: var(--accent-color, #e94560);
    position: fixed;
    bottom: 80px;
    z-index: 9998;
}
.authors-float.pos-right { right: 20px; }
.authors-float.pos-left { left: 20px; bottom: 20px; }
.kk-authors-left .notification-badge { bottom: 80px; }

.authors-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--af-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.authors-panel {
    position: absolute;
    bottom: 52px;
    width: 330px;
    max-width: calc(100vw - 30px);
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.authors-panel[hidden] { display: none; }
.pos-right .authors-panel { right: 0; }
.pos-left .authors-panel { left: 0; }

.authors-head {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--af-color);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}
.authors-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.authors-list { list-style: none; margin: 0; padding: 5px 15px 10px; }
.authors-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.authors-list li:last-child { border-bottom: none; }
.authors-list img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--af-color);
}
.authors-list li > div { min-width: 0; }
.af-name { display: block; font-size: 0.78rem; color: #777; }
.af-name small { color: var(--af-color); }
.authors-list a { display: block; font-size: 0.85rem; font-weight: bold; line-height: 1.6; color: #222; }
.authors-list a:hover { color: var(--af-color); }
.af-time { font-size: 0.72rem; color: #999; }
