/* ============================================
   QUESTION FOLLOW SYSTEM
   ============================================ */

.experts123-question-follow {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid rgba(139, 92, 246, 0.1);
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.follow-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    background: white;
    color: #8B5CF6;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
}

.follow-btn:active {
    transform: translateY(0);
}

/* Active (following) state */
.follow-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
    border-color: transparent;
}

.follow-btn.active svg {
    fill: white;
    stroke: white;
}

/* Loading state */
.follow-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.follow-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Icons */
.follow-btn svg {
    transition: all 0.3s ease;
}

.follow-btn:hover svg {
    transform: scale(1.1);
}

.follow-btn.active:hover svg {
    animation: bellRing 0.6s ease;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    20%, 60% {
        transform: rotate(15deg);
    }
    40%, 80% {
        transform: rotate(-15deg);
    }
}

/* ========================================
   FOLLOWER STATS
   ======================================== */

.follow-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.follow-stats.updated {
    animation: statsUpdate 0.6s ease;
}

@keyframes statsUpdate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.follower-avatars {
    display: flex;
    margin-left: -8px;
}

.follower-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.follower-avatar:first-child {
    margin-left: 0;
}

.follower-avatar:hover {
    transform: translateY(-2px) scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.follower-count {
    margin: 0;
    font-size: 0.875rem;
    color: #718096;
}

.follower-count .count {
    color: #8B5CF6;
    font-weight: 700;
    font-size: 1.125rem;
}

/* ========================================
   GUEST EMAIL PROMPT
   ======================================== */

.guest-email-prompt {
    margin-top: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.guest-email-prompt h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

.guest-follow-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guest-follow-form input[type="email"] {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.guest-follow-form input[type="email"]:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.guest-follow-form .btn-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-follow-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.guest-follow-form .btn-cancel {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #718096;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-follow-form .btn-cancel:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.follow-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.follow-notification-success {
    color: #10B981;
    border-left: 4px solid #10B981;
}

.follow-notification-error {
    color: #EF4444;
    border-left: 4px solid #EF4444;
}

.follow-notification-info {
    color: #3B82F6;
    border-left: 4px solid #3B82F6;
}

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

@media (max-width: 768px) {
    .experts123-question-follow {
        padding: 1.25rem;
        margin: 1rem 0;
    }

    .follow-actions {
        flex-direction: column;
    }

    .follow-btn {
        width: 100%;
    }

    .follow-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .follower-avatars {
        margin-left: 0;
    }

    .follow-notification {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(100px);
        width: auto;
    }

    .follow-notification.show {
        transform: translateX(0) translateY(0);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.follow-btn:focus,
.guest-follow-form input:focus,
.guest-follow-form button:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .follow-btn,
    .follower-avatar,
    .follow-notification {
        transition: none;
        animation: none;
    }
}

