﻿/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: sans-serif;
    font-size: 14px;
    background-color: #fff;
    color: #444;
    overflow-x: hidden;
    padding-bottom: 60px; /* space for bottom nav */
}

a {
    text-decoration: none;
}

    a:hover,
    a:focus,
    a:active {
        text-decoration: none;
    }
/* Header */
.profile-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
}

    .profile-header .icon-btn {
        background: none;
        border: none;
        cursor: pointer;
    }

    .profile-header .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #fff;
    }

/* Profile Info */
.profile-info {
    margin-top: 60px; /* header height */
    text-align: center;
    padding: 15px;
}

    .profile-info .name {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .profile-info .username {
        font-size: 14px;
        color: #555;
        margin-bottom: 10px;
    }

    .profile-info .interests-btn {
        padding: 6px 12px;
        border: 1px solid #1a73e8;
        border-radius: 20px;
        background: none;
        color: #1a73e8;
        cursor: pointer;
        margin-bottom: 10px;
    }

    .profile-info .follower-count {
        font-size: 14px;
        color: #555;
        margin-bottom: 15px;
    }

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .profile-actions .btn {
        flex: 1;
        padding: 8px 0;
        text-align: center;
        border: 1px solid #e6e6e6;
        border-radius: 4px;
        background-color: #f2f2f2;
        cursor: pointer;
    }

/* Tabs */
.profile-tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0px;
    background-color: #fff;
    z-index: 900;
}

.profile-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

    .profile-tab.active {
        color: #000;
        border-bottom: 2px solid #000;
        font-weight: 800;
    }

/* Complete Profile Cards */
.complete-profile {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    gap: 10px;
}

