
:root {
    --primary-color: #e4e4e4; /* رنگ اصلی (سفید/خاکستری روشن) */
    --secondary-color: #FF6B00; /* رنگ دوم (نارنجی پررنگ) */
    --background-color: #1a1a1a;
    --content-bg: #2d2d2d;
    --border-color: #404040;
    --text-color: #e4e4e4;
    --light-text-color: #a0a0a0;

    --bg-primary: #0f0f0f;      /* پس‌زمینه اصلی سایت */
    --bg-secondary: #1a1a1a;    /* پس‌زمینه پاپ‌آپ و فرم */
    --bg-tertiary: #252525;     /* پس‌زمینه فیلدهای ورودی */
    --text-primary: #e0e0e0;    /* رنگ متن اصلی */
    --text-secondary: #a0a0a0;  /* رنگ متن ثانویه (placeholder) */
    --accent-color: #6a5acd;    /* رنگ اصلی دکمه‌ها و تاکید */
    --accent-hover: #7b68ee;    /* رنگ دکمه در حالت هاور */

    --shadow-color: rgba(0, 0, 0, 0.5);

}
:root {

}
body{
    background-color: #000000!important;
}


a:hover {
    color: #c5c5c5; /* کمی تیره‌تر برای حالت هاور */
}
/* --- کانتینر اصلی و چیدمان --- */
.forum-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 30px;
    padding: 0 15px;
    margin-top: 130px;

}

.topic-content {
    flex: 1;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* --- محتوای اصلی تاپیک --- */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: var(--light-text-color);
}

.breadcrumbs a {
    color: var(--light-text-color);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.topic-post, .comment {
    background-color: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.post-header h1 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 15px;
}

.post-body {
    display: flex;
    gap: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
}

.author-name {
    font-weight: 700;
    font-size: 1.1em;
}

.author-meta {
    font-size: 0.8em;
    color: var(--light-text-color);
    margin-top: 5px;
}

.author-meta span {
    display: block;
}

.post-content, .comment-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.8;
   padding: 10px;
}

.post-content p, .comment-content p {
    margin-bottom: 15px;
}

.post-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: var(--light-text-color);
}

.post-meta span {
    margin-left: 20px;
}

.post-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    background-color: #404040;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: default;
margin: 15px 3px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
}

.action-btn:hover {
    background-color: #4a4a4a;
}

/* استایل دکمه‌های اصلی (سفید) */
.action-btn.primary-action {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--background-color); /* متن تیره برای خوانایی */
}

.action-btn.primary-action:hover {
    background-color: #c5c5c5;
    border-color: #c5c5c5;
}

/* استایل دکمه‌های با رنگ ثانویه (نارنجی) */
.action-btn.secondary-action {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

.action-btn.secondary-action:hover {
    background-color: #e55a00;
    border-color: #e55a00;
}

/* --- بخش کامنت‌ها --- */
.comments-section h2 {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color); /* حاشیه سفید */
}

.comment-form {
    background-color: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.comment-form h3 {
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;

    font-size: 1em;
    resize: vertical;
    background-color: #404040;
    color: var(--text-color);
}

.comments-list .comment {
    border-right: 3px solid var(--primary-color); /* حاشیه سفید */
}

.comment-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: var(--light-text-color);
}

.reply-btn {
    background: none;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: default;

    font-size: 0.9em;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.reply-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

/* --- سایدبار --- */
.widget {
    background-color: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color); /* حاشیه سفید */
}

.widget ul {
    list-style: none;
}

.widget li {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.widget-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-content a {
    font-weight: 500;
    font-size: 0.95em;
    margin-bottom: 5px;
}


.widget-date {
    font-size: 0.8em;
    color: var(--light-text-color);
}

/* --- واکنش‌گرایی (Responsiveness) --- */
@media (max-width: 768px) {
    .forum-container {
        flex-direction: column;
        margin-top: 80px;

    }

    .forum-container h1{
        font-size: 1rem;
        line-height: 30px;
    }
    .sidebar {
        width: 100%;
    }

    .post-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-info {
        min-width: auto;
        margin-bottom: 15px;
    }

    .post-actions {
        justify-content: center;
    }
}
.post-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* فاصله یکسان بین دکمه‌ها */
    padding: 15px;
    background-color: #1e1e1e; /* پس‌زمینه کمی روشن‌تر برای کارت */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* سایه تیره‌تر برای عمق */
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* فاصله بین آیکون و متن */
    padding: 10px 16px;
    background-color: #2a2a2a; /* پس‌زمینه دکمه */
    border: 1px solid #404040; /* حاشیه دکمه */
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e0e0e0; /* متن روشن اما خیره‌کننده */
    transition: all 0.2s ease-in-out; /* انیمیشن نرم برای هاور */
    text-decoration: none;
    font-weight: 500;
}

.action-btn:hover {
    background-color: #333333; /* روشن شدن در هاور */
    border-color: #555555;
    transform: translateY(-2px); /* افکت بلند شدن */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05); /* سایه ملایم و روشن */
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
}

/* استایل برای دکمه‌ای که فعال شده (مثلاً لایک کرده) */
.action-btn.active {
    background-color: #d7785a;
    border-color: #fffffe;
    color: #fff;
}

.action-btn .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0; /* جلوگیری از کوچک شدن آیکون */
}

/* آیکون‌ها رنگ خود را از متن والد به ارث می‌برند */
.action-btn .icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.action-btn .count {
    font-weight: 600;
    font-size: 15px;
}




.feedback-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.feedback-button:hover {
    transform: scale(1.1);
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.feedback-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* --- استایل پاپ‌آپ (مودال) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* پس‌زمینه تیره و نیمه‌شفاف */
    display: none; /* به صورت پیش‌فرض مخفی */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex; /* نمایش برای انیمیشن */
    opacity: 1;
}

.popup-content {
    background-color: var(--bg-secondary);
    padding: 30px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 25px var(--shadow-color);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--text-primary);
}

/* --- استایل فرم داخل پاپ‌آپ --- */
.feedback-form h2 {
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #535353;;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #d59359c7;
}

/* محتوای نمایشی برای پر کردن صفحه */
.site-content {
    text-align: center;
}
.site-content h1 {
    font-weight: 300;
    font-size: 2.5rem;
}
