/* =========================================
   1. تنظیمات پایه و متغیرها
   ========================================= */
:root {
    --primary-color: #3b82f6;       /* آبی اصلی */
    --primary-dark: #1d4ed8;        /* آبی تیره */
    --bg-color: #f1f5f9;            /* پس‌زمینه کلی */
    --surface-color: #ffffff;       /* رنگ کارت‌ها */
    --text-heading: #0f172a;        /* رنگ تیترها */
    --text-body: #334155;           /* رنگ متن */
    --border-radius: 24px;          /* گردی گوشه‌ها */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.12);
}

/* لود فونت‌ها (همان کدهای قبلی شما با کمی تمیزکاری) */
@font-face {
    font-family: 'Baloo Bhaijaan 2';
    src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-arabic-500-normal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo Bhaijaan 2';
    src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-latin-500-normal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
  background-color: #dae0e2 !important;
  font-family: "Baloo Bhaijaan 2", arial;
  font-size: 8px;
  filter: none !important;
}


/* =========================================
   2. لایه‌بندی اصلی (Layout)
   ========================================= */
.main-container {
  display: flex;
  flex-direction: row;
}

.main-content {
  margin: clamp(-0.125rem, -0.0892857142857143rem + 1.4285714285714286vw, 1.25rem);
  background-color: #ffffff;
  border-radius: 20px;
  font-size: clamp(0.938rem, 0.842rem + 0.426vw, 1.188rem);
  text-align: right;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #112548;
  width: 100%;
  padding: 10px;
}


/* =========================================
   3. هیرو سکشن (Hero Section) مدرن
   ========================================= */
article{
    direction: rtl;
}
.hero-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 80px; /* فضای خالی برای باکسی که روی عکس میاد */
}

.hero-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    /* افکت تیره روی عکس */
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    border-radius: 13px;
}

/* عنوان و اطلاعات نویسنده به صورت کارت شناور */
.hero-title {
    background: var(--surface-color);
    width: 85%;
    margin: -100px auto 0; /* کشیدن به سمت بالا روی عکس */
    position: relative;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-heading);
    z-index: 10;
}

.meta-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.meta-item i {
    font-size: 1.2em;
    color: var(--primary-color);
}

.meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    justify-content: center; /* در صورتی که می‌خواهید وسط‌چین باشد */
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px; 
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2); /* پس‌زمینه شیشه‌ای ظریف */
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.meta-item i {
    font-size: 1.1rem;
    color: #60a5fa; /* رنگ آیکون‌ها */
}
/* =========================================
   4. بدنه مقاله و تایپوگرافی
   ========================================= */
.post-body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 1.1rem;
}

h2 {
    color: var(--text-heading);
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    padding-right: 15px;
}

/* خط تزئینی کنار تیترها */
h2::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

article < p {
    margin-bottom: 1.5rem;
    text-align: right;
}

/* استایل تاکید (Strong) */
p strong {
    color: var(--primary-dark);
    background: #eff6ff;
    padding: 0 8px;
    border-radius: 6px;
    font-weight: 700;
}

/* =========================================
   5. کامپوننت‌ها (باکس‌ها و لیست‌ها)
   ========================================= */

/* تصاویر داخل متن */
.feature-box {
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 2px dashed #1d4ed8;
    padding: 15px;
    width: 60%;
    justify-self: center;
}

.feature-thumb img {
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 20px;
    width: 100%;
}

.feature-box:hover .feature-thumb img {
    transform: scale(1.05);
}

/* لیست‌ها (UL/LI) */
.text-block ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.text-block li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px 50px 15px 20px; /* پدینگ راست زیاد برای جای آیکون */
    border-radius: 12px;
    position: relative;
    transition: transform 0.2s;
    border-right: 4px solid var(--primary-color);
}