.complete-card {
    flex: 0 0 200px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

    .complete-card .icon-circle {
        width: 50px;
        height: 50px;
        background-color: #fff;
        border-radius: 50%;
        margin: 0 auto 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .complete-card .action-title {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .complete-card .action-text {
        font-size: 12px;
        color: #555;
        margin-bottom: 10px;
    }

    .complete-card .action-btn {
        background-color: #000;
        color: #fff;
        border: none;
        padding: 6px 12px;
        border-radius: 20px;
        cursor: pointer;
    }

/* Posts */
.post-container {
    margin-top: 10px;
    padding-bottom: 40px; /* for bottom nav */
}

.post {
    border-bottom: 0px solid #e6e6e6;
    padding: 10px 5px;
}

.post-user {
    display: flex;
    align-items: center;
}

    .post-user .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #fff;
        margin-right: 10px;
    }

.post-user-info .username {
    font-weight: bold;
    font-size: 16px;
}

.post-user-info .timestamp {
    font-size: 12px;
    color: #555;
}

.post-menu {
    background: none;
    border: none;
    cursor: pointer;
}

/* 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;
    }

/* Actions */
.post-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 5px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 14px;
}

    .action-btn img {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }

/* Replies */
.post .replies {
    margin-top: 10px;
    padding-left: 50px;
}

.reply {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

    .reply .avatar {
        width: 30px;
        height: 30px;
        background-color: #fff;
        border-radius: 50%;
        margin-right: 10px;
    }

.reply-content .username {
    font-weight: bold;
    font-size: 15px;
}

.reply-content p {
    font-size: 13px;
    color: #333;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .nav-btn img {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }

/* Full-screen Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: none;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    color: #fff;
}

    .overlay.active {
        display: flex;
    }

.overlay-content {
    background-color: #fff;
    color: #000;
    width: 90%;
    max-width: 500px;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 8px;
    padding: 20px;
}

    .overlay-content h2 {
        margin-bottom: 10px;
    }

.overlay-close {
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}


.header {
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #ddd;
    z-index: 10;
    transition: transform 0.3s ease;
}

    .header.hidden {
        transform: translateY(-100%);
    }

.icon-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.header-title {
    text-align: center;
}

    .header-title h1 {
        font-size: 1.2rem;
    }

.views {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

.feed {
    padding: 76px 6px;
}

.post {
    margin-bottom: 16px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-wrapper {
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.add-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
}

.username {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size:18px;
}

.badge {
    width: 16px;
    height: 16px;
}
.post-content a {
    text-decoration: none;
    color: #555;
}

    
.post-content p {
    margin: 8px 0px;
    padding: 0px 0px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}
.post-content strong {
    margin: 8px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    font-weight:800;
}
.post-bottom {
    display: flex;
    justify-content: space-around;
    padding: 18px 0px 18px 0px;
    border-bottom: 0px solid #eee;
    background: #fff;
    z-index: 10;
}
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.media-full {
    width: calc(100% - 0px);
    padding-top: 8px;
    background: #ffffff;
}

.media-placeholder {
    width: 100%;
    background: #e1e1e1;
}

.post-images {
    display: flex;
    gap: 5px;
}

    .post-images img {
        width: calc(100% - 0px);
        /* max-height: 680px;*/
        background: #ddd;
        object-fit: cover;
        border-radius: 0px;
        margin: 16px 0px;
    }
    .post-images video {
        text-align: center;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        z-index: 1;
        margin: 16px 0px;
    }

.post-media {
    position: relative;
}

    .post-media img {
        width: 100%;
        border-radius: 0px;
    }

.post-actions {
    display: flex;
    gap: 16px;
    margin-top: 5px;
    margin-bottom: 12px;
}

    .post-actions .icon-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size:10px;
    }
    .post-actions .icon-btn img {
        height:18px;
        width:18px;
    }
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 0px solid #ddd;
    color: #666;
    font-size: 0.9rem;
    margin-top:12px;
}

    .post-meta .sort {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .post-meta .view-activity {
        text-decoration: none;
        color: #666;
        display: flex;
        align-items: center;
        gap: 4px;
    }

.comments .comment {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.comment-content {
    background: #f9f9f9;
    padding: 8px;
    border-radius: 8px;
    flex: 1;
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

    .overlay-menu.active {
        display: flex;
    }

.menu-list {
    list-style: none;
    text-align: center;
}

    .menu-list li {
        margin: 8px 0;
        font-size: 1.2rem;
    }

.hamburger-btn {
    position: fixed;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    z-index: 15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: Arial,sans-serif;
    background: #fff;
    color: #000;
    min-height: 100vh;
    padding-bottom: 60px
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    z-index: 1000
}

    .header .left-icon, .header .right-icon {
        background: none;
        border: none;
        cursor: pointer
    }
img.icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
img.lg {
    /*width: 28px;*/
    height: 24px;
    cursor: pointer;
}
    .header .logo {
        flex: 1;
        text-align: center
    }

        .header .logo svg {
            width: 30px;
            height: 30px
        }

.tabs {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
    position: sticky;
    top: 50px;
    z-index: 900
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 500;
    color: #555
}

    .tab.active {
        color: #000;
        border-bottom: 2px solid #000
    }

.new-thread {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e6e6e6;
    background: #fff
}

    .new-thread .avatar {
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        margin-right: 10px
    }

    .new-thread .input-btn {
        flex: 1;
        background: #f2f2f2;
        border-radius: 20px;
        padding: 10px 15px;
        color: #555;
        cursor: pointer
    }

        .new-thread .input-btn:hover {
            background: #e6e6e6
        }

.post {
    padding: 15px 5px;
    border-bottom: 0px solid #e6e6e6;
    background: #fff
}


.post-user {
    display: flex;
    align-items: center
}

    .post-user .avatar {
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        margin-right: 10px
    }

.post-user-info {
    display: flex;
    flex-direction: column
}

    .post-user-info .username {
        font-weight: bold;
        font-size: 15px
    }

    .post-user-info .timestamp {
        font-size: 12px;
        color: #555
    }

.post-menu {
    background: none;
    border: none;
    cursor: pointer
}

.post-images {
    display: flex;
    gap: 5px;
}

    .post-images img {
        width: calc(100% - 0px);
       /* max-height: 680px;*/
        background: #ddd;
        object-fit: cover;
        border-radius: 0px;
        margin:16px 0px;
    }


.post-actions {
    display: flex;
    align-items: center;
    justify-content:flex-start;
    padding-top: 5px
}

.action-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 14px
}

    .action-btn svg {
        width: 20px;
        height: 20px;
        margin-right: 5px
    }

.profile-page {
    padding-top: 100px;
    padding-bottom: 60px
}

.profile-header-custom {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    z-index: 1000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

    .profile-header-custom .avatar-large {
        width: 60px;
        height: 60px;
        background: #fff;
        border-radius: 50%
    }

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    padding: 15px
}

    .profile-info .name {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 5px
    }

    .profile-info .username {
        font-size: 14px;
        color: #555;
        margin-bottom: 10px
    }

.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px
}

    .profile-actions .btn {
        flex: 1;
        padding: 8px 0;
        text-align: center;
        border: 1px solid #e6e6e6;
        border-radius: 4px;
        background: #f2f2f2;
        cursor: pointer
    }

.interests-btn {
    margin-bottom: 10px
}

.follower-count {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px
}

.profile-tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
    position: sticky;
    top:0px;
    z-index: 900
}

