

/* =========================================
   1. تنظیمات عمومی و متغیرها
   ========================================= */
:root {
    --news-bg: #f4f6f9;
    --news-card-bg: #ffffff;
    --news-text-primary: #2d3436;
    --news-text-secondary: #636e72;
    --news-accent: #0984e3;
    --news-gold: #ffcc00;
}

/* اعمال فونت به کل بدنه و تمام اجزا */
body.news-page, 
.news-page button, 
.news-page input, 
.news-page h1, 
.news-page h2, 
.news-page h3, 
.news-page p, 
.news-page a {
    font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif !important;
}

body.news-page {
    background-color: var(--news-bg);
    color: var(--news-text-primary);
    line-height: 1.6;
}

/* =========================================
   2. استایل‌های صفحه آرشیو (news.html)
   ========================================= */

/* بخش هیرو (بنر بالای صفحه) */
.news-hero {
    background: linear-gradient(135deg, #1e272e, #111);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.news-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--news-gold), transparent);
}

.news-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -1px;
}

.news-hero p {
    font-size: 1.2rem;
    color: #b2bec3;
    max-width: 600px;
    margin: 0 auto;
}

/* شبکه کارت‌های خبری */
.news-grid {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

/* کارت خبر */
.news-card {
    background: var(--news-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0,0,0,0.1);
}

.news-thumb {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--news-gold);
    color: #000;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: #a4b0be;
    margin-bottom: 12px;
    display: block;
    font-weight: 500;
}

.news-content h3 {
    margin: 0 0 15px;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--news-text-primary);
}

.news-content p {
    color: var(--news-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* باعث می‌شود دکمه‌ها در یک راستا قرار بگیرند */
}

.read-more-btn {
    color: var(--news-text-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border-bottom: 2px solid var(--news-gold);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: #000;
    border-bottom-color: #000;
}

/* =========================================
   3. استایل‌های صفحه تکی (Single Page)
   ========================================= */

.article-wrapper {
    max-width: 900px;
    margin: -60px auto 60px; /* منفی برای اینکه بره روی هدر */
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* تصویر هدر مقاله */
.article-header-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.article-body {
    padding: 50px 60px;
}

.article-tag {
    color: var(--news-accent);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 10px 0 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: #888;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 35px;
}

/* محتوای متنی */
.content-area p {
    font-size: 1.15rem;
    line-height: 2;
    color: #444;
    margin-bottom: 25px;
    text-align: justify;
}

.content-area h2 {
    font-size: 1.6rem;
    color: #000;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 800;
}

/* باکس تکنولوژی (Tech Box) */
.tech-box {
    background: #f1f8ff;
    border-right: 5px solid var(--news-accent);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}

.tech-box h4 {
    margin-top: 0;
    color: var(--news-accent);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tech-box p {
    margin-bottom: 0 !important;
    font-size: 1.05rem !important;
}

/* جدول مشخصات */
.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 40px 0;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.specs-table th, .specs-table td {
    padding: 18px 25px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background: #fafafa;
    color: #555;
    font-weight: 700;
    width: 35%;
}

.specs-table tr:last-child td, 
.specs-table tr:last-child th {
    border-bottom: none;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .news-hero h1 { font-size: 2rem; }
    .article-header-image { height: 280px; }
    .article-body { padding: 30px 20px; }
    .article-title { font-size: 1.6rem; }
    .article-wrapper { margin-top: 20px; border-radius: 0; box-shadow: none; }
    .specs-table th, .specs-table td { display: block; width: 100%; }
    .specs-table th { background: #eee; }
}
/* ================= SHARE BUTTONS (Modern Icons) ================= */
.share-section-wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.share-icons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px; /* گوشه‌های کمی گرد */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.share-icon-btn img, 
.share-icon-btn svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
}

/* افکت هاور برای هر شبکه اجتماعی */
/* واتساپ */
.btn-wa { background-color: #e6fcf0; }
.btn-wa svg { fill: #25D366; }
.btn-wa:hover { background-color: #25D366; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }
.btn-wa:hover svg { fill: #fff; }

/* تلگرام */
.btn-tg { background-color: #e3f2fd; }
.btn-tg svg { fill: #0088cc; }
.btn-tg:hover { background-color: #0088cc; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3); }
.btn-tg:hover svg { fill: #fff; }

/* لینکدین */
.btn-in { background-color: #e1eff8; }
.btn-in svg { fill: #0077b5; }
.btn-in:hover { background-color: #0077b5; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3); }
.btn-in:hover svg { fill: #fff; }

/* کپی لینک */
.btn-cp { background-color: #f5f5f5; }
.btn-cp svg { fill: #555; }
.btn-cp:hover { background-color: #333; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.btn-cp:hover svg { fill: #fff; }

/* تولتیپ (Tooltip) ساده */
.share-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    white-space: nowrap;
    pointer-events: none;
}

.share-icon-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}
