/* Basic reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: sans-serif;
    padding-top: 60px;
    padding-bottom: 60px;
    font-size: 14px;
    color:#555555;
}
a {
    text-decoration: none;
}

    a:hover,
    a:focus,
    a:active {
        text-decoration: none;
    }
header, footer { position: fixed; left: 0; width: 100%; background: white; display: flex; justify-content: space-around; align-items: center; height: 60px; transition: opacity 0.3s, transform 0.3s; z-index: 10; }
header { top: 0; }
    header img.icon {
        width: 24px;
        height: 24px;
        cursor: pointer;
    }
footer { bottom: 0; }
.logo {
    width: 32px;
    height: 32px;
    cursor: pointer;
}
.icon { width: 20px; height: 20px; cursor: pointer; }
.container { padding: 10px; }
.post { border-bottom: 0px solid #ddd; padding: 10px 0px 10px 0px; margin-bottom:5px; }
.post img, .post video, .post audio { width: 100%; margin-top: 10px; }
.post img.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.post .post-bottom {
    display: flex;
    justify-content: space-around;
    padding: 18px 0px 18px 0px;
    border-bottom: 0px solid #eee;
    background: #fff;
    z-index: 10;
}
.post img.icon {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

.profile-info {
    text-align: left;
    margin: 16px 0px 28px 0px;
    display:block;
    min-height:80px;
}
    .profile-info h2 {
       
        font-size: 24px;
        color: #000000;
        font-weight: 800;
        margin-bottom: 5px;
    }
    .profile-info img.avatar {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        margin-bottom:8px;
        float:right;
        display:inline;
        
    }
.profile-info .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.avatar { width: 32px; height: 32px; border-radius: 50%; }
.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #000000;
    font-weight:800;
    margin-bottom:5px;
}
.post p{  
    font-size: 14px;
    color: #555555;
    font-weight: 300;
    padding:8px 0;
}
.topic-list, .profile-info { margin: 20px 0; }

/* Full-screen slide-in overlay */
.menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 20; transform: translateX(100%); transition: transform 0.3s ease; flex-direction: column; }
.menu-overlay.active { display: flex; transform: translateX(0); }
.menu-header { display: flex; align-items: center; padding: 16px; border-bottom: 0px solid #eee; }
.close-button { margin-right: 12px; }

/* Overlay nav list */
.menu-overlay nav ul { list-style: none; padding: 0; margin: 0; }
.menu-overlay nav li { padding: 14px 16px; border-bottom: 0px solid #f4f4f4; font-size: 16px; }

/* Sticky tabs */
.tabs { display: flex; border-bottom: 1px solid #ddd; background: white; position: sticky; top: 0px; z-index: 10;margin-bottom:25px; }
.tabs li { flex: 1; text-align: center; padding: 10px 0; list-style: none; font-size: 14px; cursor: pointer; color: #555; }
.tabs li.active { border-bottom: 2px solid black; font-weight: bold; color: black; }
/* Back-button header adjustments */
.menu-header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;       /* equal left/right padding */
  height: 56px;          /* match mobile-header height */
  border-bottom:0px solid #eee;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.00);
}
.menu-header .icon {
  margin-right: 12px;
}
.menu-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* Header layout override for globe, stats, instagram, menu */
header {
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
}
header img.icon {
  width: 20px;
  height: 20px;
}
.thread-rate {
    text-align: center;
    padding: 12px 16px;
    color: #888;
    font-size: 14px;
}

/* Thread input */
.thread-input {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid #eee;
    background: #fff;
    gap: 8px;
    position: sticky;
    bottom: 0px;
}

    .thread-input .avatar-small {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

    .thread-input input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        color: #555;
    }

    .thread-input .icon {
        width: 24px;
        height: 24px;
        cursor: pointer;
    }
.post-bottom {
    display: flex;
    justify-content: space-around;
    padding: 18px 0px 18px 0px;
    border-bottom: 0px solid #eee;
    background: #fff;
    z-index: 10;
}
.post-header {
    display: inline-flex;
    align-items:center;
    gap: 10px;
}
/* Media */
.post-media {
    margin: 10px 0;
}

    .post-media .image {
        width: 100%;
        height: 200px;
        background-color: #ddd;
        border-radius: 8px;

    }

    .post-media .video-placeholder {
        width: 100%;
        height: 200px;
        background-color: #000;
        border-radius: 8px;
    }

    .post-media .audio-placeholder {
        width: 100%;
        height: 50px;
        background-color: #bbb;
        border-radius: 8px;
    }
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.media-full {
    width: calc(100% - 2.5px);
    padding-top: 8px;
    background: #ffffff;
}

.media-placeholder {
    width: 100%;
    background: #e1e1e1;
}

.post-images {
    display: flex;
    gap: 5px;
}

    .post-images img {
        width: calc(100% - 2.5px);
        max-height: 320px;
        background: #ddd;
        object-fit: cover;
        border-radius: 10px;
    }

.post-media {
    position: relative;
}

    .post-media img {
        width: 100%;
        border-radius: 10px;
    }
.badge {
    width: 15px;
    height: 15px;
    display:inline;
}
.comments .comment {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.comment-content {
    background: #f9f9f9;
    padding: 8px;
    border-radius: 8px;
    flex: 1;
}
/* Gallery */
.gallery {
    display: flex;
    gap: 1rem;
}

    .gallery img {
        max-width: 200px;
        border-radius: 8px;
        cursor: pointer;
    }

/* Media Modal */
.media-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.media-modal__img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.media-modal__caption {
    margin-top: 0.5rem;
    color: #f1f1f1;
    text-align: center;
    font-size: 0.9rem;
}

.media-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.image-page {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.8);
}

    .image-page img {
        max-width: 90%;
        border-radius: 8px;
    }
.pimg {
   width: 100%;
    max-height: 300px;
    background: #ddd;
    object-fit: cover;
}