/*
Theme Name: لیست‌پورت
Theme URI: https://listport.ir
Author: Listport Team
Description: تم پریمیوم سایت‌های لیستی
Version: 5.0.0
Text Domain: listport
License: GPL v2
*/

/* ========================================
   فونت و متغیرها - پریمیوم
   ======================================== */

@font-face {
    font-family: 'IRANSans';
    src: url('assets/fonts/IRANSans-Bold-web.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('assets/fonts/IRANSans-Bold-web.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

:root {
    /* رنگ‌های اصلی */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: #eef2ff;

    /* گرادیانت‌ها */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(99, 102, 241, 0.05) 100%);
    --gradient-shine: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);

    /* رنگ‌های ثانویه */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #06b6d4;

    /* خاکستری‌ها */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* تایپوگرافی */
    --font: 'IRANSans', system-ui, sans-serif;

    /* سایه‌ها - پیشرفته */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

    /* بوردر */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* انتقال */
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   ریست و پایه
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    direction: rtl;
    text-align: right;
    background: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    font-weight: bold;
    line-height: 1.3;
    color: var(--gray-900);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   هدر - پریمیوم
   ======================================== */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: bold;
}

.site-logo i {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.site-logo span {
    color: var(--gray-900);
}

.site-logo img {
    max-height: 48px;
}

/* منو پریمیوم */
.main-nav {
    flex: 1;
}

.main-nav ul,
.main-nav .nav-menu,
.main-nav .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 4px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--gray-600) !important;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.main-nav a:hover::before,
.main-nav .current-menu-item>a::before {
    left: 18px;
    right: 18px;
}

.main-nav a:hover,
.main-nav .current-menu-item>a {
    color: var(--primary) !important;
}

/* ساب منو پریمیوم */
.main-nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: var(--transition);
    z-index: 100;
    display: block;
    border: 1px solid var(--gray-100);
}

.main-nav li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.main-nav .sub-menu a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.main-nav .sub-menu a::before {
    display: none;
}

.main-nav .sub-menu a:hover {
    background: var(--primary-bg);
}

/* اکشن‌ها */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle,
.menu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-toggle:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
}

.hamburger {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

/* جستجو overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.active {
    display: flex;
}

.search-form-overlay {
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
    animation: fadeInUp 0.3s ease;
}

.search-form-overlay form {
    display: flex;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 8px;
    box-shadow: var(--shadow-xl);
}

.search-form-overlay input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 18px;
}

.search-form-overlay input:focus {
    outline: none;
}

.search-form-overlay button {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form-overlay button:hover {
    transform: scale(1.05);
}

.search-close {
    background: var(--gray-200) !important;
    color: var(--gray-600) !important;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 80px 24px 24px;
        transition: var(--transition);
        z-index: 999;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav a {
        padding: 14px 16px;
    }

    .main-nav a::before {
        display: none;
    }

    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ========================================
   هیرو - پریمیوم
   ======================================== */

.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 100px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* پترن پس‌زمینه */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 30%);
}

/* ذرات تزئینی */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    color: #fbbf24;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* جستجو پریمیوم */
.hero-search {
    max-width: 640px;
    margin: 0 auto 56px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-search-inner {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-search-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-shine);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.hero-search i.search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 18px;
    z-index: 1;
}

.hero-search input {
    flex: 1;
    padding: 22px 24px 22px 140px;
    border: none;
    font-family: var(--font);
    font-size: 16px;
    color: var(--gray-700);
}

.hero-search input::placeholder {
    color: var(--gray-400);
}

.hero-search input:focus {
    outline: none;
}

.hero-search button {
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    padding: 0 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.hero-search button:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* آمار پریمیوم */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-stat {
    text-align: center;
    position: relative;
}

.hero-stat::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-stat:last-child::after {
    display: none;
}

.hero-stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-stat:hover .hero-stat-icon {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.25);
}

.hero-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.85;
}

/* موج */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 100px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat::after {
        display: none;
    }

    .hero-search input {
        padding: 18px 20px 18px 120px;
    }

    .hero-search button {
        padding: 0 20px;
        font-size: 14px;
    }
}

/* ========================================
   بخش‌ها - پریمیوم
   ======================================== */

.section {
    padding: 100px 0;
    position: relative;
}

.section-light {
    background: var(--white);
}

