/* ============================================
   KHT LIKES & COMMENTS STYLING
   Gouden thema consistent met KHT design
   ============================================ */

/* ============================================
   LIKES SECTIE
   ============================================ */

.article-engagement {
    padding: 3rem 0;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    margin: 3rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, rgba(212, 175, 55, 0.08) 100%);
}

.like-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.like-stats {
    text-align: center;
    margin-bottom: 1rem;
}

.like-stats-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.like-stats-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.like-button {
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4C1 50%, #D4AF37 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a1128;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.like-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

.like-button:active {
    transform: translateY(-1px);
}

.like-button.liked {
    background: linear-gradient(135deg, #0a1128 0%, #0e0f4d 100%);
    color: #D4AF37;
    border-color: #D4AF37;
}

.like-button.liked .like-icon {
    animation: heartBeat 0.5s ease;
}

.like-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.like-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Heart beat animation */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
}

/* Loading state */
.like-button.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

/* ============================================
   COMMENTS SECTIE
   ============================================ */

.comments-section {
    margin-top: 4rem;
    padding: 3rem 0;
}

.comments-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 2rem;
}

.comments-header::after {
    content: '';
    display: block;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 1.5rem auto 0;
}

.comments-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.comment-count {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #D4AF37;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ============================================
   COMMENT FORMULIER
   ============================================ */

.comment-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid #D4AF37;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.comment-form-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #0a1128;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #0a1128;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group label .required {
    color: #D4AF37;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control.textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Montserrat', sans-serif;
    color: #000 !important;
}

/* Zorg dat de textarea in comment form ook zwarte tekst heeft */
.comment-form textarea,
.comment-form .form-control.textarea,
#comment {
    color: #000 !important;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

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

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

/* Honeypot field (verborgen voor mensen, zichtbaar voor bots) */
.form-group.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-submit-comment {
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4C1 50%, #D4AF37 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    padding: 0.75rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0a1128;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

.btn-submit-comment:active {
    transform: translateY(0);
}

.btn-submit-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   COMMENTS LIJST
   ============================================ */

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.comment-item:hover {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.comment-author {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: #0a1128;
    font-size: 1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #999;
    font-family: 'Montserrat', sans-serif;
}

.comment-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn-report {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.btn-report:hover {
    color: #c41e3a;
}

.btn-report.reported {
    color: #c41e3a;
    cursor: default;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.comments-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
    font-family: 'Montserrat', sans-serif;
}

.comments-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ============================================
   MESSAGES / ALERTS
   ============================================ */

.message {
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.message-success {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #D4AF37;
    color: #0a1128;
}

.message-error {
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid #c41e3a;
    color: #c41e3a;
}

.message-info {
    background: rgba(10, 17, 40, 0.1);
    border: 1px solid #0a1128;
    color: #0a1128;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .article-engagement {
        padding: 2rem 0;
    }
    
    .like-stats-number {
        font-size: 2rem;
    }
    
    .like-button {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
    
    .comments-title {
        font-size: 2rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .article-engagement {
        padding: 1.5rem 0;
    }
    
    .like-stats-number {
        font-size: 1.75rem;
    }
    
    .like-stats-label {
        font-size: 0.8rem;
    }
    
    .like-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .comments-title {
        font-size: 1.75rem;
    }
    
    .comment-count {
        font-size: 0.95rem;
        padding: 0.4rem 1.2rem;
    }
    
    .comment-form-actions {
        flex-direction: column;
    }
    
    .btn-submit-comment {
        width: 100%;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: #D4AF37;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.comments-loading {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

/* Focus states voor toetsenbord navigatie */
.like-button:focus,
.btn-submit-comment:focus,
.form-control:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}
