/* ============================================================
   ✅ article-woody-sweet-perfume.css
   صفحه مقاله: ادکلن چوبی و شیرین مردانه
   تم دارک + تصویر هیرو با اسکرول‌پین
   ============================================================ */

/* ============================================
   ۱) پایه
   ============================================ */
body.article-page {
    background: #0f1210;
    padding-top: 4.5rem;
    min-height: 100vh;
    color: var(--light);
    direction: rtl;
    font-family: 'IranSans', sans-serif;
    overflow-x: hidden;
}

.article-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.article-paper {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

/* ============================================
   ۲) بلوک h1 (کارت شیشه‌ای)
   ============================================ */
.article-top {
    position: relative;
    z-index: 3;
    background: rgba(15, 18, 16, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(71, 181, 158, 0.12);
    overflow: hidden;
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 32px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(71, 181, 158, 0.1);
    font-size: 0.85rem;
    color: rgba(224, 223, 221, 0.65);
}

.breadcrumb a {
    color: var(--primary);
    transition: color .2s;
    text-decoration: none;
}

.breadcrumb a:hover { color: #5cd4b8; }
.breadcrumb .separator { opacity: 0.4; }
.breadcrumb .current { color: rgba(224, 223, 221, 0.5); }

.article-hero {
    padding: 40px 40px 32px;
    background: linear-gradient(135deg,
        rgba(71, 181, 158, 0.08),
        rgba(143, 162, 113, 0.05));
    position: relative;
}

.article-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--greenlight), var(--red));
}

.article-badge {
    display: inline-block;
    padding: 5px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(71, 181, 158, 0.3);
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0 0 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 0.85rem;
    color: rgba(224, 223, 221, 0.6);
}

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

.article-meta svg {
    width: 16px; height: 16px;
    fill: var(--primary);
    flex-shrink: 0;
}

/* ============================================
   ۳) 🖼️ تصویر هیرو — در ابتدا معمولی، بعد پین می‌شود
   ============================================ */
.article-hero-image-space {
    position: relative;
    /* height توسط JS ست می‌شود */
    margin-bottom: 24px;
}

.article-hero-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    will-change: top, left, width, height, border-radius;
    /* بدون transition تا با JS تناقض نداشته باشد */
}

.article-hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 18, 16, 0.10) 0%,
        rgba(15, 18, 16, 0.55) 60%,
        rgba(15, 18, 16, 0.92) 100%);
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

/* نسبت‌های تصویر بر اساس دستگاه */
@media (max-width: 1024px) {
    .article-hero-img-wrap {
        aspect-ratio: 1 / 1;
        border-radius: 26px;
    }
}

@media (max-width: 768px) {
    .article-hero-img-wrap {
        aspect-ratio: 9 / 16;
        border-radius: 22px;
    }
}

/* ============================================
   ۴) بدنه‌ی مقاله — کارت شیشه‌ای روی تصویر
   ============================================ */
.article-body {
    position: relative;
    z-index: 2;
    background: rgba(51, 57, 49, 0.54);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 28px;
    border: 1px solid rgba(71, 181, 158, 0.12);
    overflow: hidden;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);

}

/* ============================================
   ۵) فهرست مطالب
   ============================================ */
.article-toc {
    margin: 32px 40px 0;
    padding: 20px 24px;
    background: rgba(71, 181, 158, 0.08);
    border-right: 4px solid var(--primary);
    border-radius: 12px;
}

.article-toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e0dfdd;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-toc-title svg { width: 18px; height: 18px; fill: var(--primary); }

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px 20px;
}

.article-toc li { font-size: 0.9rem; }

