/* Sidebar container */
.secondary-sidebar {
    font-family: "Roboto", sans-serif;
    width: 250px;
    height: 100%; 
    position: fixed;
    right: 350px;
    top: 60px; /* Account for header height */
    background-color: var(--uw-white-1);
    color:var(--uw-text-10);
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    transition: all 0.1s;
}

.ad-title{
    margin-top:10px;
}


.ss-header{
    display: block;
    color:#fff;
    font-size: 20px;
    font-weight: bolder;
    margin-bottom: 16px; /* Add space below the "Following" title */
}

.ss-subheader{
    display: block;
    color:inherit;
    margin-bottom:16px;
    font-size: 14px;
}

.ss-container {
    background-color: var(--uw-white-2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--uw-white-3);
    transition: all 0.1s;
    overflow: hidden;
}

.ss-container:hover{
    border: 1px solid var(--uw-white-4);
}

.ss-container:nth-child(2) {
    margin-top: 20px;
}

.ss-container p{
    margin: 0px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-smallcoloredtext{
    color:var(--uw-blurple-1);
    font-size: 8px;
    font-weight: bolder;
}

.ss-sponsoredcontainer {
    position: relative;
    background: var(--uw-white-2);
    border-radius: 0px;
    border: none;
    overflow: visible;
    transition: none;
    max-height: 500px;
}

.ss-sponsoredcontainer:not(.open) {
    max-height: 40px;
    min-height: 40px;
}

.ss-sponsored-toggle {
    position: absolute;
    top: 4px;
    left: 14px;
    right: 14px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    background: var(--uw-white-1);
    transition: 0.1s;
    border: 1px solid var(--uw-white-3);
    border-radius: 18px;
}

.ss-sponsored-toggle:hover {
    background: var(--uw-white-1);
    border: 1px solid var(--uw-blurple-1);
}

.ss-toggle-text {
    font-size: 11px;
    color: var(--uw-text-2);
    transition: 0.1s;
}

.ss-sponsored-toggle:hover .ss-toggle-text {
    color: var(--uw-blurple-1);
}

.ss-sponsored-content {
    padding: 40px 0 0 0;
    transition: none;
    opacity: 1;
    transform: none;
    outline: none;
    overflow: hidden;
    transform-origin: top;
}

.ss-sponsoredcontainer:not(.open) .ss-sponsored-content {
    opacity: 0;
    transform: none;
    pointer-events: none;
    display: none;
}

.ss-sponsoredcontainer.closing .ss-sponsored-content {
    opacity: 0;
    transform: none;
    transition: none;
}

.ss-sponsoredcontainer.open .ss-sponsored-content {
    opacity: 1;
    transform: none;
    transition: none;
    display: block;
}

.ss-sponsoredcontainer img {
    width: 100%;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--uw-white-3);
    margin-top:10px;
}

.ss-sponsoredcontainer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ss-sponsored-sponsoredtext {
    display: inline-block;
    font-weight: 600;
    font-size: 10px;
    color: var(--uw-blurple-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 50px;
    width: fit-content;
    cursor: default;
}

.ss-sponsored-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--uw-text-1);
    line-height: 1.4;
    margin-top:10px;
}

.ss-sponsored-description {
    display: block;
    font-size: 12px;
    color: var(--uw-text-3);
    line-height: 1.5;
}

.ss-sponsored-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--uw-white-1);
    color: var(--uw-text-10);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.1s;
    border: 1px solid var(--uw-white-3);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}

.ss-sponsored-button:hover {
    background: var(--uw-white-1);
    border: 1px solid var(--uw-blurple-1);
}

.ss-user-groups {
    margin-bottom: 20px;
}

.ss-groups-header {
    margin-bottom: 16px;
}

.ss-groups-scroll {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    background-color: var(--uw-white-1);
    border-radius: 20px;
    border: 1px solid var(--uw-white-2);
    margin-bottom: 10px;
}

.ss-groups-scroll::-webkit-scrollbar {
    height: 0px;
}

.ss-groups-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ss-groups-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 2px;
}

.ss-groups-scroll::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

.ss-group-item {
    flex-shrink: 0;
    min-width: 100%;
    max-width: 160px;
    border-bottom: 1px solid var(--uw-white-2);
}
.ss-group-item:last-child {
    border-bottom: none;
}

