/* ============================================================
   PriceONN Community Hub — 3-Column Social Wall
   Layout: Hero + Left Nav (200px) + Feed (flex) + Right Sidebar (300px)
   ============================================================ */

/* ========== Hero Banner ========== */
.community-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0,212,170,0.08) 0%, rgba(59,130,246,0.06) 50%, rgba(139,92,246,0.05) 100%);
    border: 1px solid rgba(0,212,170,0.15);
    border-radius: 12px;
    margin-top: 10px;
    margin-bottom: 16px;
    max-height: 52px;
    overflow: hidden;
}

.hero-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hero-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: heroPulse 1.5s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

.hero-live-text {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.5px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.hero-stat strong {
    color: #fff;
    font-weight: 600;
    margin-right: 3px;
}

.hero-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.15);
}

.hero-discussed {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.hero-symbol-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: 6px;
    color: #00d4aa;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-symbol-chip span {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

.hero-symbol-chip:hover {
    background: rgba(0,212,170,0.2);
}

.hero-top-trader {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.hero-top-trader svg {
    color: #f59e0b;
}

.hero-top-trader span {
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* ========== 3-Column Grid ========== */
.community-layout-3col {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

/* ========== Left Navigation ========== */
.community-left-nav {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.community-left-nav::-webkit-scrollbar { width: 3px; }
.community-left-nav::-webkit-scrollbar-track { background: transparent; }
.community-left-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.left-nav-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
}

.left-nav-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
    padding: 8px 10px 6px;
    margin: 0;
}

.left-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.left-nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.left-nav-link.active {
    background: rgba(0,212,170,0.12);
    color: #00d4aa;
}

.left-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: inherit;
}

/* Category links (no icon) */
.category-link {
    padding-left: 14px;
    font-size: 12px;
}

/* Left Nav Hashtags */
.left-nav-hashtag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.left-nav-hashtag:hover {
    background: rgba(255,255,255,0.04);
}

.hashtag-name {
    color: #00d4aa;
    font-weight: 500;
    font-size: 12px;
}

.hashtag-count {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
}

/* Left Nav Stats */
.left-nav-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px !important;
}

.nav-stat {
    flex: 1 1 45%;
    text-align: center;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-stat svg {
    color: #00d4aa;
    margin-bottom: 2px;
}

.nav-stat-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}

.nav-stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

/* ========== Main Feed ========== */
.community-main-feed {
    min-width: 0;
}

/* Pill Tabs */
.feed-pill-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 12px;
}

.pill-tab {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 7px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-tab:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.04);
}

.pill-tab.active {
    background: rgba(0,212,170,0.15);
    color: #00d4aa;
    font-weight: 600;
}

/* Compact Post Form */
.community-post-form-compact {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.community-post-form-compact:focus-within {
    border-color: rgba(0,212,170,0.3);
}

.community-post-form {
    margin-bottom: 0;
}

.post-textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 40px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: all 0.2s;
}

.post-textarea:focus {
    border-color: #00d4aa;
    outline: none;
    background: rgba(0,212,170,0.04);
    min-height: 80px;
}

.post-textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

/* Expanded form (shown on focus) */
.post-form-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
    margin-top: 0;
}

.community-post-form-compact.expanded .post-form-expanded {
    max-height: 120px;
    opacity: 1;
    margin-top: 10px;
}

.post-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.symbol-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    padding: 6px 8px;
    font-size: 12px;
    min-width: 130px;
    cursor: pointer;
}

.symbol-select:focus {
    border-color: #00d4aa;
    outline: none;
}

.symbol-select option,
.symbol-select optgroup {
    background: #1a1f2e;
    color: #fff;
}

.char-count-badge {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-left: auto;
}

