/* ===== Reply Center Styles ===== */

.reply-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    min-height: 500px;
}

/* Comment Feed */
.comment-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comment-item:hover {
    background: var(--bg-elevated);
}

.comment-item.active {
    background: var(--info-bg);
    border-left: 3px solid var(--brand-primary);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 4px;
}

.comment-author {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 10px;
    color: var(--text-tertiary);
}

.comment-text {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

/* Reply Preview Panel */
.reply-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.reply-original {
    padding: var(--space-5);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--border-strong);
}

.reply-original .ro-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.reply-original .ro-text {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.6;
}

.reply-generated {
    padding: var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.06);
}

.reply-generated .rg-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.reply-generated .rg-text {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.7;
}

.reply-actions {
    display: flex;
    gap: var(--space-3);
    padding-top: var(--space-2);
}

/* Sentiment chips */
.sentiment-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.sentiment-chip.positive {
    background: var(--success-bg);
    color: var(--success);
}

.sentiment-chip.neutral {
    background: var(--bg-elevated);
    color: var(--text-tertiary);
}

.sentiment-chip.negative {
    background: var(--error-bg);
    color: var(--error);
}

/* Autonomous mode banner */
.autonomous-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--warning-bg);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.autonomous-banner .ab-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.autonomous-banner .ab-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--warning);
}

/* Reply History */
.reply-history-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.reply-history-item:last-child {
    border-bottom: none;
}

.rh-content {
    flex: 1;
}

.rh-comment {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.rh-reply {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.5;
}

.rh-meta {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: var(--space-2);
    display: flex;
    gap: var(--space-3);
}

@media (max-width: 900px) {
    .reply-layout {
        grid-template-columns: 1fr;
    }
}