/* forum.css - Community Forum Specific Styles */

.forum-header {
    background: white;
    padding: 10px 0 0;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.compact-search {
    font-size: 20px;
    color: var(--text-main);
}

.header-msg {
    position: relative;
    font-size: 20px;
    color: var(--text-main);
}

.header-msg .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid white;
}





/* Hero Carousel */
.forum-hero-carousel {
    background: linear-gradient(135deg, #007AFF, #00C6FF);
    margin: 0 16px 16px;
    padding: 24px 20px;
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.4;
}

.hero-post-btn {
    background: #FFD666;
    color: #873800;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.carousel-dots .dot {
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

.carousel-dots .dot.active {
    background: white;
    width: 12px;
    border-radius: 3px;
}

/* Category Menu */
.forum-menu {
    display: flex;
    justify-content: space-between;
    padding: 0 16px 20px;
    background: white;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.icon-box.blue { background: #4D8DFF; }
.icon-box.red { background: #FF5C4D; }
.icon-box.purple { background: #A461FF; }
.icon-box.green { background: #4DCE70; }
.icon-box.orange { background: #FFB04D; }
.icon-box.blue-alt { background: #4DBFFF; }

.menu-item span {
    font-size: 11px;
    color: #333;
    white-space: nowrap;
}

/* Forum Banner */
.forum-banner {
    padding: 0 16px 16px;
    background: white;
}

.banner-box {
    background: linear-gradient(135deg, #FF7A45, #FF4D4F);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.banner-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.banner-info p {
    font-size: 11px;
    opacity: 0.9;
}

.banner-box i {
    font-size: 32px;
    opacity: 0.3;
}

/* Trending Topics */
.trending-topics {
    padding: 16px;
    background: white;
    margin-bottom: 10px;
}

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

.trending-header h3 {
    font-size: 16px;
    font-weight: bold;
}

.trending-header .more {
    font-size: 12px;
    color: var(--text-light);
}

.topic-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.topic-list::-webkit-scrollbar { display: none; }

.topic-tag {
    background: #F7F8FA;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-sub);
    white-space: nowrap;
}

/* Pinned Posts */
.pinned-posts {
    background: white;
    margin-bottom: 10px;
    padding: 8px 16px;
}

.pin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
}

.pin-item:last-child { border-bottom: none; }

.pin-tag {
    font-size: 10px;
    color: var(--accent-red);
    background: #FFF1F0;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.pin-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pin-item i {
    font-size: 12px;
    color: var(--text-light);
}

/* Active Neighbors */
.active-neighbors {
    background: white;
    padding: 16px;
    margin-bottom: 10px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title h3 {
    font-size: 16px;
    font-weight: bold;
}

.section-title .more {
    font-size: 12px;
    color: var(--text-light);
}

.neighbor-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.neighbor-scroll::-webkit-scrollbar { display: none; }

.neighbor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.neighbor-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #F0F5FF;
}

.neighbor-name {
    font-size: 12px;
    color: var(--text-main);
}

.neighbor-level {
    font-size: 9px;
    color: #FA8C16;
    background: #FFF7E6;
    padding: 1px 6px;
    border-radius: 8px;
}

/* Forum Tabs Redesign */
.forum-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 99;
}

.tabs-left {
    display: flex;
    gap: 24px;
}

.tab-item {
    font-size: 15px;
    color: #8C8C8C;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-item.active {
    color: #222;
    font-weight: bold;
    position: relative;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 3px;
    background: #52C41A;
    border-radius: 2px;
}

.tabs-filter {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Announcement Bar - Refined */
.pin-item.announce {
    background: white;
    padding: 14px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 8px solid #F7F8FA; /* Space between announcement and posts */
}

.announce-icon {
    color: #52C41A;
    font-size: 16px;
}

.pin-tag.green {
    color: #52C41A;
    background: #F6FFED;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.pin-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.more-icon {
    color: #BFBFBF;
    font-size: 12px;
}

/* Post Items - Premium Layout */
.post-item {
    background: white;
    margin-bottom: 8px;
    padding: 20px;
}

.post-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

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

.user-info {
    flex: 1;
}

.name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.username {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.user-tag {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.user-tag.member-gold { background: #FFF7E6; color: #FAAD14; }
.user-tag.member-silver { background: #F5F5F5; color: #8C8C8C; }
.user-tag.helper-green { background: #F6FFED; color: #52C41A; }

.post-time {
    font-size: 12px;
    color: #BFBFBF;
}

.follow-btn.outline {
    background: white;
    border: 1px solid #52C41A;
    color: #52C41A;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.5;
    margin-bottom: 10px;
}

.post-text {
    font-size: 14px;
    line-height: 1.6;
    color: #595959;
    margin-bottom: 12px;
}

.side-img-layout {
    display: flex;
    gap: 16px;
}

.post-side-media {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.post-side-media img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.post-media.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.post-media img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.post-hashtags {
    margin-bottom: 16px;
}

.hashtag {
    color: #1890FF;
    font-size: 13px;
    font-weight: 500;
}

/* Post Footer - Action Bar */
.post-footer {
    border-top: 1px solid #FAFAFA;
    padding-top: 14px;
}

.post-actions-new {
    display: flex;
    align-items: center;
    gap: 32px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8C8C8C;
    font-size: 13px;
    cursor: pointer;
}

.action-item i {
    font-size: 18px;
}

.action-item.reward {
    margin-left: auto;
    background: #FFFBE6;
    color: #FAAD14;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.action-item.reward i {
    font-size: 14px;
}

