/* ═══════════════════════════════════════════════════════════════════════════
   HUB COMUNITATE - Styles for Property Community Hub
   Sistema: Feed Oferte, Sejururi, Q&A, Updates, Highlights
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-comunitate-section {
    padding: 2rem 0;
}

.hub-comunitate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hub-comunitate-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hub-comunitate-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.hub-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hub-icon-circle svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAB NAVIGATION - Hub Subtabs
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-tabs-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hub-tabs-nav::-webkit-scrollbar {
    display: none;
}

.hub-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hub-tab-btn:hover {
    color: var(--color-text);
    background: rgba(99, 102, 241, 0.1);
}

.hub-tab-btn.active {
    color: white;
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.hub-tab-btn svg {
    width: 18px;
    height: 18px;
}

.hub-tab-badge {
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-primary-light);
}

.hub-tab-btn.active .hub-tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HUB LAYOUT - 3 Columns Desktop
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-layout {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.hub-sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAB CONTENT PANELS
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-tab-content {
    display: none;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   HOST MINI CARD (Left Sidebar)
   ═══════════════════════════════════════════════════════════════════════════ */
.host-mini-card {
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.host-mini-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.host-mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.host-mini-info {
    flex: 1;
}

.host-mini-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.host-mini-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.host-mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.host-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary-light);
}

.host-mini-badge.superhost {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
}

.host-mini-badge svg {
    width: 12px;
    height: 12px;
}

.host-mini-stats {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.host-mini-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.host-mini-stat-label {
    color: var(--color-text-muted);
}

.host-mini-stat-value {
    font-weight: 600;
    color: var(--color-text);
}

.btn-view-host {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTERS CARD (Left Sidebar)
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-filters-card {
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.hub-filters-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.hub-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.hub-filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.hub-filter-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-text);
}

.hub-filter-btn.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary-light);
}

.hub-filter-count {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.375rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEED POSTS - Base Card Style
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-post-card {
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hub-post-card.pinned {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), 0 4px 16px rgba(99, 102, 241, 0.2);
}

.hub-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.hub-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hub-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.hub-post-author-info {
    display: flex;
    flex-direction: column;
}

.hub-post-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.hub-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    color: white;
}

.hub-official-badge svg {
    width: 10px;
    height: 10px;
}

.hub-post-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.hub-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hub-post-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 6px;
}

.hub-post-type-badge.offer {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    color: #10b981;
}

.hub-post-type-badge.stay_story {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--color-primary-light);
}

.hub-post-type-badge.update {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    color: #fbbf24;
}

.hub-pin-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-primary-light);
}

.hub-pin-indicator svg {
    width: 12px;
    height: 12px;
}

/* Post Body */
.hub-post-body {
    padding: 1.25rem;
}

.hub-post-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.hub-post-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.hub-post-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-read-more {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-primary);
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    cursor: pointer;
}

.hub-read-more:hover {
    text-decoration: underline;
}

/* Post Media Gallery */
.hub-post-media {
    display: grid;
    gap: 0.25rem;
    margin: 0.75rem 0;
}

.hub-post-media.single {
    grid-template-columns: 1fr;
}

.hub-post-media.double {
    grid-template-columns: repeat(2, 1fr);
}

.hub-post-media.triple {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.hub-post-media.triple .hub-media-item:first-child {
    grid-row: span 2;
}

.hub-post-media.quad {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.hub-media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.hub-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Post Tags */
.hub-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.hub-post-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-text-muted);
}

/* Post Footer / Actions */
.hub-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.hub-post-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hub-post-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hub-post-stat svg {
    width: 16px;
    height: 16px;
}

.hub-post-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hub-action-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-text);
}

.hub-action-btn.liked {
    color: #ef4444;
}

.hub-action-btn svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OFFER CARD SPECIFICS
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-offer-pricing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.hub-offer-old-price {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.hub-offer-new-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.hub-offer-discount {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    background: #10b981;
    color: white;
}

.hub-offer-validity {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.hub-offer-cta {
    padding: 0 1.25rem 1.25rem;
}

.btn-reserve-offer {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-reserve-offer:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAY STORY CARD SPECIFICS
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-story-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.hub-story-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 8px;
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.8);
}

.hub-story-rating-label {
    color: var(--color-text-muted);
}

.hub-story-rating-value {
    font-weight: 600;
    color: var(--color-text);
}

.hub-story-rating-stars {
    display: flex;
    gap: 0.125rem;
}

.hub-story-rating-stars svg {
    width: 12px;
    height: 12px;
    color: #fbbf24;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Q&A SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-qa-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-qa-card {
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
}

.hub-qa-question {
    display: flex;
    gap: 0.75rem;
}

.hub-qa-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    flex-shrink: 0;
}

.hub-qa-icon svg {
    width: 16px;
    height: 16px;
}

