/* Shared comments styling */

.comments-section {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comments-header h3 {
    margin: 0 0 20px;
    font-size: 1.5em;
    color: #2c5f2d;
}

.pending-comments {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.pending-comments h4 {
    margin-top: 0;
    color: #b26a00;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #e6e6e6;
}

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

.comment-item.pending {
    border-bottom-color: #ffe58f;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.95em;
    color: #444;
    margin-bottom: 6px;
}

.comment-date {
    color: #888;
    font-size: 0.85em;
}

.comment-body {
    color: #222;
    line-height: 1.55;
    white-space: pre-line;
}

.comment-inline-form {
    display: inline;
    margin: 0;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.85em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #229954;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn-delete {
    background: #e74c3c;
    color: #fff;
}

.btn-delete:hover {
    background: #c0392b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.comments-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 600;
}

.comments-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.comments-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.comments-alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.comments-empty {
    color: #666;
    font-style: italic;
}

.comment-form {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.comment-form h4 {
    margin-bottom: 15px;
}

.comment-form .form-field {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.comment-form .form-actions {
    margin-top: 10px;
}

.comment-form .btn {
    background: #2c5f2d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.comment-form .btn:hover {
    background: #1e4620;
}

.comment-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.comments-login-tip,
.comments-login-required {
    color: #666;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .comments-section {
        padding: 20px;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-small {
        margin-top: 8px;
    }
}
