/* SOFI Feeds Profile System (Instagram-style) */

.feeds-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0e1a;
    z-index: 999998;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.feeds-profile-modal.active {
    transform: translateX(0);
}

.feeds-profile-container {
    width: 100%;
    max-width: 450px;
    height: 100vh;
    margin: 0 auto;
    overflow-y: auto;
    background: #0a0e1a;
}

/* Profile Header */
.feeds-profile-header {
    position: sticky;
    top: 0;
    background: #0a0e1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.feeds-profile-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.feeds-profile-back,
.feeds-profile-menu {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

/* Profile Info Section */
.feeds-profile-info {
    padding: 16px;
}

.feeds-profile-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

/* Avatar */
.feeds-profile-avatar {
    position: relative;
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    cursor: pointer;
}

.feeds-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.feeds-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #00d09c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e1a;
    border: 2px solid #0a0e1a;
}

/* Stats */
.feeds-profile-stats {
    display: flex;
    flex: 1;
    justify-content: space-around;
}

.feeds-stat-item {
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.feeds-stat-item:active {
    opacity: 0.7;
}

.feeds-stat-count {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.feeds-stat-label {
    display: block;
    font-size: 13px;
    color: #999;
}

/* Name & Bio */
.feeds-profile-details {
    margin-bottom: 16px;
}

.feeds-profile-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.feeds-profile-bio {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
    white-space: pre-wrap;
}

.feeds-profile-link {
    color: #00d09c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Action Buttons */
.feeds-profile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.feeds-action-btn {
    flex: 1;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.feeds-action-btn:active {
    transform: scale(0.95);
    background: #252525;
}

.feeds-action-btn i {
    font-size: 16px;
}

/* Story Highlights */
.feeds-highlights {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}

.feeds-highlights::-webkit-scrollbar {
    display: none;
}

.feeds-highlight-item {
    text-align: center;
    flex-shrink: 0;
}

.feeds-highlight-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #333;
    padding: 2px;
    margin-bottom: 4px;
}

.feeds-highlight-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.feeds-highlight-item span {
    font-size: 12px;
    color: #ffffff;
}

/* Tab Switcher */
.feeds-profile-tabs {
    display: flex;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0e1a;
    position: sticky;
    top: 60px;
    z-index: 9;
}

.feeds-tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feeds-tab-btn.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.feeds-tab-btn:active {
    opacity: 0.7;
}

/* Posts Grid */
.feeds-profile-content {
    min-height: calc(100vh - 400px);
}

.feeds-posts-grid,
.feeds-reels-grid,
.feeds-tagged-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.feeds-grid-item {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.feeds-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feeds-grid-item:active img {
    transform: scale(1.05);
}

.feeds-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feeds-grid-item:hover .feeds-grid-overlay {
    opacity: 1;
}

.feeds-grid-stats {
    display: flex;
    gap: 20px;
    color: white;
    font-weight: 600;
}

.feeds-grid-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feeds-grid-stats i {
    font-size: 20px;
}

/* No Posts State */
.feeds-no-posts {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
}

.feeds-no-posts i {
    margin-bottom: 16px;
}

.feeds-no-posts p {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 300;
    color: #ffffff;
}

.feeds-share-photos-btn {
    background: #00d09c;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    color: #0a0e1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feeds-share-photos-btn:hover {
    background: #01b88d;
    transform: scale(1.05);
}

.feeds-share-photos-btn:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 450px) {
    .feeds-profile-avatar {
        width: 77px;
        height: 77px;
    }
    
    .feeds-stat-count {
        font-size: 16px;
    }
    
    .feeds-stat-label {
        font-size: 12px;
    }
}