.text-block li:hover {
    transform: translateX(-5px); /* حرکت جزئی در هاور */
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* آیکون لیست */
.text-block li::before {
    content: "🛡️"; /* اموجی سپر به عنوان پیش‌فرض */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* =========================================
   6. بخش‌های خاص (هشدار و نتیجه‌گیری)
   ========================================= */

/* بخش اورژانسی (چجوری اسکم رو تشخیص بدیم) */
.emergency-section {
    background: #fef2f2 !important; /* قرمز خیلی روشن */
    border-color: #ef4444 !important; /* قرمز */
    color: #991b1b;
    border-right-width: 4px;
}

.emergency-section::before {
    content: "🚨" !important;
}

/* بخش حرف آخر (گرادینت آبی) */
.post-body h2:last-of-type + .text-block {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px;
    border-radius: 24px;
    text-align: right;
    margin-top: 40px;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
    margin: 20px;
}

.post-body h2:last-of-type + .text-block p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    text-align: right;
}

.post-body h2:last-of-type + .text-block p:last-child {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* =========================================
   7. واکنش‌گرایی (Mobile Responsive)
   ========================================= */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .hero-image-container img {
        height: 250px;
    }
    
    .hero-title {
        width: 90%;
        margin-top: -60px;
        padding: 20px;
        font-size: 1.4rem;
    }
    
    .post-body {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .text-block li {
        font-size: 0.95rem;
    }
}



.rtl {
  direction: rtl;
}

h3, h4 {
    text-align: center;
}



/*sharing and barchasbha*/
/* =========================================
   1. تنظیمات پایه و متغیرها
   ========================================= */
:root {
    --primary-color: #3b82f6;       /* آبی اصلی */
    --primary-dark: #1d4ed8;        /* آبی تیره */
    --bg-color: #f1f5f9;            /* پس‌زمینه کلی */
    --surface-color: #ffffff;       /* رنگ کارت‌ها */
    --text-heading: #0f172a;        /* رنگ تیترها */
    --text-body: #334155;           /* رنگ متن */
    --border-radius: 24px;          /* گردی گوشه‌ها */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.12);
}

/* لود فونت‌ها (همان کدهای قبلی شما با کمی تمیزکاری) */
@font-face {
    font-family: 'Baloo Bhaijaan 2';
    src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-arabic-500-normal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo Bhaijaan 2';
    src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-latin-500-normal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
  background-color: #dae0e2 !important;
  font-family: "Baloo Bhaijaan 2", arial;
  font-size: 8px;
  filter: none !important;
}


/* =========================================
   2. لایه‌بندی اصلی (Layout)
   ========================================= */
.main-container {
  display: flex;
  flex-direction: row;
}

.main-content {
  margin: clamp(-0.125rem, -0.0892857142857143rem + 1.4285714285714286vw, 1.25rem);
  background-color: #ffffff;
  border-radius: 20px;
  font-size: clamp(0.938rem, 0.842rem + 0.426vw, 1.188rem);
  text-align: right;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #112548;
  width: 100%;
  padding: 10px;
}


/* =========================================
   3. هیرو سکشن (Hero Section) مدرن
   ========================================= */
article{
    direction: rtl;
}
.hero-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 80px; /* فضای خالی برای باکسی که روی عکس میاد */
}

.hero-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    /* افکت تیره روی عکس */
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    border-radius: 13px;
}

/* عنوان و اطلاعات نویسنده به صورت کارت شناور */
.hero-title {
    background: var(--surface-color);
    width: 85%;
    margin: -100px auto 0; /* کشیدن به سمت بالا روی عکس */
    position: relative;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-heading);
    z-index: 10;
}

.meta-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.meta-item i {
    font-size: 1.2em;
}

/* =========================================
   4. بدنه مقاله و تایپوگرافی
   ========================================= */
.post-body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 1.1rem;
}

h2 {
    color: var(--text-heading);
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    padding-right: 15px;
}

/* خط تزئینی کنار تیترها */
h2::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

article < p {
    margin-bottom: 1.5rem;
    text-align: right;
}

