/* Comments Ex Machina Styles */

.cem-comments {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Comments List */

.cem-comments-list {
    margin-bottom: 1.5rem;
}
.cem-comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-left: 3px solid #7c3aed;
    border-radius: 4px;
}

.cem-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cem-comment-author {
    font-size: 0.95rem;
    color: #7c3aed;
    font-weight: 600;
}

.cem-comment-date {
    font-size: 0.85rem;
    color: #666;
}

.cem-comment-content {
    line-height: 1.6;
    color: #333;
}

/* Comment Form */

.cem-comment-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
}

.cem-comment-form h3 {
    font-weight: 500;
}

/* Form Elements */

.cem-form-group {
    margin-bottom: 1rem;
}

.cem-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.cem-input,
.cem-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cem-input:focus,
.cem-textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.cem-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.cem-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cem-button-primary {
    background: #7c3aed;
    color: white;
}

.cem-button-primary:hover {
    background: #6d28d9;
}

.cem-button-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.cem-button-secondary {
    background: white;
    color: #7c3aed;
    border: 2px solid #7c3aed;
}

.cem-button-secondary:hover {
    background: #f5f3ff;
}

.cem-button-link {
    background: none;
    border: none;
    color: #7c3aed;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.cem-button-link:hover {
    color: #6d28d9;
}

/* Form Actions */
.cem-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Messages */
.cem-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.cem-message-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}

.cem-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.cem-message-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fcd34d;
}

/* Responsive */

@media (max-width: 1200px) {
    .cem-comments {
      position: relative;
      padding: 0 2rem;
    }
    
    .cem-comment-form {
        padding: 3rem;
    }
    
    .cem-comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Guidelines */
.cem-guidelines-section {
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #555;
    background: #f3f4f6;
}

.cem-guidelines p {
    margin: 0 0 0.5rem 0;
}

.cem-guidelines ul {
    margin: 0 0 0.5rem 1.5rem;
    padding: 0;
}

.cem-guidelines li {
    margin: 0.125rem 0;
    font-size: 0.75rem;
}

.cem-team-badge,
.cem-guest-badge {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    display: inline-block;
}