.section-gray {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }
}

/* ========================================
   دسته‌بندی‌ها - پریمیوم
   ======================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.category-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.category-count {
    font-size: 14px;
    color: var(--gray-500);
}

.category-arrow {
    color: var(--gray-300);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-arrow {
    color: var(--primary);
    transform: translateX(-8px);
}

/* ========================================
   کارت پست - پریمیوم
   ======================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.08);
}

.no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--gray-300);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.post-card-cat {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.post-card-body {
    padding: 24px;
}

.post-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-card-title a {
    color: var(--gray-800) !important;
}

.post-card-title a:hover {
    color: var(--primary) !important;
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.7;
}

.post-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-400);
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.post-card-meta i {
    margin-left: 6px;
    color: var(--primary-light);
}

/* ========================================
   مطالب ویژه - پریمیوم
   ======================================== */

.featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.featured-main {
    grid-row: span 2;
}

.featured-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.featured-main .featured-thumb {
    aspect-ratio: 16/12;
    height: 100%;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.featured-card:hover .featured-thumb img {
    transform: scale(1.05);
}

.featured-cat {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.featured-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 80px 28px 28px;
    color: var(--white);
}

.featured-main .featured-body {
    padding: 120px 32px 32px;
}

.featured-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.featured-main .featured-title {
    font-size: 24px;
}

.featured-title a {
    color: var(--white) !important;
}

.featured-excerpt {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 16px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: 0.75;
}

.featured-meta i {
    margin-left: 6px;
}

/* ========================================
   CTA - پریمیوم
   ======================================== */

.cta-section {
    padding: 48px 0;
}

.cta-box {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--white);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

@media (max-width: 768px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
}

.cta-icon {
    font-size: 56px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.cta-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-text {
    font-size: 17px;
    opacity: 0.9;
    margin: 0;
}

.cta-btn {
    background: var(--white);
    color: var(--primary) !important;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   صفحه‌بندی - پریمیوم
   ======================================== */

.pagination {
    margin-top: 64px;
    text-align: center;
}

.pagination-info {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.pagination-list a,
.pagination-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 18px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--gray-600) !important;
    transition: var(--transition);
}

.pagination-list a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.pagination-list .current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white) !important;
    box-shadow: var(--shadow-glow);
}

/* ========================================
   صفحه آرشیو
   ======================================== */

.archive-header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.archive-header-content {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

@media (max-width: 576px) {
    .archive-header-content {
        flex-direction: column;
        text-align: center;
    }
}

.archive-icon {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.archive-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.archive-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.archive-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
}

/* فیلتر */
.archive-filter {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 60px;
    z-index: 99;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 700;
    color: var(--gray-700);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 18px;
    background: var(--gray-100);
    color: var(--gray-600) !important;
    border-radius: var(--radius);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-glow);
}

.archive-content {
    padding: 64px 0;
}

/* ========================================
   صفحه تکی - پریمیوم
   ======================================== */

.single-post {
    background: var(--gray-50);
}

.post-header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.post-header .container {
    position: relative;
    z-index: 1;
}

.post-cats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.post-cat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.post-cat:hover {
    background: var(--white);
    color: var(--primary) !important;
}

.post-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 28px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0.9;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.post-meta-item i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .post-header {
        padding: 48px 0;
    }

    .post-title {
        font-size: 28px;
    }

    .post-meta {
        gap: 16px;
    }
}

/* تصویر */
.post-thumbnail {
    margin-top: -48px;
    position: relative;
    z-index: 10;
}

.post-thumbnail figure {
    max-width: 960px;
    margin: 0 auto;
}

.post-thumbnail img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* محتوا */
.post-content-wrapper {
    padding: 64px 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
}

.post-main {
    min-width: 0;
}

.post-content {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    line-height: 2;
    font-size: 17px;
}

@media (max-width: 768px) {
    .post-content {
        padding: 28px;
        font-size: 15px;
    }
}

.post-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    margin: 24px auto;
    box-shadow: var(--shadow-sm);
}

.post-content figure {
    margin: 32px 0;
}

.post-content figcaption {
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 12px;
}

.post-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.post-content ul,
.post-content ol {
    margin: 24px 0;
    padding-right: 28px;
}

.post-content li {
    margin-bottom: 12px;
}

