/* General Body Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #070404;
    font-size: 14px;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #262626;
}

.logo {
    font-size: 24px;
    margin: 0;
    /* In a real app, this would be a custom font or SVG logo */
}

.header-icons {
    display: flex;
    gap: 20px; /* Space between icons */
}

/* --- STORIES --- */
.stories {
    display: flex;
    padding: 10px 15px;
    gap: 15px;
    overflow-x: auto; /* Makes it scrollable horizontally */
    border-bottom: 1px solid #262626;
}
/* Hide the scrollbar for a cleaner look */
.stories::-webkit-scrollbar {
    display: none;
}

.story {
    text-align: center;
    flex-shrink: 0; /* Prevents stories from shrinking */
}

.story p {
    margin-top: 5px;
    font-size: 12px;
}

.story-gradient-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.story img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #000;
    object-fit: cover; /* Ensures image covers the circle */
}

/* --- POST --- */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.poster-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-pic-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.username {
    font-weight: bold;
}

.post-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
}

.left-icons {
    display: flex;
    gap: 15px;
}

.post-details {
    padding: 0 15px 15px 15px;
}

.post-details p {
    margin: 5px 0;
}

.caption .more-text {
    color: #a8a8a8;
}

.view-comments {
    color: #a8a8a8;
}

/* --- BOTTOM NAVIGATION --- */
.bottom-nav {
    position: fixed; /* Sticks to the bottom */
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background-color: #fffcfc;
    border-top: 1px solid #262626;
}

.profile-pic-nav {
     width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}