/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #FAFAFA;
    color: #262626;
}

/* Header Styles */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #FFFFFF;
    height: 44px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #DBDBDB;
}

.header-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-image {
    height: 30px;
    width: auto;
}

#refresh-logo {
    cursor: pointer;
}

.header-icons {
    display: flex;
    gap: 24px;
}

/* Feed Container */
.feed-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 48px auto;
    overflow-y: scroll;
    height: calc(100vh - 92px);
    padding: 16px 8px 0;
}

/* Hide Scrollbar */
.feed-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.feed-container::-webkit-scrollbar {
    display: none;
}

/* Post Styles */
.post {
    background-color: #FFFFFF;
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    margin-bottom: 24px;
    max-width: 100%;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.username {
    font-weight: 500;
    font-size: 14px;
    color: #262626;
}

.post-image {
    width: 100%;
    display: block;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-actions {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 16px;
}

.post-actions .icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.post-actions .save-icon {
    margin-left: auto;
}

.post-likes {
    font-weight: 500;
    font-size: 14px;
    padding: 0 16px 4px;
}

.post-caption {
    font-size: 14px;
    padding: 0 16px 4px;
    line-height: 1.4;
}

.post-caption .username {
    font-weight: 500;
    margin-right: 4px;
}

.post-comments {
    font-size: 14px;
    padding: 0 16px 4px;
    color: #262626;
}

.post-comments .comment .username {
    font-weight: 500;
    margin-right: 4px;
    color: #262626;
}

.post-time {
    font-size: 10px;
    color: #8E8E8E;
    text-transform: uppercase;
    padding: 4px 16px 12px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    height: 48px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #DBDBDB;
    z-index: 100;
}

.nav-item {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item .icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.nav-item.active .icon {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
