* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #050505;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-background {
    width: 100%;
    max-width: 680px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.post-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.profile-pic-container {
    margin-right: 10px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.profile-pic-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

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

.user-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    cursor: pointer;
}

.user-name:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 13px;
    color: #65676B;
    display: flex;
    align-items: center;
}

.post-time:hover {
    text-decoration: underline;
    cursor: pointer;
}

.dot-separator {
    margin: 0 4px;
}

.post-options {
    color: #65676B;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-options:hover {
    background-color: #f2f2f2;
}

/* Content */
.post-content {
    padding: 4px 16px 16px;
    font-size: 15px;
    line-height: 1.4;
}

/* Image */
.post-image-container {
    width: 100%;
    background-color: #f0f2f5;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Ad CTA Bar */
.ad-cta-bar {
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    padding: 12px 16px;
    cursor: pointer;
}

.ad-cta-bar:hover {
    background-color: #e4e6eb;
}

.ad-cta-info {
    flex-grow: 1;
}

.ad-cta-url {
    font-size: 12px;
    color: #65676B;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.ad-cta-title {
    font-size: 16px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 2px;
}

.ad-cta-subtitle {
    font-size: 14px;
    color: #65676B;
}

.ad-cta-btn {
    background-color: #d8dadf;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #050505;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ad-cta-btn:hover {
    background-color: #c9ccd1;
}

/* Stats */
.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: #65676B;
    font-size: 15px;
}

.reactions-count {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.reaction-icons {
    display: flex;
    margin-right: 6px;
}

.icon-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.icon-like {
    background-color: #1877F2;
    z-index: 2;
}

.icon-heart {
    background-color: #F02849;
    margin-left: -4px;
    z-index: 1;
}

.comments-shares-count span {
    margin-left: 8px;
    cursor: pointer;
}

.comments-shares-count span:hover,
#likes-count-text:hover {
    text-decoration: underline;
}

.divider {
    height: 1px;
    background-color: #ced0d4;
    margin: 0 16px;
}

/* Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 4px 16px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #65676B;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 0;
    margin: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.action-btn:hover {
    background-color: #f2f2f2;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn.active {
    color: #1877F2;
}

.action-icon {
    margin-right: 6px;
}

/* Comment Section */
.comment-input-section {
    display: flex;
    padding: 12px 16px;
    align-items: center;
}

.comment-input-wrapper {
    flex-grow: 1;
    margin-left: 8px;
    background-color: #f0f2f5;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.comment-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: #050505;
}

.comment-input-icons {
    display: flex;
    gap: 8px;
    color: #65676B;
    cursor: pointer;
}

.comment-input-icons svg:hover {
    fill: #1877F2;
}

@media (max-width: 500px) {
    .app-background {
        padding: 0;
    }
    
    .post-card {
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #ced0d4;
        border-bottom: 1px solid #ced0d4;
    }
}