.char-count-badge.warning { color: #f59e0b; }
.char-count-badge.danger { color: #ef4444; }

.post-submit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #00d4aa;
    color: #000;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.post-submit-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.post-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Login Prompt */
.community-login-prompt {
    text-align: center;
    padding: 4px 0;
}

.community-login-prompt p {
    color: rgba(255,255,255,0.6);
    margin: 0 0 10px 0;
    font-size: 13px;
}

.login-prompt-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-login,
.btn-register {
    padding: 7px 18px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login {
    background: #00d4aa;
    color: #000;
}

.btn-register {
    background: transparent;
    border: 1px solid #00d4aa;
    color: #00d4aa;
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* New Posts Banner (SSE) */
.new-posts-banner {
    padding: 8px 16px;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 13px;
    color: #00d4aa;
    cursor: pointer;
    transition: background 0.2s;
}

.new-posts-banner:hover {
    background: rgba(0,212,170,0.15);
}

/* Feed Panels */
.community-feed {
    min-height: 400px;
}

.feed-panel {
    display: none;
}

.feed-panel.active {
    display: block;
}

/* ========== Post Card (PRESERVED) ========== */
.community-post {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.community-post:hover {
    border-color: rgba(0,212,170,0.2);
    background: rgba(255,255,255,0.04);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar img,
.post-avatar .avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,212,170,0.15);
    color: #00d4aa;
    font-weight: 700;
    font-size: 13px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-username {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
}

.pro-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reputation-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    color: white;
}

.symbol-badge {
    background: rgba(0,212,170,0.12);
    color: #00d4aa;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.symbol-badge:hover {
    background: rgba(0,212,170,0.25);
}

.post-time {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.post-body {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-word;
}

.post-body .hashtag {
    color: #00d4aa;
    text-decoration: none;
    font-weight: 500;
}

.post-body .hashtag:hover {
    text-decoration: underline;
}

.post-body .mention {
    color: #00d4aa;
    text-decoration: none;
    font-weight: 500;
}

.post-body .mention:hover {
    text-decoration: underline;
}

/* Post Footer */
.post-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: none;
    border: none;
    border-radius: 5px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.post-action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.post-action:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.post-action.active,
.post-action.liked {
    color: #00d4aa;
}

.post-action.disliked {
    color: #ef4444;
}

.post-link {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.post-link:hover {
    color: #00d4aa;
}

/* Post Media Grid */
.post-media-grid {
    display: grid;
    gap: 4px;
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-media-grid.media-1 { grid-template-columns: 1fr; }
.post-media-grid.media-2 { grid-template-columns: 1fr 1fr; }
.post-media-grid.media-3 { grid-template-columns: 1fr 1fr; }
.post-media-grid.media-3 .media-item:first-child { grid-column: 1 / -1; }
.post-media-grid.media-4 { grid-template-columns: 1fr 1fr; }

.media-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 400px;
    transition: transform 0.2s;
}

.media-item:hover img { transform: scale(1.03); }

/* Image Upload in Post Form */
.image-upload-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.image-upload-btn {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.image-upload-btn:hover {
    border-color: #00d4aa;
    color: #00d4aa;
}

.upload-preview-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.upload-preview-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .remove-preview {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox */
.media-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.media-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
}

.media-lightbox .lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
}

/* ========== Feed States ========== */
.feed-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255,255,255,0.5);
}

.feed-empty svg {
    margin: 0 auto 0.75rem;
    color: rgba(255,255,255,0.3);
    display: block;
}

/* Load More */
.feed-load-more {
    text-align: center;
    padding: 1rem 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    border-color: #00d4aa;
    color: #00d4aa;
}

/* Loading Spinner */
.feed-loading {
    text-align: center;
    padding: 2rem 0;
    color: #00d4aa;
}

/* CSS-only Spinner */
.css-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0,212,170,0.2);
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: cssSpin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes cssSpin {
    to { transform: rotate(360deg); }
}

/* ========== Right Sidebar ========== */
.community-right-sidebar {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.community-right-sidebar::-webkit-scrollbar { display: none; }

/* Sidebar Widget */
.sidebar-widget {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.sidebar-widget:hover {
    border-color: rgba(0,212,170,0.15);
}

/* Widget Header (icon + title + separator) */
.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.widget-header .widget-icon {
    color: #00d4aa;
    flex-shrink: 0;
}

.widget-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Mini Ticker Widget */
.ticker-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticker-row {
    display: flex;
    align-items: center;
    padding: 5px 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.ticker-row:hover {
    background: rgba(255,255,255,0.04);
}

.ticker-symbol {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    width: 72px;
    flex-shrink: 0;
}

.ticker-symbol:hover {
    color: #00d4aa;
}

.ticker-price {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-family: 'SF Mono', 'Consolas', monospace;
    flex: 1;
    text-align: right;
}

.ticker-change {
    font-size: 10px;
    font-weight: 600;
    min-width: 52px;
    text-align: right;
    color: rgba(255,255,255,0.35);
}

.ticker-change.up { color: #00d4aa; }
.ticker-change.down { color: #ef4444; }

/* Most Discussed Widget */
.discussed-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discussed-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.15s;
}

.discussed-row:hover {
    background: rgba(255,255,255,0.04);
}

.discussed-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #00d4aa;
    background: rgba(0,212,170,0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

.discussed-symbol {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    flex: 1;
}

.discussed-count {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

/* Top Traders / Suggested Widget */
.traders-list,
.suggested-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trader-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    border-radius: 5px;
    transition: background 0.15s;
}

.trader-row:hover {
    background: rgba(255,255,255,0.03);
}

.trader-avatar {
    flex-shrink: 0;
}

.trader-avatar img,
.trader-avatar .avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.trader-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,212,170,0.15);
    color: #00d4aa;
    font-weight: 700;
    font-size: 11px;
    width: 30px;
    height: 30px;
}

.trader-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.trader-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trader-score {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.follow-btn-sm {
    padding: 3px 10px;
    background: linear-gradient(135deg, #00d4aa 0%, #00a88a 100%);
    color: #0a0e1a;
    border: none;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.follow-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,212,170,0.3);
}

.follow-btn-sm.following {
    background: transparent;
    border: 1px solid rgba(0,212,170,0.3);
    color: #00d4aa;
}

/* Trader Search Widget */
.search-widget {
    padding: 10px;
}

.toolbar-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toolbar-search-container svg {
    position: absolute;
    left: 10px;
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
}

.toolbar-search-input {
    width: 100%;
    height: 34px;
    padding: 0 10px 0 32px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.toolbar-search-input:focus {
    outline: none;
    border-color: #00d4aa;
    background: rgba(0,212,170,0.04);
}

.toolbar-search-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.trader-search-results {
    margin-top: 4px;
}

/* Search Result Items */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    font-size: 11px;
    font-weight: 600;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.search-result-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-name:hover {
    color: #3b82f6;
}

.search-result-meta {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    width: 100%;
}

.search-empty {
    padding: 12px 4px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* ========== Mobile Widgets Accordion ========== */
.community-mobile-widgets {
    display: none;
    margin-top: 12px;
}

.mobile-widget-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.mobile-widget-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-widget-toggle svg {
    transition: transform 0.2s;
    color: rgba(255,255,255,0.4);
}

.mobile-widget-section.open .mobile-widget-toggle svg {
    transform: rotate(180deg);
}

.mobile-widget-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 14px;
}

.mobile-widget-section.open .mobile-widget-content {
    max-height: 500px;
    padding: 0 14px 14px;
}

/* ========== Reputation Toast ========== */
.rep-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10000;
    pointer-events: none;
    animation: repToastIn 0.3s ease-out, repToastOut 0.3s ease-in 1.7s forwards;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rep-toast .rep-toast-pts {
    color: #00d4aa;
}

@keyframes repToastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes repToastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* ========== Responsive ========== */

/* Tablet: 2-column (hide right sidebar) */
@media (max-width: 1200px) {
    .community-layout-3col {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .community-right-sidebar {
        display: none;
    }

    .community-mobile-widgets {
        display: block;
    }
}

/* Mobile: 1-column */
@media (max-width: 768px) {
    .community-hero {
        flex-wrap: wrap;
        max-height: none;
        padding: 8px 12px;
        gap: 8px;
    }

    .hero-discussed {
        margin-left: 0;
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hero-top-trader {
        display: none;
    }

    .community-layout-3col {
        grid-template-columns: 1fr;
    }

    .community-left-nav {
        position: relative;
        top: 0;
        max-height: none;
        overflow: visible;
    }

    /* Transform left nav to horizontal scroll on mobile */
    .community-left-nav .left-nav-section:first-child {
        display: flex;
        gap: 4px;
        padding: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .community-left-nav .left-nav-section:first-child .left-nav-title {
        display: none;
    }

    .community-left-nav .left-nav-section:first-child .left-nav-link {
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
    }

    /* Hide other left nav sections on mobile (content in accordion below) */
    .community-left-nav .left-nav-section:not(:first-child) {
        display: none;
    }

    .community-left-nav .left-nav-stats {
        display: none;
    }

    /* Feed pills hidden on mobile (left nav horizontal tabs visible) */
    .feed-pill-tabs {
        display: none;
    }

    .community-post {
        padding: 10px 12px;
    }

    .post-footer {
        flex-wrap: wrap;
    }

    .post-link {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }

    .post-form-row {
        flex-wrap: wrap;
    }

    .symbol-select {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .login-prompt-btns {
        flex-direction: column;
    }

    .btn-login,
    .btn-register {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        font-size: 11px;
    }
}

/* ========================================
   Price Ticker Flash Animations
   ======================================== */
@keyframes community-flash-green {
    0% { background: rgba(34, 197, 94, 0.15); }
    100% { background: transparent; }
}
@keyframes community-flash-red {
    0% { background: rgba(239, 68, 68, 0.15); }
    100% { background: transparent; }
}
.community-flash-up { animation: community-flash-green 0.6s ease-out; }
.community-flash-down { animation: community-flash-red 0.6s ease-out; }

/* ========================================
   New Post Glow Animation
   ======================================== */
@keyframes community-post-glow {
    0% { border-color: rgba(0, 212, 170, 0.6); box-shadow: 0 0 12px rgba(0, 212, 170, 0.15); }
    100% { border-color: var(--border-color, rgba(255,255,255,0.08)); box-shadow: none; }
}
.community-post-new { animation: community-post-glow 2s ease-out; }

/* ========================================
   New Posts Banner
   ======================================== */
.community-new-posts-banner {
    text-align: center;
    padding: 10px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    color: var(--accent-teal, #00d4aa);
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.community-new-posts-banner:hover {
    background: rgba(0, 212, 170, 0.2);
}
