/* Modern Comments UI Styles */

/* Import CSS Variables */
@import url('variables.css');
@import url('brand-master.css');

/* Comment Section Container */
.comments-modern {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    border: none;
}

/* Comment Item */
.comment-modern {
    background: transparent;
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 16px;
    transition: var(--transition-base);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-modern:hover {
    background: rgba(255, 183, 0, 0.02);
    border-color: rgba(255, 183, 0, 0.15);
    box-shadow: none;
    transform: none;
}

/* User Avatar */
.user-avatar-modern {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: none;
}

.user-avatar-modern.sm {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 6px;
}

/* Comment Header */
.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.comment-time {
    color: var(--text-muted);
    font-size: 13px;
}


/* Comment Content */
.comment-content {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 16px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.comment-content a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 500;
}

.comment-content a:hover {
    text-decoration: underline;
    color: var(--gold-primary);
}

/* Comment Actions */
.comment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
    margin-top: 8px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: transparent;
}

.comment-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-action:hover {
    color: var(--gold-primary);
    background: rgba(255, 183, 0, 0.08);
    transform: none;
}

.comment-action.liked {
    color: var(--gold-dark);
}

.comment-action.liked i {
    color: var(--gold-dark);
}

.comment-action i {
    font-size: 16px;
}


/* Reply Container */
.replies-modern {
    margin-left: 60px;
    margin-top: 16px;
    overflow: hidden;
}

.reply-modern {
    background: transparent;
    border: none;
    border-left: 3px solid rgba(255, 183, 0, 0.2);
    border-radius: 0;
    padding: 12px 0 12px 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

/* Ensure flex containers don't overflow */
.reply-modern .d-flex,
.comment-modern .d-flex {
    min-width: 0;
}

.reply-modern .flex-grow-1,
.comment-modern .flex-grow-1 {
    min-width: 0;
    overflow: hidden;
}

/* Comment Input */
.comment-input-modern {
    background: rgba(255, 183, 0, 0.02);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.comment-textarea {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition-fast);
}

.comment-textarea:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.2);
}



/* Loading States */
.comment-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
}

.comment-loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.comments-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.comments-empty i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--gold-primary);
}

.comments-empty p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-modern {
    animation: slideIn 0.3s ease-out;
}

.comment-modern:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* Dark Mode Support Removed - Platform uses light theme only */


/* Mention Badge */
.mention-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-gold-light);
    color: var(--gold-dark);
    padding: 2px 8px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 183, 0, 0.2);
}

.mention-badge:hover {
    background: var(--gold-light);
    text-decoration: none;
    color: var(--gold-dark);
    border-color: var(--gold-primary);
}

/* Primary Button Style */
.comments-modern .btn-primary {
    background: var(--gradient-gold) !important;
    border: none !important;
    color: var(--text-white) !important;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.comments-modern .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
    background: var(--gradient-gold-hover) !important;
    color: var(--text-white) !important;
}

/* Reply Form Styles */
.reply-form-modern {
    background: var(--bg-gold-lighter);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 183, 0, 0.1);
    box-shadow: none;
    animation: slideIn 0.3s ease-out;
}

.reply-form-modern .comment-textarea {
    font-size: 14px;
    min-height: 60px;
}

.reply-form-modern .btn {
    font-size: 14px;
    padding: 6px 16px;
}

.reply-form-modern .btn-light {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.reply-form-modern .btn-light:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .comments-modern {
        padding: 16px;
    }
    
    .comment-modern {
        padding: 16px;
    }
    
    .replies-modern {
        margin-left: 20px; /* Reduced margin on mobile */
    }
    
    .reply-modern {
        padding: 12px;
    }
    
    .comment-actions {
        gap: 12px;
    }
    
    .comment-action {
        font-size: 13px;
    }
    
    .comment-header {
        flex-wrap: wrap;
    }
    
    .user-avatar-modern {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .user-avatar-modern.sm {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}