/* ============================================================
   FOLLOWERS / FOLLOWING PAGE
   ============================================================ */
#followers-container {
    width: 100%;
    min-height: 100vh;
}

/* Nav Bar */
.followers-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-body);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    height: 53px;
    border-bottom: 1px solid var(--border-color);
}

.followers-back-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 20px;
    background: transparent;
    border: none;
    transition: background 0.15s;
    flex-shrink: 0;
}

.followers-back-btn:hover {
    background: var(--card-hover);
}

.followers-nav-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.followers-nav-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.followers-nav-handle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Tabs */
.followers-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.followers-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.15s;
    cursor: pointer;
    text-align: center;
}

.followers-tab:hover {
    background: var(--card-hover);
    color: var(--text-main);
    text-decoration: none;
}

.followers-tab.active {
    color: var(--text-main);
    border-bottom-color: var(--primary-color);
}

.followers-tab-count {
    font-size: 17px;
    font-weight: 700;
    color: inherit;
    line-height: 1.2;
}

.followers-tab-label {
    font-size: 13px;
    color: inherit;
    line-height: 1.3;
}

/* Follow Item */
.follow-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.follow-item:hover {
    background: var(--card-hover);
}

.follow-item-avatar-link {
    flex-shrink: 0;
    display: block;
}

.follow-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.follow-item-body {
    flex: 1;
    min-width: 0;
}

.follow-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.follow-item-info {
    min-width: 0;
    flex: 1;
}

.follow-item-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.follow-item-name:hover {
    text-decoration: underline;
}

.follow-item-handle {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.3;
}

.follow-item-handle:hover {
    text-decoration: none;
}

.follow-item-bio {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Follow Button */
.follow-item-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--text-main);
    color: var(--bg-body);
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.follow-item-btn:hover {
    opacity: 0.85;
}

.follow-item-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.follow-item-btn.following {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.follow-item-btn.following:hover {
    background: rgba(244, 33, 46, 0.08);
    color: #f4212e;
    border-color: rgba(244, 33, 46, 0.3);
}

/* Empty State */
.followers-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.followers-empty i {
    font-size: 52px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.followers-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.followers-empty p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .followers-nav {
        padding: 0 12px;
    }
    .follow-item {
        padding: 12px 12px;
    }
}

   Styles untuk halaman Explore (Trending) & Connect People
   ============================================================ */

/* ---- EXPLORE PAGE ---- */
.explore-container {
    width: 100%;
    min-height: 100vh;
}

.explore-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-body);
    backdrop-filter: blur(12px);
    padding: 12px 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.explore-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.explore-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 9999px;
    padding: 0 16px;
    gap: 10px;
    height: 42px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.explore-search-box:focus-within {
    border-color: var(--primary-color);
    background: var(--bg-body);
}

.explore-search-box i {
    color: var(--text-muted);
    font-size: 16px;
}

.explore-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 15px;
    width: 100%;
}

.explore-search-box input::placeholder {
    color: var(--text-muted);
}

.explore-settings-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 18px;
    transition: background 0.2s;
}

.explore-settings-btn:hover {
    background: var(--card-hover);
}

/* Explore Tabs */
.explore-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.explore-tabs::-webkit-scrollbar { display: none; }

.explore-tab {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 14px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    user-select: none;
}

.explore-tab:hover {
    background: var(--card-hover);
    color: var(--text-main);
}

.explore-tab.active {
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

/* Tab Content */
.explore-tab-content {
    display: none;
}

.explore-tab-content.active {
    display: block;
}

/* Trend Items */
.explore-trend-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.explore-trend-item:hover {
    background: var(--card-hover);
}

.explore-trend-left {
    flex: 1;
    min-width: 0;
}

.explore-trend-category {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.explore-trend-tag {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
    word-break: break-word;
}

.explore-trend-count {
    font-size: 13px;
    color: var(--text-muted);
}

.explore-trend-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    transition: background 0.15s, color 0.15s;
    position: relative;
    z-index: 2;
}

.explore-trend-more:hover {
    background: rgba(29, 155, 240, 0.1);
    color: var(--primary-color);
}

/* ---- CONNECT PEOPLE PAGE ---- */
.connect-container {
    width: 100%;
    min-height: 100vh;
}

.connect-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-body);
    backdrop-filter: blur(12px);
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    height: 53px;
}

.connect-back-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 18px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.connect-back-btn:hover {
    background: var(--card-hover);
}

.connect-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.connect-settings-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 18px;
    transition: background 0.2s;
}

.connect-settings-btn:hover {
    background: var(--card-hover);
}

.connect-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.connect-tab {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.connect-tab:hover {
    background: var(--card-hover);
    color: var(--text-main);
}

.connect-tab.active {
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

.connect-tab-content {
    display: none;
}

.connect-tab-content.active {
    display: block;
}

.connect-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    padding: 16px 16px 8px;
}

.connect-user-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px;
    transition: background 0.15s;
    gap: 12px;
}

.connect-user-item:hover {
    background: var(--card-hover);
}

.connect-user-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.connect-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.connect-user-info {
    flex: 1;
    min-width: 0;
}

.connect-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connect-user-name:hover {
    text-decoration: underline;
}

.connect-user-handle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.connect-user-bio {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.connect-user-bio a {
    color: var(--primary-color);
    text-decoration: none;
}

.connect-follow-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--text-main);
    color: var(--bg-body);
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    white-space: nowrap;
    align-self: center;
}

.connect-follow-btn:hover {
    opacity: 0.85;
}

.connect-follow-btn.following {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.connect-follow-btn.following:hover {
    background: rgba(244, 33, 46, 0.08);
    color: #f4212e;
    border-color: rgba(244, 33, 46, 0.3);
}

/* Rightbar: link yang bisa diklik */
.widget-footer-link {
    display: block;
    color: var(--primary-color);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.widget-footer-link:hover {
    background: var(--hover-bg);
    text-decoration: none;
}



@media (max-width: 1265px) {
    .explore-search-wrap {
        padding: 4px 16px;
    }

    .connect-topbar {
        padding: 24px 18px 16px;
    }
}

/* ============================================================
   MOBILE ONLY — hanya untuk layar kecil
   ============================================================ */
@media (max-width: 768px) {
    .explore-topbar {
        padding-top: 16px;
    }

    .connect-topbar {
        padding-bottom: 16px;
    }

    /* Explore: tab scroll horizontal, tidak terpotong */
    .explore-tabs {
        overflow-x: auto;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .explore-tab {
        flex: none;
        padding: 14px 12px;
        white-space: nowrap;
    }

    /* Explore: cegah konten keluar area */
    .explore-container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .explore-trend-item {
        box-sizing: border-box;
        width: 100%;
    }

    .explore-trend-left {
        flex: 1 1 0;
        min-width: 0;
    }

    .explore-trend-category,
    .explore-trend-count,
    .explore-trend-tag {
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .explore-search-wrap {
        box-sizing: border-box;
        width: 100%;
    }

    .explore-search-box {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .explore-search-box input {
        min-width: 0;
        width: 100%;
    }

    /* Connect: cegah teks keluar area */
    .connect-user-left {
        min-width: 0;
        overflow: hidden;
    }

    .connect-user-info {
        min-width: 0;
        overflow: hidden;
    }

    .connect-user-name {
        max-width: 100%;
    }

    .connect-user-handle,
    .connect-user-bio {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}