/* Instagram-Style Profile CSS */
.fts-profile-main {
    background: #fafafa;
    min-height: 100vh;
}
.fts-profile-container {
    max-width: 935px;
    margin: 0 auto;
    padding: 30px 20px;
}
.fts-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 44px;
}
.fts-profile-avatar-col {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    margin-right: 30px;
}
.fts-avatar-ring {
    padding: 4px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: inline-block;
}
.fts-profile-avatar {
    border-radius: 50%;
    border: 4px solid #fafafa;
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
}
.fts-profile-info-col {
    flex: 1;
}
.fts-profile-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.fts-profile-username {
    font-size: 22px;
    font-weight: 300;
    margin: 0 20px 0 0;
    color: #262626;
}
.fts-profile-display-name {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0 0 0;
    color: #262626;
}
.fts-profile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.fts-icon-btn {
    color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}
.fts-icon-btn:hover {
    transform: scale(1.1);
}
.fts-action-pill {
    border-radius: 8px;
    padding: 7px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.fts-action-pill:hover {
    opacity: 0.8;
}
.fts-follow-btn {
    background: #0095f6;
    color: #ffffff;
}
.fts-follow-btn.fts-following {
    background: #efefef;
    color: #262626;
}

.fts-profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}
.fts-stat-box {
    font-size: 16px;
    color: #262626;
}
.fts-stat-num {
    font-weight: 600;
}
.fts-profile-bio {
    font-size: 15px;
    line-height: 1.5;
    color: #262626;
}
.fts-profile-bio-mobile {
    display: none;
}
/* Tabs */
.fts-profile-tabs {
    display: flex;
    justify-content: center;
    border-top: 1px solid #dbdbdb;
    gap: 60px;
}
.fts-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 0;
    color: #8e8e8e;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    border-top: 1px solid transparent;
    margin-top: -1px;
}
.fts-tab.active {
    color: #262626;
    border-top: 1px solid #262626;
}
/* Responsive */
@media (max-width: 768px) {
    .fts-profile-header {
        margin-bottom: 24px;
    }
    .fts-profile-avatar {
        width: 77px;
        height: 77px;
    }
    .fts-profile-avatar-col {
        flex: 0 0 auto;
        margin-right: 28px;
    }
    .fts-profile-username {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .fts-profile-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .fts-profile-stats {
        display: none; /* Move stats to a mobile bar if needed, or hide */
    }
    .fts-profile-bio {
        display: none;
    }
    .fts-profile-bio-mobile {
        display: block;
        padding: 0 16px 20px 16px;
        font-size: 14px;
        line-height: 1.5;
    }
    .fts-profile-tabs {
        gap: 0;
        justify-content: space-around;
    }
    .fts-tab-text {
        display: none;
    }
}

/* Wider Bento Grid for Profile Only */
.fts-profile-main .finetoshine-container {
    max-width: 1200px; /* Wider than the default home grid */
    margin: 0 auto;
    width: 100%;
}
.fts-profile-main .finetoshine-home {
    padding: 0 15px;
}

/* Followers / Following Modal */
.fts-stat-clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}
.fts-stat-clickable:hover {
    opacity: 0.7;
}

.fts-follow-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.fts-follow-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.fts-follow-modal-content {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.fts-follow-modal-overlay.active .fts-follow-modal-content {
    transform: scale(1);
}
.fts-follow-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #dbdbdb;
}
.fts-follow-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}
.fts-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #262626;
    display: flex;
    padding: 4px;
}
.fts-follow-modal-body {
    padding: 8px 0;
    overflow-y: auto;
    flex: 1;
}
.fts-modal-loader {
    text-align: center;
    padding: 40px;
    color: #8e8e8e;
}
.fts-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e8e;
    font-size: 14px;
}
.fts-follow-list-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}
.fts-follow-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}
.fts-follow-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.fts-follow-username {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fts-follow-username:hover {
    text-decoration: underline;
}
.fts-follow-name {
    font-size: 14px;
    color: #8e8e8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fts-follow-action .fts-action-pill {
    padding: 6px 16px;
    font-size: 13px;
}
