/* =============================================================================
   COMMENTS.CSS - Styles pour likes et commentaires
   ============================================================================= */

/* === LIKE SECTION === */
.like-section {
    text-align: center;
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.like-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.like-section .btn {
    font-size: var(--text-lg);
    padding: var(--space-md) var(--space-xl);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.like-section .btn svg {
    fill: currentColor;
}

.like-section .btn-primary svg {
    fill: #ef4444;
}

.like-count {
    margin-top: var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.like-login-hint {
    margin-top: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* === COMMENTS SECTION === */
.comments-section {
    margin-top: var(--space-2xl);
}

.comments-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.comments-title {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.comments-count {
    background: var(--prim);
    color: var(--bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.comments-loading {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

/* === COMMENT FORM === */
.comment-form {
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.comment-form__title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.comment-form__title svg {
    fill: var(--prim);
}

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

.comment-form__counter {
    text-align: right;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* === COMMENT CARD === */
.comment-card {
    padding: var(--space-md);
}

.comment-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.comment-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.comment-card__info {
    display: flex;
    flex-direction: column;
}

.comment-card__pseudo {
    font-weight: 600;
    font-size: var(--text-sm);
}

.comment-card__date {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.comment-card__content {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.comment-card__footer {
    display: flex;
    justify-content: flex-end;
}

/* Like button commentaire */
.comment-like-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.comment-like-btn svg {
    fill: var(--text-muted);
    transition: fill var(--transition-fast);
}

.comment-like-btn.liked svg {
    fill: #ef4444;
}

.comment-like-btn:hover svg {
    fill: #ef4444;
}

/* === REPLY FORM === */
.reply-form {
    margin-top: var(--space-md);
    padding-left: var(--space-lg);
    border-left: 2px solid var(--border-subtle);
}

.reply-textarea {
    resize: vertical;
    min-height: 60px;
    font-size: var(--text-sm);
}

.reply-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

/* === COMMENT REPLIES === */
.comment-replies {
    margin-top: var(--space-md);
    padding-left: var(--space-lg);
    border-left: 2px solid var(--border-subtle);
}

.comment-reply {
    background: var(--bg-elevated);
}

/* === LOGIN PROMPT === */
.login-prompt {
    text-align: center;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.login-prompt__icons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.login-prompt__icons svg {
    fill: var(--text-muted);
}

.login-prompt__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.login-prompt__text {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.login-prompt__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .like-section {
        padding: var(--space-lg);
    }
    
    .comment-replies {
        padding-left: var(--space-md);
    }
    
    .reply-form {
        padding-left: var(--space-md);
    }
}
