/* ==========================================================================
   玩家討論區頁面專屬樣式 (forums.css)
   ========================================================================== */

/* 主體包裹容器 */
.forums-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 130px 20px 60px 20px; 
}

/* 半透明極簡黑科技控制面板 */
.forums-panel {
    width: 100%;
    max-width: 900px; 
    background: rgba(0, 0, 0, 0.75); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* 頁面頂部大標題區塊 */
.page-title-zone {
    text-align: center;
    margin-bottom: 40px;
}

.page-title-en {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #666666;
    letter-spacing: 6px;
}

.page-title-zh {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 6px 0 0 0;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.title-underline {
    width: 60px;
    height: 2px;
    background: #ffffff;
    margin: 15px auto 0 auto;
}

/* ==========================================================================
   發文輸入區樣式
   ========================================================================== */
.forum-post-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 15px;
    box-sizing: border-box;
    font-family: 'Courier New', "Microsoft JhengHei", sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.input-group input {
    height: 42px;
}

.input-group textarea {
    height: 120px;
    resize: vertical;
}

/* 發布按鈕 */
.submit-btn-wrapper {
    display: flex;
    justify-content: flex-end;
}

#post-submit-btn {
    height: 42px;
    padding: 0 30px;
    background: #000000;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#post-submit-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

#post-submit-btn:disabled {
    background: #222222;
    border-color: #444444;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
}

/* 分隔裝飾 */
.forum-divider {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #555555;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* ==========================================================================
   文章卡片列表樣式
   ========================================================================== */
#forum-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forum-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 25px;
    transition: border-color 0.25s ease;
}

.forum-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.forum-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.forum-author {
    font-family: 'Courier New', "Microsoft JhengHei", sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
}

.forum-date {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #555555;
}

.forum-content {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap; /* 支援換行符號 */
    word-break: break-all;
}

/* 狀態提示語 */
.forum-loading, .forum-empty {
    text-align: center;
    padding: 40px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #555555;
    letter-spacing: 1px;
}