* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #121212;
}

/* App Container */
.main-screen {
    height: 650px;
    width: 400px;
    border: 1px solid #262626;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    background: #000000;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Top Bar */
.nav {
    height: 54px;
    width: 100%;
    background: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #262626;
    z-index: 5;
}

.nav h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

button img {
    height: 24px;
    width: 24px;
    filter: invert(1);
    transition: opacity 0.2s;
}

button img:hover {
    opacity: 0.7;
}

/* Scrollable Main Section */
.content {
    flex: 1;
    background: #000000;
    overflow-y: auto;
}

.content::-webkit-scrollbar {
    display: none;
}

/* Stories Section */
.stories {
    display: flex;
    overflow-x: auto;
    padding: 12px 10px;
    gap: 16px;
    background: #000000;
    border-bottom: 1px solid #262626;
}

.stories::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.story-item img {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    object-fit: cover;
}

.story-item p {
    color: #f5f5f5;
    font-size: 11px;
    margin-top: 5px;
    max-width: 60px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Popup */
.post-popup {
    display: none;
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: #262626;
    padding: 20px;
    border-radius: 12px;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.post-popup h3 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
}

.post-popup input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #121212;
    border: 1px solid #363636;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.post-popup input::placeholder {
    color: #a8a8a8;
}

.add-post {
    width: 100%;
    background: #0095f6;
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    justify-content: center;
}

.add-post:hover {
    background: #1877f2;
}

/* Posts Feed */
.post-card {
    background: #000000;
    border-bottom: 1px solid #262626;
    padding-bottom: 8px;
}

.post-header {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

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

.post-header p {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.post-image {
    width: 100%;
    background: #121212;
}

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

.post-actions {
    display: flex;
    gap: 16px;
    padding: 10px 12px;
}

.post-actions img {
    width: 22px;
    height: 22px;
    filter: invert(1);
}

.post-text {
    color: #ffffff;
    padding: 0 12px 8px;
    font-size: 13px;
    line-height: 1.4;
}

.post-text b {
    margin-right: 6px;
}

.post-text p {
    color: #dbdbdb;
    margin-top: 2px;
}

/* Bottom Bar */
.bottom-nav {
    height: 50px;
    width: 100%;
    background: #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #262626;
    z-index: 5;
}
