

main {
    padding-top: 115px;
    padding-bottom: 20px;
}

    main .content {
        padding: 0px 0px 0px 0px;
    }
/* Scroll behavior styles */
#mainHeader {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    background-color: #ffffff;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    font-size: 20px;
}

.icon {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor; /* enables text color control */
    color: #333; /* adjust to your brand color */
}

.logo {
    width: 32px;
    height: 32px;
    display: block;
    fill: currentColor; /* enables text color control */
    color: #333; /* adjust to your brand color */
}

.top-bar > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* for consistent icon spacing */
}

.tab-bar {
    height: 42px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 500;
}

.tab {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
}

    .tab.active {
        font-weight: 800;
    }

        .tab.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 30%;
            right: 30%;
            height: 0px;
            background-color: #018cd9;
            border-radius: 2px;
        }

.header--hidden {
    transform: translateY(-100%);
}

#mainFooter {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.footer--faded {
    transform: translateY(100%);
    opacity: 0;
}

.header-thread {
    width: 100%;
    /* height: 56px;*/
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.00);
    z-index: 10;
}

    .header-thread h2 {
        flex: 1;
        margin: 0 8px;
        font-size: 18px;
        font-weight: bold;
    }
/* Profile Section */
.banner {
    height: 50svh;
    width: 100%;
    margin-top: -10px; /* Offset main padding if needed */
    object-fit: cover;
    background: #ddd center/cover no-repeat;
}

  
@media (max-width: 768px) {

        .banner{
            object-fit: cover;
        }

        .banner h1 {
            font-size: 1.5rem;
        }

        .banner p {
            font-size: .9rem;
        }
}
/* ================= UNIFIED PROFILE INFO ================= */

.profile-info {
    position: relative;
    padding: 16px;
    background-color: #fff;
    /* Optional: add a subtle border between profile and feed */
    /* border-bottom: 1px solid #f0f0f0; */
}

    /* 1. Avatar (Top Right) */
    .profile-info .avatar {
        float: right; /* Moves avatar to right side */
        width: 64px;
        height: 64px;
        border-radius: 50%;
        margin-left: 16px;
        margin-bottom: 8px; /* Push bio down if it wraps */
        object-fit: cover;
        border: 1px solid #eee; /* Optional definition border */
    }

    /* 2. Name & Handle */
    .profile-info h1 {
        font-size: 24px;
        font-weight: 800;
        margin: 0 0 4px 0;
        line-height: 1.2;
        color: #000;
        /* Prevent text overlapping avatar on small screens */
        padding-right: 70px;
    }

    .profile-info .username {
        font-size: 15px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 12px;
    }

    .profile-info .badge {
        width: 16px;
        height: 16px;
        vertical-align: middle;
    }

/* 3. Bio Text */
.profile-bio {
    clear: both; /* Ensures bio starts below avatar/name */
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-top: 8px;
}

    .profile-bio p {
        margin-bottom: 8px;
    }

    .profile-bio strong {
        display: block; /* Forces title to own line */
        color: #000;
        font-weight: 700;
        margin-bottom: 4px;
    }

/* 4. Links Section */
.profile-links {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on mobile */
    gap: 12px;
    margin-top: 12px;
    font-size: 14px;
}

.link-item {
    color: #00376b; /* Standard accessible blue */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .link-item:hover {
        text-decoration: underline;
    }

/* Mobile Tweak: Ensure spacing is tight on small screens */
@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 20px;
    }

    .profile-info .avatar {
        width: 56px;
        height: 56px;
    }
}