/* تعریف فونت دلخواه - مثلاً Vazir */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.eot');
    src: url('../fonts/Vazir.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir.woff2') format('woff2'),
         url('../fonts/Vazir.woff') format('woff'),
         url('../fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.eot');
    src: url('../fonts/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff'),
         url('../fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به همه چیز */
* {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

/* یا فقط به body و همه المان‌های داخل آن */
body, 
body * {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

/* روش استانداردتر - فقط body کافیه چون بقیه ارث می‌برن */
body {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    direction: rtl; /* اگر کل سایت راست‌چینه */
}


/* استایل‌های فوتر */
.site-footer {
    margin-top: auto;
    padding: 60px 0 20px;
    font-family: inherit;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* رنگ‌های پس‌زمینه */
.footer-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e2e8f0;
}

.footer-light {
    background: #f8fafc;
    color: #334155;
    border-top: 1px solid #e2e8f0;
}

.footer-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
}

/* گرید فوتر */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* عنوان ستون */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

.footer-dark .footer-title:after,
.footer-primary .footer-title:after {
    background: #60a5fa;
}

/* درباره ما */
.footer-about {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    font-size: 32px;
}

.footer-description {
    line-height: 1.6;
    font-size: 14px;
    opacity: 0.9;
}

/* لینک‌ها */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(-5px);
    color: #3b82f6;
}

.footer-primary .footer-links a:hover {
    color: #fbbf24;
}

.link-icon {
    font-size: 14px;
}

/* اطلاعات تماس */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact i {
    width: 20px;
    margin-top: 3px;
    color: #3b82f6;
}

.footer-primary .footer-contact i {
    color: #fbbf24;
}

/* شبکه‌های اجتماعی */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    font-size: 14px;
    width: fit-content;
}

.social-item i {
    font-size: 18px;
}

.social-item:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.social-item.instagram:hover {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-item.linkedin:hover {
    background: #0077b5;
}

.social-item.twitter:hover {
    background: #1da1f2;
}

.social-item.telegram:hover {
    background: #0088cc;
}

.social-item.whatsapp:hover {
    background: #25d366;
}

.social-item.aparat:hover {
    background: #ed1c24;
}

/* کپی‌رایت */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
}

.footer-light .footer-bottom {
    border-top-color: #e2e8f0;
}

.footer-developer {
    margin-top: 8px;
    opacity: 0.7;
    font-size: 12px;
}

.footer-developer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.footer-developer a:hover {
    text-decoration: underline;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title:after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-logo-text {
        justify-content: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-item {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 25px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-description {
        font-size: 13px;
    }
}
/* ============================================
   استایل پلاگین React django-comments-xtd
   ============================================ */

/* کانتینر اصلی */
#comments {
    margin-top: 2rem;
}

/* فرم ارسال کامنت */
#comments .comment-form-container {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

#comments .comment-form-container h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

/* فیلدهای فرم */
#comments input, 
#comments textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

#comments input:focus,
#comments textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* لیبل‌ها */
#comments label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    display: block;
}

/* دکمه ارسال */
#comments button[type="submit"] {
    background-color: #f59e0b;
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#comments button[type="submit"]:hover {
    background-color: #d97706;
    transform: translateY(-1px);
}

/* ============================================
   استایل بخش نظرات - روش سنتی
   ============================================ */

/* کانتینر اصلی نظرات */
.comment-tree {
    margin-top: 2rem;
}

/* هر کامنت */
.comment-tree .comment {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.comment-tree .comment:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #fde68a;
}

/* آواتار */
.comment-tree .comment > img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 9999px !important;
    object-fit: cover !important;
    margin-left: 1rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* هدر کامنت (نام و تاریخ) */
.comment-tree .comment-header {
    font-size: 0.8rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
    flex-wrap: wrap !important;
}

.comment-tree .comment-header span {
    font-weight: 600;
    color: #1f2937;
}

/* تاریخ */
.comment-tree .comment-header .flex-grow-1 {
    color: #6b7280;
    font-size: 0.7rem;
}

/* لینک پاراگراف ¶ */
.comment-tree .permalink {
    color: #f59e0b !important;
    font-weight: bold;
    margin-right: 0.5rem;
}

.comment-tree .permalink:hover {
    color: #d97706 !important;
}

/* آیکون‌های پرچم و حذف */
.comment-tree .comment-header .text-decoration-none {
    color: #9ca3af !important;
    transition: color 0.2s ease;
}

.comment-tree .comment-header .text-decoration-none:hover {
    color: #ef4444 !important;
}

/* محتوای کامنت */
.comment-tree .content {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.comment-tree .content p {
    margin-bottom: 0;
}

/* بخش لایک/دیسلایک و پاسخ */
.comment-tree .small,
.comment-tree .d-inline.small {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 1rem;
}

.comment-tree .small a,
.comment-tree .d-inline.small a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-tree .small a:hover {
    color: #f59e0b;
}

/* آیکون‌های thumbs */
.comment-tree .bi {
    font-size: 0.85rem;
}

.comment-tree .bi-hand-thumbs-up:hover {
    color: #10b981 !important;
}

.comment-tree .bi-hand-thumbs-down:hover {
    color: #ef4444 !important;
}

/* کامنت‌های تو در تو (پاسخ‌ها) */
.comment-tree .pt-3 {
    margin-top: 1rem !important;
    padding-top: 0 !important;
}

.comment-tree .pt-3 .comment {
    margin-right: 2rem !important;
    background-color: #f9fafb;
    border-right: 3px solid #fcd34d;
}

/* نشان moderator */
.comment-tree .badge.text-bg-secondary {
    background-color: #e5e7eb !important;
    color: #4b5563 !important;
    font-size: 0.6rem !important;
    font-weight: normal;
    margin-right: 0.5rem;
}

/* لینک پاسخ */
.comment-tree a[href*="/reply/"] {
    font-weight: 600;
    color: #f59e0b !important;
}

.comment-tree a[href*="/reply/"]:hover {
    color: #d97706 !important;
    text-decoration: underline !important;
}