.hub-qa-question-content {
    flex: 1;
}

.hub-qa-question-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.375rem;
}

.hub-qa-question-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.hub-qa-answer {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--color-primary);
}

.hub-qa-answer-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.hub-qa-answer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.hub-qa-answer-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.hub-qa-answer-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.hub-qa-helpful {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.hub-qa-helpful-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.hub-qa-helpful-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hub-qa-helpful-count svg {
    width: 16px;
    height: 16px;
}

.hub-qa-no-answer {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.5);
    border-radius: 8px;
    font-style: italic;
}

/* Ask Question Form */
.hub-ask-question-form {
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.hub-ask-question-form h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.75rem;
}

.hub-ask-input-wrap {
    display: flex;
    gap: 0.75rem;
}

.hub-ask-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(var(--color-surface-rgb, 15, 23, 42), 0.6);
    color: var(--color-text);
}

.hub-ask-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hub-ask-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.hub-ask-btn:hover {
    background: var(--color-primary-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HIGHLIGHTS SIDEBAR (Right)
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-highlights-card {
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.hub-highlights-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.hub-highlights-title svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.hub-highlight-group {
    margin-bottom: 1rem;
}

.hub-highlight-group:last-child {
    margin-bottom: 0;
}

.hub-highlight-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.hub-highlight-items {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.hub-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-text);
}

.hub-highlight-item.praised {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
}

.hub-highlight-item.recommended {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.hub-highlight-item.good-to-know {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
}

.hub-highlight-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.125rem;
}

.hub-highlight-icon.praised {
    color: #10b981;
}

.hub-highlight-icon.recommended {
    color: var(--color-primary-light);
}

.hub-highlight-icon.good-to-know {
    color: #fbbf24;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UPDATES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-updates-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hub-update-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.hub-update-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
    flex-shrink: 0;
}

.hub-update-icon svg {
    width: 18px;
    height: 18px;
}

.hub-update-content {
    flex: 1;
}

.hub-update-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}

.hub-update-text {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.hub-update-date {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    margin-top: 0.375rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMMUNITY STATS CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-community-stats {
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.6);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.hub-community-stats-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.hub-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.hub-stat-item {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
}

.hub-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-light);
}

.hub-stat-label {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING & EMPTY STATES
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.hub-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hub-loading-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.hub-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: rgba(var(--color-elevated-rgb, 30, 41, 59), 0.4);
    border-radius: 16px;
    border: 1px dashed rgba(99, 102, 241, 0.2);
}

.hub-empty-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.hub-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}

.hub-empty-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - Tablet
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .hub-layout {
        grid-template-columns: 1fr 280px;
    }
    
    .hub-sidebar-left {
        display: none;
    }
    
    /* Show mini host card in main content on tablet */
    .hub-mobile-host-card {
        display: block;
        margin-bottom: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - Mobile
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hub-comunitate-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hub-tabs-nav {
        order: 2;
    }
    
    .hub-layout {
        grid-template-columns: 1fr;
    }
    
    .hub-sidebar-right {
        order: -1;
    }
    
    .hub-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .hub-tab-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .hub-post-card {
        border-radius: 12px;
    }
    
    .hub-post-header,
    .hub-post-body,
    .hub-post-footer {
        padding: 1rem;
    }
    
    .hub-post-title {
        font-size: 1rem;
    }
    
    .hub-highlights-card,
    .hub-community-stats {
        border-radius: 12px;
        padding: 1rem;
    }
    
    .hub-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hub-stat-value {
        font-size: 1rem;
    }
    
    /* Sticky filter bar on mobile */
    .hub-mobile-filter-bar {
        position: sticky;
        top: 72px;
        z-index: 50;
        padding: 0.75rem 0;
        background: rgba(var(--color-surface-rgb, 15, 23, 42), 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hub-ask-input-wrap {
        flex-direction: column;
    }
    
    .hub-ask-btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMMENTS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hub-comments-section {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.hub-comments-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hub-comments-toggle:hover {
    color: var(--color-text);
}

.hub-comments-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.hub-comments-toggle.expanded svg {
    transform: rotate(180deg);
}

.hub-comments-list {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hub-comments-list.visible {
    display: flex;
}

.hub-comment {
    display: flex;
    gap: 0.625rem;
}

.hub-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hub-comment-body {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
}

.hub-comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.hub-comment-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.hub-comment-date {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

.hub-comment-text {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Add Comment Form */
.hub-add-comment {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.hub-add-comment-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(var(--color-surface-rgb, 15, 23, 42), 0.6);
    color: var(--color-text);
}

.hub-add-comment-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.hub-add-comment-btn {
    padding: 0.625rem;
    border-radius: 8px;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
}

.hub-add-comment-btn svg {
    width: 18px;
    height: 18px;
}

