/* ===== Article comments ===== */

.ehc-comments-section {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ehc-section-subtitle {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}
.ehc-comments-count {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 400;
    margin-right: 8px;
}

.ehc-comment-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}
.ehc-comment-form h4 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-size: var(--text-lg);
    margin-bottom: 16px;
    font-weight: 500;
}
.ehc-comment-form label {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: 8px;
}
.ehc-comment-form input,
.ehc-comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-secondary);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: all 0.25s ease;
    direction: rtl;
    margin-bottom: 12px;
}
.ehc-comment-form input:focus,
.ehc-comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(197, 168, 128, 0.05);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.1);
}
.ehc-comment-form textarea { min-height: 110px; resize: vertical; }
.ehc-comment-form .ehc-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 8px;
}
.ehc-comment-form .ehc-form-note {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    opacity: 0.8;
}
.ehc-comment-form .btn-primary {
    padding: 12px 28px;
    font-size: var(--text-sm);
}
.ehc-comment-form .ehc-form-status {
    color: #4caf50;
    font-size: var(--text-sm);
    margin-top: 8px;
    display: none;
}
.ehc-comment-form .ehc-form-status.show { display: block; }

.ehc-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ehc-comments-empty {
    color: var(--color-text-muted);
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}
.ehc-comment {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    animation: ehc-comment-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ehc-comment:hover {
    border-color: rgba(197, 168, 128, 0.2);
    background: rgba(255, 255, 255, 0.04);
}
@keyframes ehc-comment-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ehc-comment-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-accent);
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    font-family: var(--font-heading);
}
.ehc-comment-body { flex: 1; min-width: 0; }
.ehc-comment-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.ehc-comment-name {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
}
.ehc-comment-date {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    opacity: 0.8;
}
.ehc-comment-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: var(--text-base);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .ehc-comment { flex-direction: column; gap: 12px; padding: 16px; }
    .ehc-comment-avatar { width: 36px; height: 36px; font-size: 16px; }
    .ehc-comment-form { padding: 20px 16px; }
}
