/**
 * Blog Comment Styles
 *
 * Platform-level defaults for the guest blog comments section. Automatically
 * linked on pages that use {{blog:comments}} via the template injection
 * system. Loaded before template styles so a template can override anything
 * here without editing platform files.
 */

.blog-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.blog-comments-title,
.blog-comments-form-title {
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.blog-comments-form-title {
    font-size: 1.25rem;
}

.blog-comments-list {
    margin-bottom: 2rem;
}

.blog-comment {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.blog-comment:last-child {
    border-bottom: none;
}

.blog-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-comment-author {
    font-weight: 600;
}

.blog-comment-date {
    font-size: 0.85rem;
    color: #6b7280;
}

.blog-comment-content {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.blog-comments-empty {
    color: #6b7280;
}

.blog-comments-form {
    max-width: 720px;
}

.blog-comments-field {
    margin-bottom: 1rem;
}

.blog-comments-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-comments-field input,
.blog-comments-field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    color: inherit;
    background: transparent;
}

.blog-comments-field textarea {
    resize: vertical;
}

.blog-comments-form altcha-widget {
    display: block;
    margin-bottom: 1rem;
}

.blog-comments-submit {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.blog-comments-submit:disabled {
    opacity: 0.65;
    cursor: default;
}
