/**
 * nexus_follow_styles.css
 * 
 * Styles pour le système de follow (boutons, notifications, compteurs)
 */

/* ============================================
   BOUTON FOLLOW/UNFOLLOW
   ============================================ */

.nexus-follow-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
}

/* État: Pas encore suivi */
.nexus-follow-btn.not-following {
    background: var(--nexus-primary, #4A90E2);
    color: white;
}

.nexus-follow-btn.not-following:hover {
    background: var(--nexus-primary-dark, #357ABD);
    transform: translateY(-1px);
}

/* État: Déjà suivi */
.nexus-follow-btn.following {
    background: var(--nexus-bg-secondary, #f0f0f0);
    color: var(--nexus-text-primary, #333);
    border: 1px solid var(--nexus-border, #ddd);
}

.nexus-follow-btn.following:hover {
    background: #ffe0e0;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.nexus-follow-btn.following:hover::before {
    content: '✕ ';
}

/* État: Désactivé (pendant chargement) */
.nexus-follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Variante compacte */
.nexus-follow-btn.compact {
    padding: 6px 12px;
    font-size: 12px;
}

/* Variante large */
.nexus-follow-btn.large {
    padding: 12px 24px;
    font-size: 16px;
}

/* ============================================
   NOTIFICATION DE FOLLOW
   ============================================ */

.nexus-follow-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--nexus-bg-card, white);
    color: var(--nexus-text-primary, #333);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.nexus-follow-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   COMPTEURS DE FOLLOWERS/FOLLOWING
   ============================================ */

.nexus-follow-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 16px 0;
}

.nexus-follow-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nexus-follow-stat:hover {
    background: var(--nexus-bg-hover, #f5f5f5);
}

.nexus-follow-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--nexus-text-primary, #333);
}

.nexus-follow-stat-label {
    font-size: 13px;
    color: var(--nexus-text-secondary, #666);
    margin-top: 2px;
}

/* ============================================
   LISTE DE FOLLOWERS/FOLLOWING
   ============================================ */

.nexus-follow-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nexus-follow-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--nexus-bg-card, white);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.nexus-follow-item:hover {
    background: var(--nexus-bg-hover, #f5f5f5);
}

.nexus-follow-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.nexus-follow-item-info {
    flex: 1;
    min-width: 0;
}

.nexus-follow-item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--nexus-text-primary, #333);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.nexus-follow-item-name:hover {
    text-decoration: underline;
}

.nexus-follow-item-meta {
    font-size: 13px;
    color: var(--nexus-text-secondary, #666);
}

.nexus-follow-item-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   SUGGESTIONS D'UTILISATEURS
   ============================================ */

.nexus-suggestions-container {
    background: var(--nexus-bg-card, white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.nexus-suggestions-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--nexus-text-primary, #333);
    margin-bottom: 12px;
}

.nexus-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--nexus-border, #eee);
}

.nexus-suggestion-item:last-child {
    border-bottom: none;
}

.nexus-suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nexus-suggestion-info {
    flex: 1;
    min-width: 0;
}

.nexus-suggestion-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--nexus-text-primary, #333);
}

.nexus-suggestion-stats {
    font-size: 12px;
    color: var(--nexus-text-secondary, #666);
}

/* ============================================
   BADGE "SUIT"
   ============================================ */

.nexus-following-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--nexus-bg-secondary, #f0f0f0);
    color: var(--nexus-text-secondary, #666);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 6px;
}

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

@media (max-width: 768px) {
    .nexus-follow-notification {
        right: 10px;
        left: 10px;
        top: 70px;
    }
    
    .nexus-follow-stats {
        gap: 16px;
    }
    
    .nexus-follow-stat-number {
        font-size: 18px;
    }
    
    .nexus-suggestions-container {
        padding: 12px;
    }
}

/* ============================================
   MODE NUIT (via data-theme="dark")
   ============================================ */

[data-theme="dark"] .nexus-follow-btn.following {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

[data-theme="dark"] .nexus-follow-btn.following:hover {
    background: #3a1a1a;
    border-color: #ff6b6b;
}

[data-theme="dark"] .nexus-follow-notification {
    background: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nexus-follow-item:hover,
[data-theme="dark"] .nexus-follow-stat:hover {
    background: #333;
}

[data-theme="dark"] .nexus-suggestions-container {
    background: #1a1a1a;
}
