* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1877f2;
    --bg-color: #f0f2f5;
    --text-color: #050505;
    --secondary-text: #65676b;
    --divider-color: #e4e6eb;
    --hover-color: #e4e6eb;
    --white: #fff;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 1rem;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
}

.search-bar {
    display: flex;
    background-color: var(--bg-color);
    border-radius: 20px;
    padding: 0.5rem;
    width: 240px;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    padding: 0 0.5rem;
}

.search-bar button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--secondary-text);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 1.2rem;
    color: var(--secondary-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--hover-color);
    color: var(--primary-color);
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.profile-link img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Main Container Styles */
main {
    padding: 1rem;
}

.container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Styles */
.left-sidebar {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow);
    height: fit-content;
}

.left-sidebar ul {
    list-style: none;
}

.left-sidebar li {
    margin-bottom: 0.5rem;
}

.left-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.left-sidebar a:hover {
    background-color: var(--hover-color);
}

.right-sidebar {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.sidebar-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sidebar-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.event {
    display: flex;
    margin-bottom: 1rem;
}

.left-event {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    border-radius: 10px 0 0 10px;
    padding: 0.5rem;
    width: 50px;
}

.right-event {
    background-color: var(--bg-color);
    border-radius: 0 10px 10px 0;
    padding: 0.5rem;
    flex: 1;
}

.right-event h4 {
    margin-bottom: 0.2rem;
}

.right-event a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Content Styles */
.content {
    margin-bottom: 1rem;
}

.create-post {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.post-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-top img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-top input {
    flex: 1;
    border: none;
    outline: none;
    background-color: var(--bg-color);
    padding: 0.8rem;
    border-radius: 20px;
}

.post-bottom {
    border-top: 1px solid var(--divider-color);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-options {
    display: flex;
    justify-content: space-around;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
}

.option:hover {
    background-color: var(--hover-color);
}

.option i {
    color: var(--secondary-text);
}

#create-post-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-end;
}

#create-post-btn:hover {
    background-color: #166fe5;
}

/* Post Styles */
.post {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-header .post-info {
    flex: 1;
}

.post-header .post-info h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.post-header .post-info span {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.post-content {
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-content img {
    width: 100%;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
}

.post-action:hover {
    background-color: var(--hover-color);
}

.post-action.liked i {
    color: var(--primary-color);
}

.post-action i {
    color: var(--secondary-text);
}

.post-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

/* Profile View Styles */
.profile-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1001;
    overflow-y: auto;
    display: none;
}

.profile-header {
    background-color: var(--white);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    position: relative;
}

.cover-photo {
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
}

.cover-photo img {
    width: 100%;
    object-fit: cover;
    height: 100%;
}

.profile-info {
    position: relative;
    padding: 0 1rem 1rem;
    text-align: center;
    margin-top: -75px;
}

.profile-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--white);
    object-fit: cover;
}

.profile-info h2 {
    margin: 0.5rem 0;
    font-size: 1.8rem;
}

.profile-info p {
    color: var(--secondary-text);
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

.profile-actions button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-actions button.message {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.profile-content {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-nav {
    display: flex;
    border-bottom: 1px solid var(--divider-color);
    margin-bottom: 1rem;
}

.profile-nav button {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.profile-nav button.active {
    color: var(--primary-color);
}

.profile-nav button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.about-details {
    padding: 1rem;
}

.about-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-details i {
    color: var(--secondary-text);
    width: 20px;
}

.friends-grid, .photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.friend-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.friend-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.friend-card h4 {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.photo-card {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Detail View for Comments */
.post-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    display: none;
    justify-content: center;
    align-items: center;
}

.post-detail-container {
    background-color: var(--white);
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
}

.comments-section {
    padding: 1rem;
    border-top: 1px solid var(--divider-color);
}

.comment {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.comment img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    background-color: var(--bg-color);
    border-radius: 18px;
    padding: 0.5rem 1rem;
    flex: 1;
}

.comment-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.comment-content p {
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.7rem;
    color: var(--secondary-text);
    margin-top: 0.2rem;
}

.add-comment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-comment img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.add-comment input {
    flex: 1;
    border: none;
    outline: none;
    background-color: var(--bg-color);
    padding: 0.8rem;
    border-radius: 20px;
}

.add-comment button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Friend Suggestions */
.friend-suggestion {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.friend-suggestion img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
}

.friend-suggestion .suggestion-info {
    flex: 1;
}

.friend-suggestion .suggestion-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.friend-suggestion .suggestion-info p {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.friend-suggestion button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr 2fr;
    }
    
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar {
        display: none;
    }
    
    .search-bar {
        display: none;
    }
    
    .nav-links {
        flex: 1;
        justify-content: space-around;
    }
    
    .profile-info img {
        width: 100px;
        height: 100px;
        margin-top: 30px;
    }
} 