/* 
 * Comments Section Styling
 * ========================
 * Styling voor reactie formulier en lijst
 */

.comments-section {
    max-width: 800px;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
}

.comments-header {
    margin-bottom: 2rem;
}

.comments-header h2 {
    color: var(--accent);
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.comments-count {
    color: var(--muted);
    font-size: 1rem;
}

/* Comment Form */
.comment-form {
    background: rgba(80,122,118,0.04);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--light);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #ff9800;
}

.char-counter.error {
    color: #f44336;
}

/* Honeypot (hidden spam trap) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #e57373;
}

.form-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #64b5f6;
}

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

.comment-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.05rem;
}

.comment-date {
    color: var(--muted);
    font-size: 0.875rem;
}

.comment-text {
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Empty State */
.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
    font-style: italic;
}

/* Button Styling */
.comment-form .btn-primary {
    margin-top: 0.5rem;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 700px) {
    .comment-form {
        padding: 1.5rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Privacy Notice */
.privacy-notice {
    background: rgba(80,122,118,0.06);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 1rem;
    border-left: 3px solid var(--accent);
}

.privacy-notice a {
    color: var(--accent);
    text-decoration: underline;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Error List */
.error-list {
    background: #ffebee;
    border: 1px solid #e57373;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.error-list ul {
    margin: 0.5rem 0 0;
    padding-left: 1.5rem;
}

.error-list li {
    color: #c62828;
    margin: 0.25rem 0;
}