/* تگ‌ها */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-top: 32px;
    box-shadow: var(--shadow-card);
}

.tags-label {
    font-weight: 700;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-label i {
    color: var(--primary);
}

.post-tags a {
    background: var(--gray-100);
    color: var(--gray-600) !important;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--gradient-primary);
    color: var(--white) !important;
}

/* اشتراک */
.post-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-top: 24px;
    box-shadow: var(--shadow-card);
}

.share-label {
    font-weight: 700;
    color: var(--gray-700);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 20px;
    color: var(--white) !important;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #00a0dc);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8ddb);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.share-btn.copy {
    background: var(--gray-400);
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* نویسنده */
.author-box {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-2xl);
    margin-top: 32px;
    box-shadow: var(--shadow-card);
}

@media (max-width: 576px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--primary-bg);
}

.author-info {
    flex: 1;
}

.author-label {
    font-size: 14px;
    color: var(--gray-500);
}

.author-name {
    font-size: 22px;
    margin: 6px 0 12px;
}

.author-bio {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

/* ناوبری */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 576px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

.nav-prev,
.nav-next {
    display: block;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.nav-prev:hover,
.nav-next:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-weight: 700;
    color: var(--gray-800) !important;
    font-size: 16px;
    line-height: 1.5;
}

/* سایدبار */
.post-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.sidebar-widget h4 {
    font-size: 17px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget h4 i {
    color: var(--primary);
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gray-700) !important;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.related-list a:hover {
    color: var(--primary) !important;
}

.related-list img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* لیست پربازدید */
.popular-list {
    list-style: none;
    counter-reset: popular;
}

.popular-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.popular-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-num {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.popular-list a {
    color: var(--gray-700) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: var(--transition);
}

.popular-list a:hover {
    color: var(--primary) !important;
}

/* مطالب مرتبط (پایین مقاله) */
.related-posts {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-2xl);
    margin-top: 32px;
    box-shadow: var(--shadow-card);
}

.related-title {
    font-size: 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-title i {
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.related-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-info {
    padding: 16px;
}

.related-info h4 {
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.5;
}

.related-info span {
    font-size: 12px;
    color: var(--gray-500);
}

/* TOC فهرست مطالب */
.toc-widget #toc {
    max-height: 400px;
    overflow-y: auto;
}

.toc-widget #toc ul {
    list-style: none;
}

.toc-widget #toc li {
    margin-bottom: 10px;
}

.toc-widget #toc a {
    color: var(--gray-600) !important;
    font-size: 14px;
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border-right: 3px solid transparent;
    transition: var(--transition);
}

.toc-widget #toc a:hover,
.toc-widget #toc a.active {
    background: var(--primary-bg);
    color: var(--primary) !important;
    border-right-color: var(--primary);
}

/* لینک ناوبری */
.nav-link {
    display: block;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.nav-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.nav-next {
    text-align: left;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

/* ========================================
   Breadcrumb
   ======================================== */

.breadcrumb {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray-500) !important;
}

.breadcrumb a:hover {
    color: var(--primary) !important;
}

.breadcrumb i {
    margin: 0 12px;
    font-size: 10px;
    color: var(--gray-300);
}

.breadcrumb span {
    color: var(--gray-400);
}

/* ========================================
   فوتر
   ======================================== */

.site-footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #0a0f1a 100%);
    color: var(--gray-400);
    padding: 80px 0 40px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 14px;
}

.footer-col a {
    color: var(--gray-400) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white) !important;
    transform: translateX(-4px);
}

.footer-col a i {
    width: 20px;
    text-align: center;
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    color: var(--white) !important;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: translateY(-4px);
}

.social-links a.ig:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links a.tg:hover {
    background: #0088cc;
}

.social-links a.wa:hover {
    background: #25d366;
}

.social-links a.tw:hover {
    background: #1da1f2;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: var(--primary-light) !important;
}

/* ========================================
   دکمه برگشت
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ========================================
   موارد دیگر
   ======================================== */

.no-results {
    text-align: center;
    padding: 100px 24px;
    background: var(--white);
    border-radius: var(--radius-2xl);
}

.no-results-icon {
    font-size: 72px;
    color: var(--gray-300);
    margin-bottom: 24px;
}

.no-results h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
}

