/* ==========================================================================
   Base & Variables
   ========================================================================== */

@font-face {
    font-family: 'Peyda';
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.eot');
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff2') format('woff2'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff') format('woff'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --main-font: 'Peyda', sans-serif;
    --accent-blue: #00f2fe;
    --text-white: #ffffff;
    --text-light: #cbd5e1;
    /* کمی تیره‌تر از سفید برای جلوگیری از خستگی چشم */
    --text-muted: #94a3b8;
    --aquatic-deep-abyss: linear-gradient(135deg, #060730, #02122b, #05082f);
    --card-liquid-border: 1px solid rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
}

body {
    background: var(--aquatic-deep-abyss);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* خوانایی بهتر فونت */
}

/* ==========================================================================
   Lenis Smooth Scroll setup
   ========================================================================== */
html {
    scroll-behavior: initial;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ==========================================================================
   Reading Progress & Floating UI
   ========================================================================== */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    box-shadow: 0 0 10px var(--accent-blue);
}

.floating-back-btn {
    position: fixed;
    top: 40px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(4, 12, 26, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
    transition: all 0.4s ease;
}

.floating-back-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.floating-back-btn:hover {
    background: var(--accent-blue);
    color: #040c1a;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
}

.floating-back-btn:hover svg {
    transform: translateX(5px);
}

/* ==========================================================================
   Article Hero
   ========================================================================== */
.article-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 5% 5% 80px 5%;
    overflow: hidden;
}

.hero-cover-bg {
    position: absolute;
    top: -10%;
    /* کمی فضای اضافه برای افکت پارالکس */
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #040c1a 0%, rgba(4, 12, 26, 0.6) 40%, rgba(4, 12, 26, 0.2) 100%);
    z-index: -1;
}

.hero-meta-glass {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.category-tag {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.article-main-title {
    font-size: clamp(32px, 5vw, 55px);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-meta-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ==========================================================================
   Article Content (Typography & Readability Focus)
   ========================================================================== */
.article-body {
    max-width: 760px;
    /* عرض استاندارد برای جلوگیری از خستگی چشم */
    margin: 0 auto;
    padding: 60px 20px;
}

/* پاراگراف‌ها */
.article-body p {
    font-size: 1.15rem;
    /* فونت کمی بزرگتر برای خوانایی */
    line-height: 2.1;
    /* فاصله خطوط زیاد */
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* پاراگراف لید (مقدمه) */
.lead-paragraph {
    font-size: 1.3rem !important;
    color: var(--text-white);
    font-weight: 400 !important;
}

/* تیترها */
.article-body h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 3.5rem 0 1.5rem 0;
    position: relative;
    padding-right: 25px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: var(--accent-blue);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 2.5rem 0 1.2rem 0;
}

/* لیست‌ها */
.article-body ul {
    margin-bottom: 2.5rem;
    padding-right: 20px;
}

.article-body ul li {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1rem;
    color: var(--text-light);
    position: relative;
    list-style: none;
}

.article-body ul li::before {
    content: '•';
    color: var(--accent-blue);
    position: absolute;
    right: -20px;
    font-size: 1.5rem;
    line-height: 1;
}

.article-body ul li strong {
    color: var(--text-white);
    font-weight: 600;
}

/* نقل قول‌ها */
.article-body blockquote {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.9;
    color: var(--text-white);
    padding: 30px 40px;
    margin: 4rem 0;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.05) 0%, transparent 100%);
    border-right: 3px solid var(--accent-blue);
    border-radius: 20px 0 0 20px;
}

/* تصاویر داخل متن */
.article-image {
    margin: 4rem 0;
    width: 100%;
}

.article-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.article-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* تگ‌های انتهای مقاله */
.article-footer-tags {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.article-footer-tags span {
    font-size: 14px;
    color: var(--text-muted);
}

.article-footer-tags a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.article-footer-tags a:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-blue);
}

/* ==========================================================================
   Footer (همان فوتر لوکس مرحله قبل)
   ========================================================================== */
.minimal-glass-footer {
    position: relative;
    width: 100%;
    margin-top: 80px;
    padding: 80px 5% 40px;
    background: linear-gradient(to bottom, transparent, rgba(4, 12, 26, 0.8) 30%, #01060e);
    border-top: 1px solid rgba(0, 242, 254, 0.05);
    z-index: 10;
}

.minimal-glass-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 25px 2px rgba(0, 242, 254, 0.4);
    opacity: 0.6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto 40px auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.glow-wave-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-blue);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(90deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.4s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    transition: transform 0.4s ease;
}

.back-to-top:hover {
    background: var(--accent-blue);
    color: #040c1a;
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.25);
    transform: translateY(-3px);
}

.back-to-top:hover svg {
    color: #040c1a;
    transform: translateY(-4px);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .floating-back-btn {
        top: 20px;
        right: 20px;
        padding: 10px 15px;
    }

    .floating-back-btn span {
        display: none;
        /* در موبایل فقط آیکون نشان داده شود */
    }

    .article-hero {
        padding: 10% 5% 40px 5%;
        height: auto;
        min-height: 80vh;
    }

    .article-body {
        padding: 40px 5%;
    }

    .article-body p {
        font-size: 1.05rem;
    }

    .article-body blockquote {
        font-size: 1.2rem;
        padding: 20px;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}