.profile-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-weight: 500;
    color: #555;
    cursor: pointer
}

    .profile-tab.active {
        color: #000;
        border-bottom: 2px solid #000
    }

.complete-profile {
    display: flex;
    gap: 10px;
    padding: 15px
}

.complete-card {
    flex: 1;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center
}

    .complete-card .icon-circle {
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px
    }

    .complete-card .action-title {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 5px
    }

    .complete-card .action-text {
        font-size: 12px;
        color: #555;
        margin-bottom: 10px
    }

    .complete-card .action-btn {
        background: #000;
        color: #fff;
        border: none;
        padding: 8px 12px;
        border-radius: 20px;
        cursor: pointer
    }

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-around;
    padding: 8px 0
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center
}

    .nav-btn svg {
        width: 24px;
        height: 24px;
        margin-bottom: 2px
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 300px;
    text-align: center
}

    .modal-content button {
        margin-top: 15px;
        padding: 8px 12px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer
    }


.menu-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 0px solid #eee;
}

.close-button {
    margin-right: 12px;
}


/* Header and footer transitions */
.profile-header {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-nav {
    transition: opacity 0.3s ease;
}

/* Hidden header */
.header--hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Faded footer */
.footer--faded {
    opacity: 0.3;
}
/* Header */
.profile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    z-index: 1000;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}

/* Main padding */
main {
    padding-top: 60px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    transition: opacity 0.3s ease;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .nav-btn img {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }




/* Header */
.profile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    z-index: 1000;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}

/* Main padding */
main {
    padding-top: 60px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    transition: opacity 0.3s ease;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .nav-btn img {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }


/* Scroll‑hide header & fade footer */
#mainHeader {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%);
    opacity: 0;
}

#mainFooter {
    transition: opacity 0.3s ease;
}

.footer--faded {
    opacity: 0.5;
}

/* Overlay Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

    .menu-overlay.active {
        transform: translateX(0);
    }

.menu-header {
    display: flex;
    align-items: left;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

    .menu-header h3 {
        flex: 1;
        text-align:left;
        margin: 0;
        font-size: 1.2rem;
    }

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
 .menu-list li {
        padding: 14px 16px;
        border-bottom: 1px solid #f4f4f4;
        font-size: 14px;
        font-weight:800;
        text-align:left;
    }
.text-content .more-text {
    display: none;
}

.text-content.expanded .more-text {
    display: inline;
}

.toggle-button {
    display: inline-block;
    background: none;
    color: #007BFF;
    border: none;
    cursor: pointer;
    padding-left: 4px;
    font-weight: bold;
    font-size: 14px;
}
.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%;
    }

.more-text {
    display: none;
}

.text-content.expanded .more-text {
    display: inline;
}