/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #050505;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Facebook header */
.header {
    background-color: #1877f2;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    height: 48px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.fb-logo {
    color: white;
    font-size: 40px;
    line-height: 1;
    margin-right: 8px;
}

.search-container {
    background-color: white;
    border-radius: 20px;
    padding: 0 12px;
    height: 36px;
    display: flex;
    align-items: center;
    width: 240px;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    background-color: transparent;
}

/* Navigation */
.navigation {
    background-color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #dddfe2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-items {
    display: flex;
    width: 100%;
    max-width: 680px;
    justify-content: space-between;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    color: #65676b;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    position: relative;
}

.nav-item.active {
    color: #1877f2;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #1877f2;
}

/* Main content container */
.content-area {
    width: 100%;
    max-width: 680px;
    padding: 20px 0;
}

/* Post styling */
.post-container {
    background-color: white;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    padding: 12px 16px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff4500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 12px;
}

.post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-subreddit {
    font-weight: 600;
    font-size: 15px;
    color: #050505;
}

.post-time {
    font-size: 13px;
    color: #65676b;
}

.post-content {
    padding: 0 16px 12px;
}

.post-title {
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background-color: black;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    color: #65676b;
    font-size: 14px;
    border-bottom: 1px solid #ced0d4;
}

.post-actions {
    display: flex;
    padding: 4px 16px;
    justify-content: space-around;
}

.post-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #65676b;
    font-weight: 600;
    font-size: 15px;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
}

.post-action:hover {
    background-color: #f2f2f2;
}