/**
 * Standalone Comment System - Styles
 */

.comments-system {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

/* Comment Form */
.comment-form {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.comment-form h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #555;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-submit,
.btn-cancel,
.btn-reply {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit {
    background-color: #4a90e2;
    color: white;
}

.btn-submit:hover {
    background-color: #357abd;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.btn-cancel:hover {
    background-color: #d0d0d0;
}

.btn-reply {
    background: none;
    border: 1px solid #ddd;
    color: #4a90e2;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-reply:hover {
    background-color: #f0f0f0;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
}

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

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

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Comments List */
.comments-list {
    margin-top: 2rem;
}

.comment {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.comment:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-pending {
    opacity: 0.7;
    background-color: #fffbf0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-author a {
    color: #4a90e2;
    text-decoration: none;
}

.comment-author a:hover {
    text-decoration: underline;
}

.comment-date {
    color: #888;
}

.badge-pending {
    background-color: #ffc107;
    color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comment-content {
    margin-bottom: 0.75rem;
    color: #444;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.comment-reply-form {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Messages */
.loading,
.no-comments,
.error {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

.error {
    color: #d32f2f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-system {
        margin: 1rem;
    }

    .comment {
        margin-left: 0 !important;
        padding-left: 1rem;
        border-left: 3px solid #e0e0e0;
    }

    .comment-form {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
    }
}
