/* ============================================================
   blog-style.css - استایل مجله و جزئیات مقاله
   ============================================================ */

/* ============================================================
   HERO - ساده، تک‌ستونی، با انیمیشن زیبا
   ============================================================ */
.blog-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

/* ---- پس‌زمینه گرادیانی با پالس ---- */
.blog-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(124, 77, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 70%, rgba(83, 109, 254, 0.12) 0%, transparent 50%),
        var(--bg-primary);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
}

/* ---- گرید متحرک ---- */
.blog-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(124, 77, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 77, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 75%);
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ---- محتوای هیرو (تک‌ستونی، وسط‌چین) ---- */
.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(124, 77, 255, 0.2);
    margin-bottom: 20px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50%      { box-shadow: 0 0 0 12px transparent; }
}

.blog-hero-content h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 18px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    max-width: 700px;
}

.blog-hero-content h1 .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.blog-hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 10px;
    animation: highlightExpand 1.2s ease-out 0.6s both;
}

@keyframes highlightExpand {
    from { transform: scaleX(0); transform-origin: right; }
    to   { transform: scaleX(1); transform-origin: right; }
}

.blog-hero-content > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.85;
}

/* ===== SEARCH BOX (بهبود تم دارک) ===== */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 60px;
    padding: 4px 4px 4px 20px;
    max-width: 560px;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 6px 24px rgba(0, 0, 0, 0.15);
}

.search-box > i {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.search-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.search-box .btn {
    border-radius: 40px;
    padding: 10px 28px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---- نشانگر اسکرول ---- */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    animation: bounceDown 2.5s ease-in-out infinite;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator i {
    font-size: 1.1rem;
    color: var(--accent);
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   CATEGORIES (بهبود کنتراست در تم دارک)
   ============================================================ */
.blog-categories {
    padding: 20px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    height: 4px;
}
.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}
.categories-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cat-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid var(--border-glass);
    background: var(--bg-primary); /* ✅ تغییر: از bg-card به bg-primary برای کنتراست بهتر */
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: start;
    white-space: nowrap;
}

.cat-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.cat-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
    font-weight: 700;
}

/* ============================================================
   BLOG POSTS
   ============================================================ */
.blog-posts {
    padding: 50px 0 80px;
    background: var(--bg-primary);
}

/* ===== FILTER BAR (بهبود تم دارک) ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
    padding: 18px 22px;
    margin-bottom: 32px;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    background: var(--bg-secondary); /* ✅ اضافه: پس‌زمینه واضح */
    transition: var(--transition);
}

.filter-bar:hover {
    border-color: var(--accent);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 120px;
}

.filter-group label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.filter-group select {
    padding: 8px 32px 8px 12px;
    border-radius: 10px;
    background: var(--bg-primary); /* ✅ تغییر: از bg-card به bg-primary */
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23b0b8d1' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

/* 🔧 رفع مشکل: استایل صریح برای optionها در تم دارک */
.filter-group select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 12px;
}

/* در تم لایت هم مطمئن شو */
html[data-theme="light"] .filter-group select option {
    background-color: #ffffff;
    color: #1e1e2f;
}

