/* ====== COMMENTS STYLES ====== */

.comments-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75vh;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.comments-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.comments-header {
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    position: relative;
}

.comments-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--border-medium);
    border-radius: var(--radius-full);
    margin: 0 auto 12px;
}

.comments-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.comments-header .modal-close {
    top: 20px;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-username {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-badge {
    background: #FF0000;
    color: white;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-size: 9px;
    font-weight: 800;
}

.mini-level {
    background: var(--bg-gradient);
    color: white;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 700;
}

.comment-time {
    font-size: 11px;
    color: var(--text-light);
}

.comment-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-text .mention {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.comment-text .hashtag {
    color: var(--pastel-blue);
    font-weight: 600;
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.comment-action {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.comment-action.delete {
    color: #EF4444;
}

.comment-action i.liked {
    color: var(--primary);
}

.empty-comments {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-comments .empty-icon {
    font-size: 50px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.comments-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: white;
    position: relative;
}

.comments-input-bar .comment-avatar {
    width: 32px;
    height: 32px;
}

#comment-input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: var(--bg-primary);
}

#comment-input:focus {
    border-color: var(--primary);
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.emoji-picker {
    position: absolute;
    bottom: 60px;
    left: 12px;
    right: 12px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-picker button {
    background: none;
    border: none;
    font-size: 22px;
    padding: 6px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.emoji-picker button:hover {
    background: var(--bg-primary);
    transform: scale(1.2);
}