/* =========================================
   توسعه‌دهنده: فایل index.css
   نسخه: 1.0 (جدا شده - مخصوص صفحه اصلی)
   ویژگی‌ها: کدهای دقیق و اختصاصی کاربر بدون تغییر
   ========================================= */

/* =========================================
   2. بخش معرفی (Hero Section)
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    padding: 40px 20px;
    margin: 0 15px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn-hero {
    display: inline-block;
    background-color: white;
    color: #047857;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.btn-hero:active { transform: scale(0.95); }

/* =========================================
   3. عناوین بخش‌ها (Section Headers)
   ========================================= */
main { padding: 0 15px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 35px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    position: relative;
    padding-right: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background-color: #10b981;
    border-radius: 4px;
}

.view-all {
    color: #10b981;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

/* =========================================
   4. کارت‌های نهال (اسلایدر افقی موبایل)
   ========================================= */
.saplings-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 15px; /* فضای سایه */
}
.saplings-container::-webkit-scrollbar { display: none; }

.sapling-card {
    min-width: 160px;
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.sapling-pic {
    background: #e2e8f0;
    height: 120px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 12px;
}

.sapling-info { text-align: right; }

.sapling-title {
    font-size: 14px;
    font-weight: bold;
    color: #334155;
    margin-bottom: 4px;
}

.sapling-price {
    font-size: 13px;
    color: #10b981;
    font-weight: 900;
    margin-bottom: 12px;
}

.btn-sm {
    display: block;
    text-align: center;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    padding: 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}
.btn-sm:active { background: #10b981; color: white; }

/* =========================================
   5. کارت‌های مدرن (پروژه‌ها و مقالات)
   ========================================= */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.modern-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.image-placeholder {
    height: 180px;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: bold;
}

.card-body { padding: 20px; }

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #0f172a;
}

.card-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.8;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.btn-primary {
    background: #1e293b;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
}

/* =========================================
   6. گزارشات و همیاران
   ========================================= */
.reports-container {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.report-item {
    padding: 15px;
    border-right: 3px solid #e2e8f0;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 12px;
}

.report-title {
    font-size: 14px;
    font-weight: bold;
    color: #334155;
    margin-bottom: 5px;
}

.report-date { font-size: 11px; color: #94a3b8; }

/* اسلایدر همیاران */
.helpers-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
}
.helpers-container::-webkit-scrollbar { display: none; }

.helper-card {
    min-width: 100px;
    background: white;
    padding: 15px 10px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.03);
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.helper-name { font-size: 12px; font-weight: bold; margin-bottom: 4px; }
.helper-badge { font-size: 10px; color: #64748b; background: #f1f5f9; padding: 2px 8px; border-radius: 20px; display: inline-block;}

/* =========================================
   8. افزونه‌های جدید (تکمیل مقالات و تگ‌های عکس)
   ========================================= */

/* جلوگیری از دفرمه شدن عکس‌ها پس از تبدیل دیو به تگ img */
img.sapling-pic, 
img.image-placeholder, 
img.avatar-placeholder {
    width: 100%;
    object-fit: cover;
    display: block; 
}

img.avatar-placeholder {
    width: 50px; 
}

/* گرید دو در دو برای بخش مقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* استایل‌های جمع‌وجور برای کارت‌های مقالات در گرید جدید */
.image-placeholder-sm {
    width: 100%;
    height: 90px;
    object-fit: cover;
    background: #cbd5e1;
    display: block;
}

.card-body-sm {
    padding: 10px;
}

.card-title-sm {
    font-size: 13px;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* سه نقطه شدن عناوین طولانی که جا نمی‌شوند */
}

.card-footer-sm {
    border-top: 1px solid #f1f5f9;
    padding-top: 5px;
}

.date-sm {
    font-size: 10px;
    color: #9ca3af;
}
