/* ===== استایل اختصاصی مجله انرژی مثبت و صفحه تکی ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    background: url('../images/background2.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    color: #1e2a3e;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ===== HEADER ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #00d2ff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 30px;
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    color: white;
    cursor: pointer;
}

/* ===== کانتینر اصلی مجله ===== */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

/* ===== کانتینر صفحه تکی ===== */
.single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

/* ===== هدر صفحه ===== */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.page-header p {
    color: #1a1a2e;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    margin-top: 8px;
}

/* ===== تاریخ انتشار ===== */
.post-date-outside {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 20px;
}

.date-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    color: #2c3e4e;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.5);
}

/* ===== کارت‌های پست (لیست مجله) ===== */
.post-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.08), -4px -4px 12px rgba(255, 255, 255, 0.3);
}

/* پست‌های فقط خواندنی (شیشه‌ای روشن) */
.post-card.quick-read {
    border-right: 5px solid #00d2ff;
}

/* پست‌های مقاله‌ای (دودی شیشه‌ای شفاف‌تر) */
.post-card.full-page {
    background: rgba(15, 15, 25, 0.55);
    backdrop-filter: blur(12px);
    border-right: 5px solid #FFD966;
    color: #ffffff;
}

.post-card.full-page .post-title a {
    color: #ffffff;
}

.post-card.full-page .post-title a:hover {
    color: #FFD966;
}

.post-card.full-page .post-summary {
    color: #f0f0f0;
}

.post-card.full-page .post-footer {
    color: #cccccc;
    border-top-color: rgba(255,255,255,0.2);
}

.post-card.full-page .post-footer span {
    color: #dddddd;
}

.post-card.full-page .post-id {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.post-card.full-page .author-sign {
    color: #ffd966;
}

.post-card.full-page .read-more-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.post-card.full-page .read-more-btn:hover {
    background: #FFD966;
    color: #1a2a3e;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card.full-page:hover {
    background: rgba(25, 25, 40, 0.65);
}

/* عنوان پست در لیست (لینک دار) */
.post-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

/* دکمه بیشتر بخوانید */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.65);
    padding: 8px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.8rem;
    transition: 0.2s;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.read-more-btn:hover {
    background: #00d2ff;
    color: #1a2a3e;
}

/* ===== عکس در لیست ===== */
.post-image-wrapper {
    margin: 1rem 0;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.post-image-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.2s;
}

.post-image-thumb img:hover {
    transform: scale(1.02);
}

/* ===== پلیر صوتی ===== */
.post-audio {
    margin: 1rem 0;
}

.post-audio audio {
    width: 100%;
    border-radius: 40px;
}

/* ===== خلاصه ===== */
.post-summary {
    margin: 0.8rem 0;
    line-height: 1.7;
}

/* ===== فوتر پست ===== */
.post-footer {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.7rem;
}

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

/* ===== صفحه تکی (مقاله) با استایل دودی شیشه‌ای شفاف‌تر ===== */
.single-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 1rem;
}

.single-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #5a6e7c;
    margin-bottom: 1.5rem;
}

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

.single-image {
    margin: 1.5rem 0;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
}

.single-image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.single-audio {
    margin: 1.5rem 0;
    text-align: center;
}

.single-audio audio {
    width: 100%;
    max-width: 500px;
    border-radius: 40px;
}

/* حباب مقاله در صفحه تکی (دودی شیشه‌ای شفاف‌تر) */
.single-content {
    background: rgba(15, 15, 25, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    border-right: 5px solid #FFD966;
    padding: 2rem;
    margin: 2rem 0;
    line-height: 1.9;
    font-size: 1rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.single-content p {
    margin-bottom: 1rem;
    color: #ffffff;
}

.single-content h2 {
    font-size: 1.5rem;
    margin: 1.8rem 0 1rem;
    color: #FFD966;
}

.single-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
    color: #FFD966;
}

.single-content strong {
    color: #ffffff;
}

/* دکمه دستی (در صفحه تکی، پایین محتوا) */
.custom-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    margin: 1rem 0;
}

.custom-button:hover {
    background: #00d2ff;
    color: #1a2a3e;
}

/* دکمه بازگشت به خانه / مجله */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    margin-bottom: 1.5rem;
}

.back-button:hover {
    background: #00d2ff;
    color: #1a2a3e;
    transform: translateX(4px);
}

/* دکمه بازگشت در پایین صفحه تکی */
.single-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.single-footer .back-button {
    margin-bottom: 0;
}