.filter-group select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-reset {
    padding: 8px 18px;
    font-size: 0.75rem;
    flex-shrink: 0;
    border-radius: 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.filter-reset:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* ===== POSTS GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.posts-loader {
    text-align: center;
    padding: 60px 0;
    color: var(--accent);
    font-size: 2rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.5s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.10s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.20s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.30s; }

@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* تصویر پست */
.post-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
    overflow: hidden;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image .read-time {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.65rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* محتوای پست */
.post-content {
    padding: 18px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.post-meta .category {
    background: var(--accent-glow);
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.post-meta .date {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.post-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-content > p {
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.75;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.post-tags span {
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 0.62rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.post-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
    gap: 8px;
    margin-top: auto;
}

.post-footer .author {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-footer .author i {
    color: var(--accent);
}

.post-footer .read-more {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-footer .read-more:hover {
    transform: translateX(-4px);
}

/* ===== LOAD MORE ===== */
.load-more {
    text-align: center;
    margin-top: 44px;
}

.load-more .btn {
    padding: 10px 40px;
    font-size: 0.85rem;
    border-radius: 60px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    color: var(--accent);
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ============================================================
   CTA
   ============================================================ */
.blog-cta {
    padding: 70px 0;
    background: var(--bg-secondary);
}

.blog-cta .cta-banner {
    position: relative;
    padding: 56px 36px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 24px 70px var(--accent-glow);
    transition: all 0.4s ease;
}

.blog-cta .cta-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 90px var(--accent-glow);
}

.cta-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.cta-bg-circle.c1 { top: -35%; right: -8%; width: 320px; height: 320px; }
.cta-bg-circle.c2 { bottom: -45%; left: -5%; width: 400px; height: 400px; }

.blog-cta .cta-banner h2 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.35;
}

.blog-cta .cta-banner p {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.75;
}

.blog-cta .cta-banner .btn-group {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.blog-cta .btn {
    padding: 12px 30px;
    font-size: 0.88rem;
    border-radius: 60px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.blog-cta .btn-primary {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.blog-cta .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.blog-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   POST DETAIL (صفحه جزئیات)
   ============================================================ */
.post-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 20px 60px;
}

.post-detail .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 8px 18px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}

.post-detail .back-link:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.post-detail .post-header {
    margin-bottom: 32px;
}

.post-detail .post-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.post-detail .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
}

.post-detail .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-detail .post-meta span i {
    color: var(--accent);
}

.post-detail .cover-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin: 20px 0 32px;
    border: 1px solid var(--border-glass);
}

.post-detail .post-body {
    font-size: 1.02rem;
    line-height: 1.95;
    color: var(--text-primary);
}

.post-detail .post-body h2,
.post-detail .post-body h3 {
    margin-top: 32px;
    margin-bottom: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.post-detail .post-body h2 { font-size: 1.55rem; }
.post-detail .post-body h3 { font-size: 1.25rem; }

.post-detail .post-body p { margin-bottom: 18px; }

.post-detail .post-body ul,
.post-detail .post-body ol {
    padding-right: 24px;
    margin-bottom: 18px;
}

.post-detail .post-body li { margin-bottom: 6px; }

.post-detail .post-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
    border: 1px solid var(--border-glass);
}

.post-detail .post-body blockquote {
    border-right: 4px solid var(--accent);
    padding: 12px 20px;
    margin: 18px 0;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-muted);
    font-style: italic;
}

.post-detail .post-body code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

.post-detail .post-body pre {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-glass);
}

.post-detail .post-tags {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.post-detail .post-tags span {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.post-detail .post-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* اشتراک‌گذاری */
.post-share {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.post-share > span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.post-share .share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.post-share .share-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.1);
}

/* لودر / خطا */
.loading-spinner {
    text-align: center;
    padding: 80px 0;
    color: var(--accent);
}

.loading-spinner i {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.loading-spinner p {
    color: var(--text-muted);
    font-size: 1rem;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #f44336;
}

.error-message i {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.error-message p {
    font-size: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* تبلت */
@media (max-width: 992px) {
    .blog-hero {
        min-height: auto;
        padding: 120px 0 70px;
    }
    .blog-hero-content h1 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .blog-hero-content > p {
        font-size: 0.98rem;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .filter-group {
        min-width: 100%;
    }
    .filter-reset {
        width: 100%;
        justify-content: center;
    }
}

/* موبایل */
@media (max-width: 600px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    .blog-hero-content h1 {
        font-size: clamp(1.4rem, 5vw, 1.9rem);
        line-height: 1.35;
    }
    .blog-hero-content > p {
        font-size: 0.92rem;
        margin-bottom: 26px;
    }

    .search-box {
        flex-wrap: wrap;
        background: transparent;
        border: none;
        padding: 0;
        gap: 10px;
        max-width: 100%;
        box-shadow: none;
    }
    .search-box > i {
        display: none;
    }
    .search-box input {
        background: var(--bg-secondary);
        border: 1px solid var(--border-glass);
        border-radius: 60px;
        padding: 10px 18px;
        width: 100%;
    }
    .search-box .btn {
        width: 100%;
        justify-content: center;
    }

    .blog-categories {
        padding: 14px 0;
    }
    .categories-scroll {
        gap: 6px;
    }
    .cat-btn {
        padding: 6px 14px;
        font-size: 0.72rem;
    }

    .blog-posts {
        padding: 30px 0 60px;
    }
    .filter-bar {
        padding: 14px 16px;
        margin-bottom: 24px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-content h3 {
        font-size: 1rem;
    }
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-cta {
        padding: 50px 0;
    }
    .blog-cta .cta-banner {
        padding: 36px 20px;
    }
    .blog-cta .cta-banner h2 {
        font-size: 1.2rem;
    }
    .blog-cta .btn-group {
        flex-direction: column;
    }
    .blog-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 12px;
        font-size: 0.6rem;
    }

    /* Post detail */
    .post-detail {
        padding: 110px 14px 40px;
    }
    .post-detail .post-header h1 {
        font-size: 1.5rem;
    }
    .post-detail .post-meta {
        font-size: 0.78rem;
        gap: 10px 14px;
    }
    .post-detail .post-body {
        font-size: 0.95rem;
    }
    .post-detail .post-body h2 { font-size: 1.3rem; }
    .post-detail .post-body h3 { font-size: 1.1rem; }
    .post-share .share-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* کاهش انیمیشن برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}