.post-comments {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-2xl);
    margin-top: 32px;
    box-shadow: var(--shadow-card);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 32px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-100);
}

.comment-author img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
}

.comment-respond {
    margin-top: 32px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font);
    margin-bottom: 16px;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.comment-form .submit {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 16px 36px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   جدول‌ها - پریمیوم
   ======================================== */

/* جدول اصلی */
.post-content table,
table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin: 32px 0;
    font-size: 14px;
}

/* هدر جدول */
.post-content table thead,
table thead,
.wp-block-table thead {
    background: var(--gradient-primary);
}

.post-content table th,
table th,
.wp-block-table th {
    padding: 14px 16px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    border: none;
    white-space: nowrap;
}

/* سطرها */
.post-content table tbody tr,
table tbody tr,
.wp-block-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.post-content table tbody tr:nth-child(even),
table tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.post-content table tbody tr:hover,
table tbody tr:hover,
.wp-block-table tbody tr:hover {
    background: var(--primary-bg);
}

/* سلول‌ها */
.post-content table td,
table td,
.wp-block-table td {
    padding: 14px 16px;
    vertical-align: top;
    line-height: 1.7;
    border-bottom: 1px solid var(--gray-100);
}

.post-content table tbody tr:last-child td {
    border-bottom: none;
}

/* ستون اول برجسته */
.post-content table td:first-child {
    font-weight: 700;
    color: var(--gray-800);
    background: rgba(99, 102, 241, 0.04);
    white-space: nowrap;
}

/* لینک‌ها در جدول */
.post-content table a {
    color: var(--primary) !important;
    font-weight: 500;
}

.post-content table a:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

/* ریسپانسیو جدول - موبایل */
@media (max-width: 768px) {
    .post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }

    .post-content table th,
    .post-content table td {
        padding: 12px;
        white-space: nowrap;
    }
}

/* جدول قیمت‌ها */
.pricing-table {
    text-align: center;
}

.pricing-table th {
    text-align: center;
}

.pricing-table .price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

/* جدول مقایسه */
.comparison-table td:first-child {
    font-weight: 600;
    background: var(--gray-50);
}

.comparison-table .check {
    color: var(--success);
    font-size: 18px;
}

.comparison-table .cross {
    color: var(--error);
    font-size: 18px;
}

/* ========================================
   ریسپانسیو کامل
   ======================================== */

@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* هدر */
    .header-inner {
        padding: 12px 0;
    }

    .site-logo {
        font-size: 18px;
    }

    .site-logo i {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* هیرو */
    .hero {
        padding: 48px 0 80px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .hero-stat-num {
        font-size: 24px;
    }

    .hero-stat::after {
        display: none;
    }

    /* سکشن‌ها */
    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    /* کارت‌ها */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-main {
        grid-row: auto;
    }

    /* صفحه تکی */
    .post-header {
        padding: 40px 0;
    }

    .post-title {
        font-size: 24px;
    }

    .post-meta {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .post-meta-item {
        font-size: 13px;
    }

    .post-content-wrapper {
        padding: 32px 0;
    }

    .post-content {
        padding: 24px;
        font-size: 15px;
    }

    .post-content h2 {
        font-size: 20px;
    }

    .post-content h3 {
        font-size: 18px;
    }

    /* سایدبار */
    .post-sidebar {
        grid-template-columns: 1fr;
    }

    .toc-widget {
        display: none;
    }

    /* جدول‌ها - اسکرول افقی ساده */
    .post-content table {
        display: table;
        width: 100%;
        margin: 24px 0;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 24px -16px;
        padding: 0 16px;
    }

    .post-content table th,
    .post-content table td {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .post-content table td:first-child {
        min-width: 100px;
    }

    /* باکس‌ها */
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .author-avatar img {
        width: 80px;
        height: 80px;
    }

    .post-share {
        flex-direction: column;
        gap: 16px;
    }

    .post-tags {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .related-posts {
        padding: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }

    .cta-icon {
        font-size: 40px;
    }

    .cta-title {
        font-size: 20px;
    }

    /* فوتر */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer {
        padding: 48px 0 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-search input {
        padding: 16px 16px 16px 100px;
        font-size: 14px;
    }

    .hero-search button {
        padding: 0 16px;
        font-size: 13px;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .btn-primary {
        padding: 14px 24px;
        font-size: 14px;
    }
}