/**
 * Conversation Pin and Archive Styles
 * Pinned and archived conversation indicators
 */

/* Pin Badge */
.pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.pin-badge i {
    font-size: 11px;
}

/* Archive Badge */
.archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

.archive-badge i {
    font-size: 11px;
}

/* Conversation Action Buttons */
.conversation-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s;
}

.conversation-item:hover .conversation-actions {
    opacity: 1;
}

.conversation-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-tertiary, #f6f8fa);
    border-radius: 6px;
    color: var(--text-tertiary, #718096);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.conversation-action-btn:hover {
    background: var(--bg-secondary, #e2e8f0);
    color: var(--text-primary, #1a202c);
    transform: scale(1.1);
}

.conversation-action-btn.pin-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.conversation-action-btn.pin-btn.active:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.conversation-action-btn.archive-btn.active {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.conversation-action-btn.archive-btn.active:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* Pinned Conversation Highlight */
.conversation-item.pinned {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
    border-left: 3px solid #f59e0b;
}

.conversation-item.pinned::before {
    content: '\f08d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #f59e0b;
    font-size: 10px;
}

/* Archived Conversation */
.conversation-item.archived {
    opacity: 0.6;
    background: linear-gradient(90deg, rgba(107, 114, 128, 0.05) 0%, transparent 100%);
}

.conversation-item.archived:hover {
    opacity: 1;
}

/* Filter Tabs */
.conversation-filter-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary, #e2e8f0);
}

.conversation-filter-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary, #4a5568);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.conversation-filter-tab:hover {
    background: var(--bg-tertiary, #f6f8fa);
    color: var(--text-primary, #1a202c);
}

.conversation-filter-tab.active {
    background: var(--accent-primary, #C41E3A);
    color: white;
}

.conversation-filter-tab i {
    font-size: 12px;
}

.conversation-filter-tab .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.conversation-filter-tab.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* Dark mode */
html.dark-mode .pin-badge {
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.5);
}

html.dark-mode .archive-badge {
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.5);
}

html.dark-mode .conversation-action-btn {
    background: #374151;
    color: #9ca3af;
}

html.dark-mode .conversation-action-btn:hover {
    background: #4b5563;
    color: #f9fafb;
}

html.dark-mode .conversation-item.pinned {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
    border-left-color: #f59e0b;
}

html.dark-mode .conversation-item.archived {
    background: linear-gradient(90deg, rgba(107, 114, 128, 0.1) 0%, transparent 100%);
}

html.dark-mode .conversation-filter-tabs {
    border-color: #4b5563;
}

html.dark-mode .conversation-filter-tab {
    color: #9ca3af;
}

html.dark-mode .conversation-filter-tab:hover {
    background: #374151;
    color: #f9fafb;
}

html.dark-mode .conversation-filter-tab.active {
    background: var(--accent-primary, #C41E3A);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .pin-badge,
    .archive-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .conversation-actions {
        opacity: 1;
    }

    .conversation-action-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .conversation-filter-tabs {
        overflow-x: auto;
        padding: 8px 12px;
    }

    .conversation-filter-tab {
        font-size: 12px;
        padding: 5px 10px;
        white-space: nowrap;
    }
}
