@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* =================== THEME VARIABLES =================== */
:root {
    --primary: #e5734a;
    --primary-dark: #d96328;
    --primary-light: #ff9563;
    --primary-bg: #fff5f0;
    --bg-main: #f4f2ee;
    --bg-card: #ffffff;
    --border: #d4d2ce;
    --text-primary: rgba(0, 0, 0, 0.9);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-tertiary: rgba(0, 0, 0, 0.4);
    --hover-bg: rgba(0, 0, 0, 0.08);
}

/* =================== GLOBAL RESET =================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-main);
    font-family:
        "Inter",
        -apple-system,
        system-ui,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.42857;
}

/* =================== CONTAINER =================== */
.section-full {
    background: var(--bg-main);
    padding: 24px 0 50px;
}

@media (min-width: 992px) {
    .sticky-sidebar {
        position: sticky;
        top: 95px;
        height: fit-content;
    }
}

/* =================== CARD BASE =================== */
.card-base {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 8px;
}

/* =================== PROFILE CARD (LEFT) =================== */
.profile-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.profile-cover {
    height: 70px;
    background: linear-gradient(135deg, #f96d38 0%, #fc9732 45%, #febe0a 100%);
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
    margin-top: -45px;
    text-align: left;
    padding: 12px 25px 5px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-content {
    padding: 10px 24px;
    text-align: left;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.25;
}

.profile-email {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.33333;
    word-break: break-word;
    font-weight: 500;
}

.profile-divider {
    border-top: 1px solid var(--border);
    margin: 5px 0 0;
}

.profile-stats {
    padding: 12px 6px 0;
}

.stats-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 6px;
}

.stats-title i {
    font-size: 13px;
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.stat-box {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8db 100%);
    padding: 10px 8px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(248, 120, 59, 0.15);
}

.stat-box:hover {
    background: linear-gradient(135deg, #ffeee5 0%, #ffd9c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(248, 120, 59, 0.2);
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: capitalize;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.profile-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.logout-link {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.logout-link:hover {
    color: var(--primary);
}

/* =================== ACTIVITY MENU =================== */
.stats-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 0px 14px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12.5px;
    background: #fff;
    border: 1px solid #e5e7eb;
    min-width: 0;
}

.stats-item i {
    font-size: 14px;
    color: var(--text-secondary);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.stats-item:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
}

.stats-item:hover i {
    color: var(--primary);
}

.stats-name {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: #fff3e8;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1;
    flex-shrink: 0;
}

.stats-item.active {
    background: var(--primary-bg);
    color: var(--primary);
}

.stats-item:hover .stats-count {
    background: var(--primary);
    color: #fff;
}

.stats-item.bookmarks .stats-count {
    background: #fff3e8;
    color: #f97316;
}

.stats-item.events .stats-count {
    background: #eef2ff;
    color: #4f46e5;
}

.stats-item.posts .stats-count {
    background: #ecfeff;
    color: #0891b2;
}

@media (max-width: 576px) {
    .stats-menu {
        grid-template-columns: 1fr;
    }
}

/* =================== JOIN CARD (GUEST) =================== */
.join-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.join-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 20px;
}

.join-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.btn-join {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-join:hover {
    background: var(--primary-dark);
    color: white;
}

.join-footer {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.join-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.join-footer a:hover {
    text-decoration: underline;
}

/* =================== FEED CARD =================== */
.feed-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #d4d2ce;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.feed-card:hover {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Feed Header */
.feed-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
}

.feed-author {
    flex: 1;
    min-width: 0;
}

.feed-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2px;
}

.feed-author-name:hover {
    color: var(--primary);
    cursor: pointer;
}

.feed-meta {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.33;
    display: flex;
    align-items: center;
    gap: 4px;
}

.feed-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.badge-news {
    background: #fef2f2;
    color: #991b1b;
}

.badge-event {
    background: #fef2f2;
    color: #dc2626;
}

.badge-service {
    background: #eff6ff;
    color: #1e40af;
}

.badge-post {
    background: #f5f3ff;
    color: #6b21a8;
}

.badge-property {
    background: #f0fdf4;
    color: #166534;
}

.badge-listing {
    background: #fffbeb;
    color: #92400e;
}

.badge-tourism {
    background: #fdf4ff;
    color: #86198f;
}

.badge-product {
    background: #ecfdf5;
    color: #065f46;
}

/* Feed Content */
.feed-content {
    padding: 0 16px 12px;
}

.feed-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.feed-title a {
    color: inherit;
    text-decoration: none;
}

.feed-title a:hover {
    color: var(--primary);
}

.feed-location {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.feed-location i {
    color: var(--text-secondary);
    font-size: 11px;
}

/* Feed Image */
.feed-image-wrapper {
    margin: 0;
    cursor: pointer;
}

.feed-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.reactions-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reaction-emoji {
    font-size: 16px;
    line-height: 1;
}

.reaction-count {
    color: rgb(0 0 0 / 86%);
    font-weight: 500;
    font-size: 13px;
}

.reactions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-count-link:hover {
    color: var(--primary);
}

/* Feed Actions */
/* .feed-actions-wrapper {
        padding: 4px 8px;
        border-top: 1px solid var(--border);
    } */

.feed-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0px 0px 0px;
}

/* ACTION BUTTONS - LinkedIn Style (Simplified) */
.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.action-btn i {
    font-size: 16px;
}

.action-btn:hover {
    background: #f3f4f6;
}

/* Like Button */
.like-btn {
    color: var(--text-secondary);
}

.like-btn:hover {
    background: #ffede6;
    color: #e5734a;
}

.like-btn.liked {
    color: var(--primary);
}

.like-btn.liked i {
    color: var(--primary);
}

/* Comment Button */
.comment-btn {
    color: var(--text-secondary);
}

.comment-btn i {
    color: var(--text-secondary);
}

.comment-btn:hover {
    background: #ffede6;
    color: #e5734a;
}

.comment-btn:hover i {
    color: #e5734a;
}

/* Share Button */
.share-btn {
    color: var(--text-secondary);
}

.share-btn:hover {
    background: #ffede6;
    color: #e5734a;
}

/* Feed Detail Link */
.feed-detail-link {
    padding: 12px 15px 12px;
    text-align: end;
    background: #fff;
}

.detail-link {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.detail-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =================== COMMENTS =================== */
.comment-section {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    background: #fafaf9;
}

.comment-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.comment-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 14px;
    background: white;
    font-family: inherit;
    transition: border-color 0.2s;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-comment {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-comment:hover {
    background: var(--primary-dark);
}

.comment-list {
    margin-top: 12px;
}

.comment-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.comment-header {
    display: flex;
    gap: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
    margin-top: 4px;
}

.reply-btn:hover {
    text-decoration: underline;
}

.reply-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    margin-left: -10px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--primary-light);
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
}

.show-more-btn:hover {
    text-decoration: underline;
}


/* =================== FILTER SIDEBAR (RIGHT) =================== */
.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.filter-dropdown {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.filter-dropdown:hover {
    background: var(--hover-bg);
    border-color: var(--text-secondary);
}

.filter-dropdown i {
    color: var(--primary);
}

.search-box {
    margin-bottom: 12px;
}

.search-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 10px;
}

.search-input-group {
    display: flex;
    gap: 6px;
}

.search-input {
    width: 100%;
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(248, 120, 59, 0.1);
}

.advance-search-input-group {
    display: flex;
    gap: 6px;
}

.advance-search-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}

/* Location field full width */
.filter-card .filter-group:has(.advance-search-input) {
    grid-column: 1 / -1;
}

.advance-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(248, 120, 59, 0.1);
}

