.forum-app {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    color: #333;
}

.forum-header {
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.forum-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.forum-search-bar {
    flex: 1;
    margin: 0 15px;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    color: #999;
}

.forum-search-bar input {
    border: none;
    background: transparent;
    margin-left: 10px;
    width: 100%;
    outline: none;
    color: #333;
}

.forum-nav {
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: none;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.03);
    border-radius: 20px 20px 0 0;
    z-index: 101;
    position: relative;
}

.forum-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.forum-nav-item.active {
    color: #333;
    font-weight: bold;
}

.forum-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.forum-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 100px; /* Space for FAB */
}

.forum-page {
    display: none;
}

.forum-post {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f8f8f8;
    transition: transform 0.2s;
}

.forum-post:active {
    transform: scale(0.98);
}

.forum-post-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.forum-post-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-board-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.forum-market-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.forum-market-img {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    background-size: cover;
    border-radius: 12px;
}

/* Post Detail */
.forum-detail-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.forum-comment {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Chat */
.chat-item {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f8f8f8;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    font-size: 20px;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: bold;
    font-size: 16px;
}

.chat-msg {
    color: #999;
    font-size: 14px;
    margin-top: 4px;
}

/* Generate Button (Top Right or Floating) */
.forum-gen-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    transition: all 0.2s;
}

.forum-gen-btn:active {
    transform: scale(0.9);
    background: #e0e0e0;
}