.ss-group-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 10px 20px;
    background-color: transparent;
    transition: all 0.1s;
}

.ss-group-link:hover {
    border-color: var(--uw-white-3);
    background-color: var(--uw-white-2);
    text-decoration: none;
}


.ss-group-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--uw-white-3);
    transition: border-color 0.1s;
    margin-right: 16px;
}

.ss-group-info {
    width: 100%;

    align-items: left;
}

.ss-group-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--uw-text-1);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-group-posts {
    font-size: 10px;
    color: var(--uw-text-2);
    font-weight: 500;
}

.ss-followed-users {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid var(--uw-white-2);
    background-color: var(--uw-white-1);
    margin-bottom:100px;
}

.ss-followed-user {
    transition: 0.1s ease;
    position: relative; /* For positioning the active indicator */
    border-bottom: 1px solid var(--uw-white-2);
    background-color: transparent;
    padding: 10px 20px;
}

.ss-followed-user:hover {
    background-color: var(--uw-white-2);
}

.ss-followed-user:last-child {
    border-bottom: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.ss-followed-user:first-child {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.ss-user-link {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.ss-user-pic {
    width: 32px; /* Smaller profile picture */
    height: 32px; /* Smaller profile picture */
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--uw-white-3);
}

.ss-user-pic-wrapper {
    position: relative; /* For positioning the active indicator */
    align-items: center;
    justify-content: center;
}

.ss-user-active-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #31a24c;
    border-radius: 50%;
    border: 2px solid var(--uw-white-1);
}

.ss-user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ss-username {
    font-weight: 600;
    color: var(--uw-text-1);
    margin-bottom: 4px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.1s;
}

.ss-display-name-with-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ss-display-name {
    font-weight: 600;
    color: var(--uw-text-1);
    font-size: 13px;
    line-height: 1.2;
}

.ss-username-handle {
    font-weight: 400;
    color: var(--uw-text-2);
    font-size: 11px;
    line-height: 1.2;
    margin-top: 1px;
}

.ss-user-badges {
    display: flex;
    align-items: center;
    gap: 4px;
}



.ss-last-post {
    font-size: 11px;
    color: var(--uw-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-post-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.ss-post-time {
    font-size: 10px;
    color: var(--uw-text-2);
}

.ss-loading, .ss-error, .ss-empty {
    display: none; /* Hide all loading, error, and empty states for silent operation */
}

.ss-error {
    display: none; /* Ensure errors are completely hidden */
}

/* Liquid responsive scaling - sidebars move closer to edges as screen shrinks */
@media (max-width: 1700px) {
    .secondary-sidebar {
        right: 250px;
    }
}

@media (max-width: 1600px) {
    .secondary-sidebar {
        right: 200px;
    }
}

@media (max-width: 1500px) {
    .secondary-sidebar {
        right: 150px;
    }
}

@media (max-width: 1400px) {
    .secondary-sidebar {
        right: 100px;
    }
}

@media (max-width: 1300px) {
    .secondary-sidebar {
        right: 50px;
    }
}

@media (max-width: 1200px) {
    .secondary-sidebar {
        right: 0px;
    }
}

@media (max-width: 1100px) {
    .secondary-sidebar {
        display: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .secondary-sidebar {
        display: none;
    }
}

/* Trending Section Styles */
.ss-trending {
    padding: 0px;
    margin-bottom: 20px;
}

.trending-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.trending-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--uw-text-1);
    font-size: 16px;
    margin-bottom: 10px;
}

.trending-wave-icon {
    margin-right: 6px;
    font-size: 14px;
}

.trending-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-topic {
    min-width: 0;
    margin-bottom: 8px;
}

.trending-link {
    display: inline-flex;
    padding: 5px 10px;
    background-color: var(--uw-white-1);
    border: 1px solid var(--uw-white-2);
    border-radius: 20px;
    color: var(--uw-text-1);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.1s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width:fit-content;
}

.trending-link:hover {
    background-color: var(--uw-white-2);
    border-color: var(--uw-white-3);
    color: var(--uw-text-1);
    text-decoration: none;
}

.no-trending {
    display: none; /* Hide "no trending" messages for silent operation */
}
