/* ============================================
   FOLLOW SYSTEM STYLES
   ============================================ */

:root {
    --follow-primary: #667eea;
    --follow-success: #10b981;
    --follow-hover: #764ba2;
}

/* ============================================
   FOLLOW BUTTONS
   ============================================ */

.btn-follow-inactive {
    background: var(--follow-primary);
    color: white;
    border: 2px solid var(--follow-primary);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-follow-inactive:hover {
    background: var(--follow-hover);
    border-color: var(--follow-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-follow-inactive:active {
    transform: translateY(0);
}

.btn-follow-active {
    background: white;
    color: var(--follow-success);
    border: 2px solid var(--follow-success);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-follow-active:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #dc2626;
}

.btn-follow-active:hover::before {
    content: "Unfollow";
    position: absolute;
}

.btn-follow-active:hover i {
    display: none;
}

/* Small follow button variant */
.btn-follow-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

/* Icon-only follow button */
.btn-follow-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FOLLOW COUNTS
   ============================================ */

.follow-counts {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.follow-count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
}

.follow-count-item:hover {
    color: var(--follow-primary);
    transform: translateY(-2px);
}

.follow-count-item .count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c1c1c;
}

.follow-count-item:hover .count {
    color: var(--follow-primary);
}

.follow-count-item .label {
    font-size: 0.85rem;
    color: #7c7c7c;
    font-weight: 500;
}

/* ============================================
   FOLLOWERS/FOLLOWING LISTS
   ============================================ */

.follow-list {
    background: white;
    border: 1px solid #edeff1;
    border-radius: 8px;
    overflow: hidden;
}

.follow-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #edeff1;
    transition: background 0.2s;
}

.follow-list-item:last-child {
    border-bottom: none;
}

.follow-list-item:hover {
    background: #f6f7f8;
}

.follow-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--follow-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.follow-list-info {
    flex: 1;
    min-width: 0;
}

.follow-list-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.follow-list-name a {
    color: inherit;
    text-decoration: none;
}

.follow-list-name a:hover {
    color: var(--follow-primary);
}

.follow-list-bio {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.follow-list-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.follow-list-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.follow-list-action {
    flex-shrink: 0;
}

/* ============================================
   FOLLOW SUGGESTIONS WIDGET
   ============================================ */

.follow-suggestions-widget {
    background: white;
    border: 1px solid #edeff1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.follow-suggestions-header {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.follow-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #edeff1;
    transition: background 0.2s;
}

.follow-suggestion-item:last-child {
    border-bottom: none;
}

.follow-suggestion-item:hover {
    background: #f6f7f8;
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--follow-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1c1c1c;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.suggestion-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================
   FOLLOW TOAST NOTIFICATIONS
   ============================================ */

.follow-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #1c1c1c;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.follow-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.follow-toast-success {
    border-left: 4px solid #10b981;
}

.follow-toast-error {
    border-left: 4px solid #ef4444;
}

.follow-toast-info {
    border-left: 4px solid #3b82f6;
}

/* ============================================
   MUTUAL FOLLOWERS INDICATOR
   ============================================ */

.mutual-followers-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #667eea;
    background: #e0e7ff;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.mutual-followers-badge i {
    font-size: 0.7rem;
}

/* ============================================
   FOLLOW ACTIVITY FEED
   ============================================ */

.follow-activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid #edeff1;
    transition: background 0.2s;
}

.follow-activity-item:hover {
    background: #f6f7f8;
}

.follow-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.follow-activity-content {
    flex: 1;
}

.follow-activity-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

.follow-activity-text strong {
    font-weight: 600;
    color: #1c1c1c;
}

.follow-activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .follow-counts {
        gap: 1.5rem;
    }

    .follow-count-item .count {
        font-size: 1.25rem;
    }

    .btn-follow-inactive,
    .btn-follow-active {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }

    .follow-toast {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }

    .follow-list-item {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.btn-follow-loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-follow-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

