/* Profile — companies/brands someone follows (preview + modal rows) */

.profile-following-section .section-title {
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tblr-body-color);
    margin-bottom: 0;
    cursor: default;
    transition: all 0.3s ease;
}

.profile-following-section .section-title:hover {
    color: var(--tblr-primary);
}

.profile-following-section .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 0.6rem;
    color: var(--tblr-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] .profile-following-section .section-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.4);
}

.profile-following-section .section-title:hover .section-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.profile-following-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .profile-following-list {
        grid-template-columns: 1fr;
    }
}

.profile-following-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(102, 126, 234, 0.12);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(118, 75, 162, 0.04));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    min-width: 0;
}

.profile-following-row-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.profile-following-row-link {
    text-decoration: none;
    color: inherit;
}

.profile-following-row:has(.profile-following-row-link:hover) {
    border-color: rgba(102, 126, 234, 0.35);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.profile-following-row-link:hover {
    color: inherit;
}

[data-bs-theme="dark"] .profile-following-row {
    border-color: rgba(102, 126, 234, 0.22);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
}

.profile-following-logo-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-following-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    object-fit: contain;
    border-radius: 0.375rem;
    border: 1px solid rgba(102, 126, 234, 0.15);
    background: var(--tblr-bg-surface, #fff);
}

.profile-following-logo-fallback {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 1.15rem;
    color: #fff;
}

.profile-following-logo-fallback-company {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.profile-following-logo-fallback-brand {
    background: linear-gradient(135deg, #6f42c1, #a855f7);
}

.profile-following-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.profile-following-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.25;
    color: var(--tblr-body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-following-row-link:hover .profile-following-name {
    color: var(--tblr-primary);
}

.profile-following-slug {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--tblr-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-following-follow-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
}

.profile-following-list-modal .profile-following-row {
    padding: 0.65rem 0.75rem;
}
