/* 
body {
    background-color: #f0f2f5;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    padding: 40px 10px;
}
*/

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f0f2f5;
}

.feed-container {
    max-width: 100%;
    padding: 12px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* HEADER */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info h4 {
    margin: 0;
    font-size: 15px;
}

.user-info span {
    font-size: 12px;
    color: gray;
}

.menu {
    font-size: 20px;
    cursor: pointer;
}

/* BODY */
.post-body {
    padding: 0 14px 14px;
    font-size: 14px;
    line-height: 1.5;
}

.post-body a {
    color: #1877f2;
    text-decoration: none;
}

/* IMAGE GRID (Mobile: 1 column) */
.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.image-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ENGAGEMENT */
.engagement {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    color: gray;
    border-top: 1px solid #eee;
}

/* ACTION BUTTONS */
.actions {
    display: flex;
    border-top: 1px solid #eee;
}

.actions button {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
}

.actions button:hover {
    background: #f2f2f2;
}

/* COMMENT BOX */
.comment-box {
    display: flex;
    align-items: center;
    padding: 10px 14px 14px;
    border-top: 1px solid #eee;
}

.comment-box input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* ========== TABLET (≥600px) ========== */
@media (min-width: 600px) {

    .feed-container {
        max-width: 600px;
        margin: auto;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-grid img {
        height: 200px;
    }

    .user-info h4 {
        font-size: 16px;
    }

    .post-body {
        font-size: 15px;
    }
}

/* ========== DESKTOP (≥900px) ========== */
@media (min-width: 900px) {

    .feed-container {
        max-width: 720px;
    }

    .post-card {
        border-radius: 16px;
    }

    .avatar {
        width: 45px;
        height: 45px;
    }

    .actions button {
        font-size: 15px;
    }
}