* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    display: flex;
}

/* Left Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 245px;
    border-right: 1px solid #dbdbdb;
    background: #fff;
    padding: 25px 12px 20px 12px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.logo {
    height: 29px;
    margin: 25px 0 28px 12px;
}

.logo img {
    height: 100%;
}

.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-item:hover {
    background: #f2f2f2;
}

.sidebar-item.active {
    font-weight: 700;
}

.sidebar-item i {
    font-size: 24px;
    margin-right: 16px;
}

.sidebar-item span {
    font-size: 16px;
}

.sidebar-item img.profile-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 16px;
}

/* Main Content */
.main-content {
    margin-left: 245px;
    width: calc(100% - 245px);
    display: flex;
    justify-content: center;
    padding: 32px 0;
    gap: 32px;
}

/* Feed Section */
.feed {
    width: 470px;
    flex-shrink: 0;
    margin-right: 32px;
}

/* Stories */
.stories {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 16px 0;
    margin-bottom: 24px;
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-left: 16px;
}

.story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.story-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.story span {
    font-size: 12px;
    color: #262626;
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Posts */
.post {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user .username {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

.post-image {
    width: 100%;
}

.post-image img {
    width: 100%;
    height: auto;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}

.left-actions {
    display: flex;
    gap: 16px;
}

.post-actions i {
    font-size: 24px;
    cursor: pointer;
}

.post-likes {
    padding: 0 16px;
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

.post-caption {
    padding: 0 16px 12px;
    font-size: 14px;
    color: #262626;
}

.post-caption .username {
    font-weight: 600;
    margin-right: 4px;
}

/* Right Sidebar */
.right-sidebar {
    width: 319px;
    position: sticky;
    top: 32px;
    height: 100vh;
    flex-shrink: 0;
}

.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.profile-section img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 12px;
}

.profile-info {
    flex: 1;
}

.profile-info .username {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
    display: block;
}

.profile-info .name {
    font-size: 14px;
    color: #8e8e8e;
}

.switch-btn {
    color: #0095f6;
    font-weight: 600;
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.suggestions-header span {
    font-weight: 600;
    font-size: 14px;
    color: #8e8e8e;
}

.suggestions-header button {
    font-weight: 600;
    font-size: 12px;
    color: #262626;
    background: none;
    border: none;
    cursor: pointer;
}

.suggestion-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.suggestion-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-info .username {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
    display: block;
}

.suggestion-info .relation {
    font-size: 12px;
    color: #8e8e8e;
}

.follow-btn {
    color: #0095f6;
    font-weight: 600;
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1160px) {
    .right-sidebar {
        display: none;
    }
    .feed {
        margin-right: 0;
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: 72px;
        padding: 25px 12px;
    }
    
    .sidebar-item span {
        display: none;
    }
    
    .logo {
        display: none;
    }
    
    .main-content {
        margin-left: 72px;
        width: calc(100% - 72px);
    }
    
    .feed {
        width: 100%;
        max-width: 470px;
    }
} 