/* FOLLOWERS / FOLLOWING MODAL */

.follow-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.65);
}

.follow-modal-overlay.active {
    display: flex;
}

body.follow-modal-open {
    overflow: hidden;
}

.follow-modal {
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card-bg, #fff);
    color: var(--text-color, #222);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.follow-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color, #ddd);
}

.follow-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

#closeFollowModal {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 28px;
    cursor: pointer;
}

.follow-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color, #ddd);
}

.follow-modal-tab {
    flex: 1;
    padding: 13px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: inherit;
    font-size: 15px;
    cursor: pointer;
}

.follow-modal-tab.active {
    border-bottom-color: var(--primary-color, #6c63ff);
    color: var(--primary-color, #6c63ff);
    font-weight: 600;
}

.follow-list {
    min-height: 150px;
    overflow-y: auto;
    padding: 10px 18px;
}

.follow-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #eee);
}

.follow-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.follow-user-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.follow-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.follow-user-details strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.follow-user-details span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0.7;
}

.follow-action-btn {
    min-width: 90px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color, #6c63ff);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.follow-action-btn.following {
    border: 1px solid var(--border-color, #ccc);
    background: transparent;
    color: inherit;
}

.follow-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.follow-empty-message,
.follow-error-message {
    padding: 25px 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .follow-modal {
        max-height: 85vh;
    }

    .follow-modal-header {
        padding: 15px;
    }

    .follow-list {
        padding: 8px 12px;
    }
}