/* Quick search full width */
.filter-card .filter-group:has(.search-input-group) {
    grid-column: 1 / -1;
}

.filter-card form > .search-input-group {
    grid-column: 1 / -1;
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-search:hover {
    background: var(--primary-dark);
}

.trending-section {
    margin-top: 12px;
}

.trending-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #fff3e8;
    color: #e5734a;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #dbeafe;
}

.tag:hover {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.advanced-filters {
    margin-top: 16px;
}

.filter-group {
    margin-bottom: 14px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.filter-select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(248, 120, 59, 0.1);
}

.btn-apply {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    box-shadow: 0 2px 4px rgba(248, 120, 59, 0.2);
}

.btn-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(248, 120, 59, 0.3);
}

.logout-btn-apply {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 600;
    width: 70%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(248, 120, 59, 0.2);
}

.logout-btn-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(248, 120, 59, 0.3);
}

.reset-link {
    display: block;
    text-align: center;
    color: rgb(0 0 0 / 64%);
    font-size: 14px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 700;
}

.reset-link:hover {
    color: var(--primary);
}

/* =================== SHARE MODAL =================== */
.share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.share-content {
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: 8px;
    overflow: hidden;
}

.share-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-header span {
    font-size: 16px;
    font-weight: 600;
}

.share-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.share-close:hover {
    background: var(--hover-bg);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.share-options button {
    background: #f3f4f6;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 16px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.share-options button:hover {
    background: #e5e7eb;
    border-color: var(--text-secondary);
}

/* Share Grid - Updated Style */
.hk-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.hk-share-btn {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 74px;
    transition: all 0.2s ease;
}

.hk-share-btn i {
    font-size: 20px;
    margin-bottom: 6px;
    line-height: 1;
}

.hk-share-btn span {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

/* Brand colors */
.hk-share-btn.whatsapp i {
    color: #25d366;
}

.hk-share-btn.facebook i {
    color: #1877f2;
}

.hk-share-btn.linkedin i {
    color: #0a66c2;
}

.hk-share-btn.twitter i {
    color: #000000;
}

.hk-share-btn.telegram i {
    color: #229ed9;
}

.hk-share-btn.copy i {
    color: #6b7280;
}

.hk-share-btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.hk-share-btn:active {
    transform: scale(0.96);
}

/* ===== COPY STATUS (GitHub style) ===== */
.hk-copy-status {
    display: none;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
    margin-left: auto;
    margin-right: 12px;
}

.hk-copy-status i {
    font-size: 14px;
}

/* =================== EMPTY STATE =================== */
.empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* =================== MOBILE RESPONSIVE =================== */
@media (max-width: 768px) {
    .feed-card {
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .profile-wrapper,
    .filter-card {
        border-radius: 12px;
    }

    .section-full {
        padding: 10px 0 40px;
    }

    .action-btn {
        padding: 10px 6px;
        font-size: 13px;
    }
}

/* ===== COPY STATUS (GitHub style) ===== */
.hk-copy-status {
    display: none;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
    margin-left: auto;
    margin-right: 12px;
}

.hk-copy-status i {
    font-size: 14px;
}

.verified-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* space between name & badge */
}

.verified-badge {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-top: 3px;
}

/* LinkedIn-style like icon - FIXED ALIGNMENT */
.like-count-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.like-count-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Reaction icons container - FIXED ALIGNMENT */
.reaction-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Reaction count - IMPROVED */
.reaction-count {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.feed-divider {
    height: 1px;
    background: #d4d2ce;
    margin: 0 16px;
    /* 👈 LEFT & RIGHT GAP */
}

.reactions-left {
    display: flex;
    align-items: center;
}

.reactions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== COMMENTS COUNT (FINAL, CLEAN) ===== */

.comment-count-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: rgb(0 0 0 / 86%);
    text-decoration: none;
}

/* Children inherit color for proper hover */
.comment-count,
.comment-text {
    color: inherit;
    line-height: 20px;
    display: inline-block;
}

/* Hover on whole unit */
.comment-count-link:hover {
    color: var(--primary);
}

.reactions-left,
.reactions-right {
    display: flex;
    align-items: center;
    height: 20px;
}

/* Likes Modal */
.likes-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.likes-modal.show {
    display: flex;
}

.likes-modal-content {
    background: white;
    width: 90%;
    max-width: 480px;
    max-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.likes-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.likes-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.likes-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.likes-modal-close:hover {
    background: var(--hover-bg);
}

.likes-modal-body {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.likes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.like-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.like-item:hover {
    background: #f3f4f6;
}

.like-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.like-item-info {
    flex: 1;
    min-width: 0;
}

.like-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.like-item-reaction {
    font-size: 20px;
    flex-shrink: 0;
}

.likes-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.likes-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.feed-reactions-summary {
    min-height: 36px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 12px;
}

.comment-section {
    position: relative;
    z-index: 1;
}

.comment-time {
    font-size: 11px;
    color: rgb(0 0 0 / 87%);
    margin-left: 6px;
    font-weight: 600;
}

.feed-reactions-summary.is-hidden {
    display: none;
}

/* Always show like icon */
.like-btn i {
    color: var(--text-secondary);
    font-size: 16px;
}

/* When liked */
.like-btn.liked i {
    color: var(--primary);
}

/* ===== Vertical action buttons (icon top, text bottom) ===== */
.action-btn.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.action-btn.vertical i {
    font-size: 18px;
    line-height: 1;
}

.action-btn.vertical span {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.action-btn.vertical:hover {
    color: var(--primary);
}

/* Liked state */
.action-btn.like-btn.liked {
    color: var(--primary);
}

.action-btn.like-btn.liked i {
    color: var(--primary);
}

.action-btn.vertical i {
    color: inherit;
    transition: color 0.15s ease;
}

/* =================== MOBILE FILTER HAMBURGER =================== */
.mobile-filter-toggle {
    position: fixed;
    top: 250px;
    right: 20px;
    z-index: 999;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-filter-toggle i {
    font-size: 20px;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
    opacity: 1;
}

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-main);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
}

.mobile-filter-drawer.active {
    right: 0;
}

.mobile-filter-header {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.mobile-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-filter-close:hover {
    background: var(--hover-bg);
}

.mobile-filter-content {
    padding: 16px;
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .desktop-filter-sidebar {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-filter-toggle,
    .mobile-filter-overlay,
    .mobile-filter-drawer {
        display: none !important;
    }
}

/* Mobile: 2 items per row for MY ACTIVITY stats */
@media (max-width: 576px) {
    .stats-menu {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .stats-item {
        font-size: 11.5px;
        padding: 7px 8px;
    }

    .stats-item i {
        font-size: 13px;
    }

    .stats-name {
        font-size: 11px;
    }

    .stats-count {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* =================== LINKEDIN-STYLE LOADING =================== */

/* Loading Container */
.feed-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: transparent;
}

.feed-loading.active {
    display: flex;
}

/* LinkedIn Spinner */
.linkedin-spinner {
    position: relative;
    width: 40px;
    height: 40px;
}

.linkedin-spinner::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: linkedin-spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes linkedin-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading Text */
.loading-text {
    margin-left: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* End of Feed Message */
.feed-end-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.feed-end-message.active {
    display: block;
}

.feed-end-message i {
    font-size: 32px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    display: block;
}

/* ==================================================
   ADVANCED FILTERS – CUSTOM GRID RULES
   ================================================== */

/* 2-column grid by default */
.filter-card form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* LOCATION – full width */
.filter-card .filter-group:first-of-type {
    grid-column: 1 / -1;
}

.filter-card select[name="listing_category"] .ls-inputicon-box,
.filter-card .filter-group:has(select[name="listing_category"]) {
    grid-column: 1 / -1;
}

.filter-card select[name="tourism_category"] .ls-inputicon-box,
.filter-card .filter-group:has(select[name="tourism_category"]) {
    grid-column: 1 / -1;
}

/* Buttons full width */
.filter-card .btn-apply,
.filter-card .reset-link {
    grid-column: 1 / -1;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .filter-card form {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.filter-group {
    margin-bottom: 5px;
}

@media (min-width: 992px) {
    .desktop-filter-sidebar {
        position: sticky;
        top: 95px;
        /* Adjust based on your header height */
        height: fit-content;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Smooth scrolling for the sticky sidebar */
    .desktop-filter-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .desktop-filter-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .desktop-filter-sidebar::-webkit-scrollbar-thumb {
        background: #d4d2ce;
        border-radius: 3px;
    }

    .desktop-filter-sidebar::-webkit-scrollbar-thumb:hover {
        background: #b8b6b2;
    }
}

@media (max-width: 576px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Feed container tighter */
    .feed-card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 10px;
    }

    /* Comment section padding fix */
    .comment-section {
        padding: 10px 12px;
    }

    /* Comment card full width */
    .comment-item,
    .reply-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 🔥 KEY FIX: Stop infinite nesting */
    .reply-item {
        margin-left: -5px;
        border-left: 3px solid var(--primary-light);
        padding: 8px;
    }

    /* Avatar size smaller */
    .comment-avatar {
        width: 28px;
        height: 28px;
    }

    /* Comment header alignment */
    .comment-header {
        align-items: flex-start;
    }

    /* Text wrapping fixes */
    .comment-body {
        min-width: 0;
        width: 100%;
    }

    .comment-text,
    .comment-author {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* Reply button spacing */
    .reply-btn {
        font-size: 11px;
        margin-top: 2px;
    }

    /* Input box full width */
    .comment-input-wrapper {
        gap: 6px;
    }

    .comment-input {
        font-size: 13px;
        padding: 7px 12px;
    }

    .btn-comment {
        padding: 7px 14px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .reply-item .reply-item {
        margin-left: -5px;
    }
}

/* ================= MOBILE LEFT SPACE FIX ================= */
@media (max-width: 576px) {
    /* Remove extra bootstrap gutter */
    .col-sm-12,
    .col-md-8,
    .col-lg-6 {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Tighten feed container */
    #feed-container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Feed card full width */
    .feed-card {
        margin-left: 0;
        margin-right: 0;
    }

    /* Header content slightly tighter */
    .feed-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Comment & reaction sections aligned */
    .feed-content,
    .feed-reactions-summary,
    .feed-actions-wrapper,
    .comment-section {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 576px) {
    .feed-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Header row for Advanced Filters + Sort */
.advanced-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Keep sort flat (no card look) */
.sort-inline .filter-dropdown {
    padding: 6px 10px;
}


.filter-count-badge {
    display: none;
    background: #0a66c2;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    position: absolute;
    top: -4px;
    right: -4px;
}
/* ── Profile Card Greeting Badge ───────────────────────── */
.profile-cover { position: relative; overflow: visible; }
.pg-greeting-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.24) 100%);
    backdrop-filter: blur(10px) saturate(1.8);
    -webkit-backdrop-filter: blur(10px) saturate(1.8);
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 999px;
    padding: 5px 12px 5px 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.15);
    white-space: nowrap;
    animation: pg-slidein .5s cubic-bezier(.34,1.56,.64,1) both;
    z-index: 10;
}
@keyframes pg-slidein {
    from { opacity:0; transform: translateY(-8px) scale(.90); }
    to   { opacity:1; transform: translateY(0)     scale(1);  }
}
@keyframes hk-spin { to { transform: rotate(360deg); } }
.pg-star {
    font-size: 14px;
    color: #ffe082;
    display: inline-block;
    animation: hk-spin 6s linear infinite;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255,224,130,.8));
}
.pg-words {
    font-size: .74rem;
    color: rgba(255,255,255,.97);
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: .25px;
    line-height: 1;
}
.pg-words strong { color: #ffe082; font-weight: 700; text-shadow: 0 0 8px rgba(255,224,130,.55); }