.article-toc a {
    color: rgba(224, 223, 221, 0.75);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.article-toc a::before {
    content: "◂";
    color: var(--primary);
    opacity: 0.6;
    transition: transform .2s;
    font-size: 0.9em;
}

.article-toc a:hover { color: var(--primary); }
.article-toc a:hover::before { transform: translateX(-4px); }

/* ============================================
   ۶) محتوای مقاله
   ============================================ */
.article-content {
    padding: 32px 40px 48px;
    color: rgba(224, 223, 221, 0.32);
    line-height: 1.9;
    font-size: 1rem;

}

.article-content > p:first-of-type {
    font-size: 1.08rem;
    color: rgba(224, 223, 221, 0.9);
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(71, 181, 158, 0.18);
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 44px 0 18px;
    padding-right: 16px;
    border-right: 5px solid var(--primary);
    line-height: 1.4;
    scroll-margin-top: 6rem;
    border-radius: 5px;
    background-color: rgba(51, 57, 49, 0.4);
    padding: 10px;

}

.article-content h2:first-of-type {
    /* margin-top: 8px; */

}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--greenlight);
    margin: 28px 0 5px;

}

.article-content p {
    margin-bottom: 18px;
    color: rgba(224, 223, 221, 0.82);
}

.article-content strong { color: #ffffff; font-weight: 700; }

.article-content a {
    color: var(--primary);
    font-weight: 500;
    /* border-bottom: 1px dashed var(--dark); */
    transition: all .2s;
    /* padding-bottom: 1px; */
    text-decoration: none;

}
.article-content a span{
      color: var(--dark);
      
}

.article-content a:hover {
    color: #5cd4b8;
    border-bottom-style: solid;
}

.article-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.article-content ul li {
    padding-right: 28px;
    position: relative;
    margin-bottom: 10px;
    color: rgba(224, 223, 221, 0.82);
}

.article-content ul li::before {
    content: "";
    position: absolute;
    right: 8px;
    top: 0.7em;
    width: 8px;
    height: 8px;
    background: var(--greenlight);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(71, 181, 158, 0.2);

}

/* ============================================
   ۷) تصویر ادکلن‌ها داخل مقاله
   ============================================ */
.perfume-visual {
    display: flex;
    justify-content: center;
    margin: 24px 0 32px;
}

.perfume-visual img {
    width: 220px;
    height: 280px;
    max-width: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(71, 181, 158, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.perfume-visual img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(71, 181, 158, 0.22);
    border-color: var(--primary);
}

/* ============================================
   ۸) محل محصولات (پلیس‌هولدر)
   ============================================ */
.perfume-products {
    margin: 24px 0 12px;
}

.perfume-products .no-result {
    text-align: center;
    padding: 22px;
    color: rgba(224, 223, 221, 0.55);
    font-size: 0.9rem;
    border: 1px dashed rgba(71, 181, 158, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin: 0;
}

/* ============================================
   ۹) جدول مقایسه
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    -webkit-overflow-scrolling: touch;
    background: rgba(20, 24, 20, 0.6);
    border: 1px solid rgba(71, 181, 158, 0.12);
}

.table-wrapper::-webkit-scrollbar { height: 6px; }
.table-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.table-wrapper::-webkit-scrollbar-track { background: rgba(71, 181, 158, 0.08); }

.compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: transparent;
    font-size: 0.9rem;
}

.compare-table thead {
    background: linear-gradient(135deg, var(--deep), #2a5230);
    color: var(--light);
}

.compare-table th {
    padding: 16px 18px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.compare-table td {
    padding: 14px 18px;
    text-align: right;
    color: rgba(224, 223, 221, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    line-height: 1.7;
}

.compare-table tbody tr { transition: background .2s; }
.compare-table tbody tr:nth-child(even) { background: rgba(71, 181, 158, 0.04); }
.compare-table tbody tr:hover { background: rgba(71, 181, 158, 0.1); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--primary); }

/* ============================================
   ۱۰) CTA Yaramis
   ============================================ */
.yaramis-cta {
    margin: 32px 0;
    padding: 32px 28px;
    background: linear-gradient(135deg, #232a1f, #3d4a30);
    border-radius: 20px;
    color: var(--light);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(71, 181, 158, 0.18);
}

.yaramis-cta::before {
    content: "";
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(71, 181, 158, 0.28), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.yaramis-cta-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    position: relative;
}

.yaramis-cta-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin: 0 auto 22px;
    max-width: 640px;
    position: relative;
}

.yaramis-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 8px 24px rgba(71, 181, 158, 0.4);
    position: relative;
    font-family: inherit;

}

.yaramis-cta-btn:hover {
    background: #3a9a85;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(71, 181, 158, 0.55);
    color: #fff;
    border-bottom: none;
}

.yaramis-cta-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--dark);
    transition: transform .3s;

}
.yaramis-cta-btn:hover svg { transform: translateX(-4px); }

