/* Comments Section */
.single-comments {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
}

.comments-area {
    max-width: 100%;
}

/* Comments Header */
.comments-header {
    margin-bottom: 1.5rem;
}

.comments-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-item {
    margin-bottom: 1.5rem;
}

.comment-item .children {
    list-style: none;
    margin: 1.5rem 0 0 0;
    padding-left: 2rem;
    border-left: 2px solid #e5e7eb;
}

/* Comment Body */
.comment-body {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.comment-item .children .comment-body {
    background: #fff;
}

/* Comment Header */
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar__img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.comment-author {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.comment-date {
    font-size: 0.8125rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.comment-date:hover {
    color: var(--theme-primary);
}

/* Comment Content */
.comment-content {
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.comment-content p {
    margin: 0 0 1rem;
}

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

.comment-awaiting {
    color: #d97706;
    font-style: italic;
    font-size: 0.875rem;
}

/* Comment Footer */
.comment-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.comment-footer a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-secondary);
    transition: color 0.2s ease;
}

.comment-footer a:hover {
    color: var(--theme-primary);
}

/* Comment Form */
.comment-form-wrapper {
    margin-bottom: 2.5rem;
}

.comment-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.comment-form .comment-reply-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.comment-form .comment-reply-title small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.comment-form .comment-reply-title small a {
    color: var(--theme-secondary);
}

.comment-form .logged-in-as {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.comment-form .logged-in-as a {
    color: var(--theme-secondary);
    font-weight: 500;
}

/* Form Fields */
.comment-form p {
    margin: 0 0 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #374151;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

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

.comment-form .form-submit {
    margin-bottom: 0;
}

.comment-form .submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.comment-navigation a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-secondary);
}

/* Responsive */
@media (max-width: 640px) {
    .comment-item .children {
        padding-left: 1rem;
    }

    .comment-body {
        padding: 1rem;
    }

    .comment-avatar__img {
        width: 40px;
        height: 40px;
    }
}