/* ===== لینک‌های تبلیغاتی (اختیاری) ===== */
.promo-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.promo-links .btn-card {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.promo-links .btn-card:hover {
    background: #00d2ff;
    color: #1a2a3e;
}

/* ===== صفحه‌بندی ===== */
.pagination {
    text-align: center;
    margin: 3rem 0 2rem;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    text-decoration: none;
    color: white;
    transition: 0.2s;
}

.page-btn:hover, .page-btn.active {
    background: #00d2ff;
    color: #1a2a3e;
}

/* ===== دکمه بازگشت به بالا ===== */
#backToTop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #00d2ff;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    z-index: 999;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#backToTop.visible {
    opacity: 1;
}

#backToTop:hover {
    background: #3a7bd5;
}

/* ===== لایت‌باکس ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ===== فوتر عمومی (صفحه اصلی و آرشیو سابلیمینال) ===== */
footer {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    margin-top: 4rem;
    padding: 2rem 0;
    border-radius: 40px 40px 0 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff8c00, #ff2e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1rem 0;
}

.social-footer a {
    transition: 0.2s;
}

.social-footer a:hover {
    transform: scale(1.1);
}

.footer-link {
    color: #ff2e63;
    text-decoration: none;
    font-weight: bold;
}

.footer-copy {
    font-size: 0.75rem;
    margin-top: 1rem;
    color: #ccc;
}

/* ===== فوتر اختصاصی مجله و صفحه تکی (قلب و لینک زرد) ===== */
.blog-footer .footer-logo,
.single-footer-parent .footer-logo {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.blog-footer .footer-link,
.single-footer-parent .footer-link {
    color: #FFD966;
}

.blog-footer .footer-copy,
.single-footer-parent .footer-copy {
    color: #FFD966;
}

/* ===== استایل مارک‌داون برای مجله (اضافه شده بدون تداخل) ===== */

/* نقل قول در حباب دودی (مقاله) */
.post-card.full-page blockquote {
    background: rgba(255, 217, 102, 0.15);
    border-right: 4px solid #FFD966;
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 20px;
    font-style: italic;
    color: #f5f5f5;
}

/* نقل قول در حباب شیشه‌ای معمولی (فقط خواندنی) */
.post-card.quick-read blockquote {
    background: rgba(0, 210, 255, 0.15);
    border-right: 4px solid #00d2ff;
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 20px;
    font-style: italic;
    color: #1e2a3e;
}

/* کد درون خطی در حباب دودی */
.post-card.full-page code {
    background: rgba(255, 217, 102, 0.3);
    color: #FFD966;
    padding: 3px 8px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.9em;
    font-weight: 600;
}

/* کد درون خطی در حباب شیشه‌ای معمولی */
.post-card.quick-read code {
    background: rgba(0, 210, 255, 0.3);
    color: #005c73;
    padding: 3px 8px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.9em;
    font-weight: 600;
}

/* بلاک کد در هر دو نوع حباب */
.post-card pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 20px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.85em;
    color: #e0e0e0;
    margin: 15px 0;
}

.post-card pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* استایل برای صفحه تکی مقاله */
.single-content blockquote {
    background: rgba(255, 217, 102, 0.15);
    border-right: 4px solid #FFD966;
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 20px;
    font-style: italic;
    color: #f5f5f5;
}

.single-content code {
    background: rgba(255, 217, 102, 0.3);
    color: #FFD966;
    padding: 3px 8px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.9em;
    font-weight: 600;
}

.single-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 20px;
    overflow-x: auto;
}

.single-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ===== موبایل ===== */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }
    .hamburger {
        display: block;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        width: 80%;
        text-align: center;
        transition: 0.3s;
        padding: 1.5rem 0;
        gap: 1.2rem;
        border-radius: 30px;
    }
    .nav-menu.active {
        left: 10px;
    }
    .blog-container, .single-container {
        padding: 90px 15px 40px;
    }
    .post-card {
        padding: 1rem;
    }
    .post-title {
        font-size: 1.15rem;
    }
    .page-header h1, .single-header h1 {
        font-size: 1.5rem;
    }
    .single-meta {
        gap: 0.8rem;
        font-size: 0.7rem;
    }
    .single-content {
        padding: 1.2rem;
    }
    .single-content h2 {
        font-size: 1.3rem;
    }
    .single-image img {
        max-height: 300px;
    }
    .back-button, .back-to-blog {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}