/* ============================================
   ۱۱) مقالات مرتبط
   ============================================ */
.related-section {
    padding: 32px 40px 40px;
    background: rgba(52, 58, 50, 0.35);
    border-top: 1px solid rgba(71, 181, 158, 0.12);
}

.related-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    padding-right: 14px;
    border-right: 5px solid var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.related-card {
    display: block;
    background: rgba(26, 29, 24, 0.7);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(71, 181, 158, 0.12);
    transition: all .3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(71, 181, 158, 0.18);
    border-color: var(--primary);
}

.related-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.related-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0dfdd;
    line-height: 1.6;
    margin: 0 0 10px;
    transition: color .2s;
}

.related-card:hover h3 { color: var(--primary); }
.related-card-meta { font-size: 0.75rem; color: rgba(224, 223, 221, 0.5); }

/* ============================================
   ۱۲) فوتر
   ============================================ */
footer {
    position: relative;
    z-index: 100;
    margin-top: 40px;
}

/* ============================================
   ۱۳) ریسپانسیو — موبایل و تبلت
   ============================================ */
@media (max-width: 768px) {
    body.article-page { padding-top: 4rem; }

    .article-container { padding: 0 10px; }
    .article-top { border-radius: 20px; margin-bottom: 18px; }
    .article-body {
        border-radius: 20px;
    
    }

    .article-hero { padding: 26px 20px 22px; }
    .article-title { font-size: 1.35rem; line-height: 1.5; margin-bottom: 14px; }
    .article-badge { padding: 4px 14px; font-size: 0.7rem; margin-bottom: 12px; }
    .article-meta { gap: 12px; font-size: 0.72rem; }
    .article-meta svg { width: 14px; height: 14px; }
    .breadcrumb { padding: 12px 18px; font-size: 0.72rem; }

    .article-toc { margin: 24px 20px 0; padding: 16px 18px; }
    .article-toc ul { grid-template-columns: 1fr; }

    .article-content { padding: 20px 22px 32px; font-size: 0.95rem; line-height: 1.85; }
    .article-content h2 {
        font-size: 1.2rem;
        margin: 50px 0 14px;
        padding-right: 12px;
        border-right-width: 4px;
    
    }
    .article-content h3 { font-size: 1.05rem; }

    .perfume-visual img { width: 180px; height: 230px; padding: 12px; }

    .yaramis-cta { padding: 24px 18px; }
    .yaramis-cta-title { font-size: 1.1rem; }
    .yaramis-cta-text { font-size: 0.88rem; }
    .yaramis-cta-btn {
        padding: 12px 28px 12px 28px;
        font-size: 0.9rem;
    
    }

    .related-section { padding: 24px 22px 32px; }
    .related-title { font-size: 1.1rem; }
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body.article-page { padding-top: 3.6rem; }

    .article-hero { padding: 20px 16px 18px; }
    .article-title { font-size: 1.15rem; line-height: 1.55; margin-bottom: 12px; }
    .article-badge { padding: 3px 12px; font-size: 0.65rem; margin-bottom: 10px; }
    .article-meta { gap: 10px; font-size: 0.68rem; }
    .article-meta svg { width: 13px; height: 13px; }
    .breadcrumb { padding: 10px 14px; font-size: 0.68rem; gap: 6px; }

    .article-content { padding: 16px 16px 24px; }
    .perfume-visual img { width: 150px; height: 190px; padding: 10px; }

    .compare-table { font-size: 0.82rem; }
    .compare-table th,
    .compare-table td { padding: 10px 12px; }
}

/* ============================================
   ۱۴) کاهش حرکت
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .article-hero-img-wrap,
    .article-hero-overlay,
    .perfume-visual img,
    .related-card {
        transition: none !important;
    }
}
