/* shopAccount/public/assets/css/forum/discuss.css */

.discuss-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.discuss-breadcrumbs {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.discuss-breadcrumbs a {
    color: #0056b3;
    text-decoration: none;
}

.discuss-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Category Badges */
.category-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}
.category-badge.facebook { background: #1877f2; }
.category-badge.tiktok { background: #010101; }
.category-badge.telegram { background: #229ED9; }
.category-badge.zalo { background: #0068ff; }

/* Topic Card */
.discuss-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 25px;
}

.discuss-title {
    font-size: 24px;
    font-weight: bold;
    color: #050505;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.discuss-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #65676b;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item.status {
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}
.meta-item.status.resolved {
    background: #d1e7dd;
    color: #0f5132;
}
.meta-item.status.open {
    background: #fff3cd;
    color: #664d03;
}

.divider {
    border: 0;
    border-top: 1px solid #e4e6eb;
    margin: 15px 0 20px 0;
}

.discuss-content {
    font-size: 16px;
    line-height: 1.6;
    color: #050505;
    word-break: break-word;
    margin-bottom: 25px;
}

/* Media Section (Attached Image & AI Analysis Side-by-Side) */
.discuss-media-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    border-top: 1px dashed #e4e6eb;
    padding-top: 20px;
}

.media-column {
    flex: 1;
    min-width: 0; /* Tránh tràn layout flex */
}

.section-sub-title {
    font-size: 14px;
    font-weight: bold;
    color: #444;
    margin: 0 0 10px 0;
}

.discuss-attached-image {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    transition: transform 0.2s;
    cursor: zoom-in;
}

.discuss-attached-image:hover {
    transform: scale(1.02);
}

/* AI Analysis Box Styling */
.ai-analysis-box {
    background: #f0f4f9;
    border-left: 4px solid #0056b3;
    border-radius: 0 6px 6px 0;
    padding: 15px;
    box-sizing: border-box;
}

.section-sub-title.ai-title {
    color: #0056b3;
}

.ai-desc-content {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    font-style: italic;
}

/* Replies Area */
.replies-count-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.reply-editor-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.editor-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.reply-textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.reply-textarea:focus {
    border-color: #0056b3;
}

.btn-submit-reply {
    background: #0056b3;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-reply:hover {
    background: #004085;
}

/* Responsive cho thiết bị di động */
@media (max-width: 768px) {
    .discuss-media-section {
        flex-direction: column;
    }
    .discuss-attached-image {
        max-height: 220px;
    }
}