/* استایل تاکید (Strong) */
p strong {
    color: var(--primary-dark);
    background: #eff6ff;
    padding: 0 8px;
    border-radius: 6px;
    font-weight: 700;
}

/* =========================================
   5. کامپوننت‌ها (باکس‌ها و لیست‌ها)
   ========================================= */

/* تصاویر داخل متن */
.feature-box {
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 2px dashed #1d4ed8;
    padding: 15px;
    width: 60%;
    justify-self: center;
}

.feature-thumb img {
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 20px;
    width: 100%;
}

.feature-box:hover .feature-thumb img {
    transform: scale(1.05);
}

/* لیست‌ها (UL/LI) */
.text-block ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.text-block li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px 50px 15px 20px; /* پدینگ راست زیاد برای جای آیکون */
    border-radius: 12px;
    position: relative;
    transition: transform 0.2s;
    border-right: 4px solid var(--primary-color);
}

.text-block li:hover {
    transform: translateX(-5px); /* حرکت جزئی در هاور */
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* آیکون لیست */
.text-block li::before {
    content: "🛡️"; /* اموجی سپر به عنوان پیش‌فرض */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* =========================================
   6. بخش‌های خاص (هشدار و نتیجه‌گیری)
   ========================================= */

/* بخش اورژانسی (چجوری اسکم رو تشخیص بدیم) */
.emergency-section {
    background: #fef2f2 !important; /* قرمز خیلی روشن */
    border-color: #ef4444 !important; /* قرمز */
    color: #991b1b;
    border-right-width: 4px;
}

.emergency-section::before {
    content: "🚨" !important;
}

/* بخش حرف آخر (گرادینت آبی) */
.post-body h2:last-of-type + .text-block {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px;
    border-radius: 24px;
    text-align: right;
    margin-top: 40px;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
    margin: 20px;
}

.post-body h2:last-of-type + .text-block p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    text-align: right;
}

.post-body h2:last-of-type + .text-block p:last-child {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* =========================================
   7. واکنش‌گرایی (Mobile Responsive)
   ========================================= */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .hero-image-container img {
        height: 250px;
    }
    
    .hero-title {
        width: 90%;
        margin-top: -60px;
        padding: 20px;
        font-size: 1.4rem;
    }
    
    .post-body {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .text-block li {
        font-size: 0.95rem;
    }
}



.rtl {
  direction: rtl;
}

h3, h4 {
    text-align: center;
}



/*sharing and barchasbha*/
/* تنظیمات کانتینر */
.post-footer-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tags-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.tags-label {
    font-weight: bold;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tags-list { display: flex; flex-wrap: wrap; gap: 10px; }

.tag-pill {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background-color: #e0f2fe;
    color: #0284c7;
    transform: translateY(-2px);
}

.divider-line {
    height: 1px;
    background: repeating-linear-gradient(90deg,#e5e7eb,#e5e7eb 6px,transparent 6px,transparent 12px);
    margin: 20px 0;
}

/* --- بخش دکمه‌های اشتراک‌گذاری --- */
.share-wrapper {
    text-align: center;
    background-color: #f8fafc;
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin: 20px;
}

.share-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #334155;
    font-size: 1.1em;
}

.social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 14px; /* گوشه‌های کمی گردتر */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- رنگ‌بندی اختصاصی پلتفرم‌ها --- */
.eitaa { background: #e67e22; /* نارنجی ایتا */ }
.bale { background: #44bd32; /* سبز بله */ font-size: 0.9em; }
.telegram { background: #229ED9; }
.whatsapp { background: #25D366; }
.native-share { background: #6366f1; /* دکمه "سایر" بنفش */ }
.copy-link { background: #64748b; }

/* SVG آیکون ایتا */
.eitaa svg { fill: white; width: 26px; height: 26px; }

/* پیام کپی */
.copy-feedback {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #10b981;
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}
.copy-feedback.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .social-btn { width: 45px; height: 45px; font-size: 1.3em; }
}



