/* 掲示板ページ専用CSS - 2ちゃんねる風クラシックスタイル */

/* リンクの基本設定 */
a {
    color: #0000EE !important;
    text-decoration: underline;
}

a:visited {
    color: #551A8B !important;
}

a:hover {
    text-decoration: none;
}

/* --- 2000年代レガシー＋イケてる装飾＆レスポンシブ対応 --- */
.board-page {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: linear-gradient(135deg, #fffbe0 0%, #ffe4b5 100%);
    border-radius: 12px;
    box-shadow: 2px 2px 8px #e0cfa0;
    border: 1px solid #CCCCAA;
    padding: 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar-area {
    width: 300px;
    flex-shrink: 0;
}

.board-header {
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(90deg, #e0f7fa 0%, #f3e6ff 100%) !important;
    border-bottom: 2px solid #c7c7e6 !important;
    border-top: none;
    border-left: none;
    border-right: none;
}

.board-header h1 {
    font-size: 24px;
    color: #6a1b9a !important;
    text-shadow: none;
    letter-spacing: 1px;
    font-family: "MS Pゴシック", monospace;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.board-info {
    font-size: 12px;
    color: #666666;
}

.board-subtitle {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333333;
}

.board-description {
    font-size: 11px;
    color: #666666;
    line-height: 1.4;
}

/* ツールバー */
.board-toolbar {
    border-radius: 8px;
    box-shadow: 1px 1px 6px #e0cfa0;
    background: linear-gradient(90deg, #fffbe0 0%, #ffe4b5 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px;
    border: 1px solid #CCCCAA;
}

/* --- 90年代・2000年代クラシックな直線ボタン＆パステルカラー --- */
.btn, .btn-primary, .btn-secondary {
    background: #f5f5f5;
    border: 2px outset #cccccc;
    color: #333 !important;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    font-family: "MS Pゴシック", monospace;
    margin: 4px 0;
    transition: background 0.2s, color 0.2s;
    font-size: 14px;
}

.btn-primary {
    background: #E0E0E0;
    color: #000000 !important;
    border-color: #AAAAAA;
}

.btn-secondary {
    background: #D0D0D0;
    color: #000000 !important;
    border-color: #AAAAAA;
}

.btn:hover, .btn-primary:hover, .btn-secondary:hover {
    background: #e0e0ff;
    color: #0066cc !important;
}

.thread-count {
    font-size: 11px;
    color: #666666;
}

/* スレッド一覧 */
.thread-list {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 4px 0;
    box-shadow: none;
}

.thread-item {
    background: #fffbe0;
    border-radius: 4px;
    margin: 4px 8px;
    padding: 6px 8px;
    border: 1px solid #f0e4c0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: none;
    transition: background 0.2s;
}

.thread-item:hover {
    background: #fff8d0;
}

.thread-item.archived {
    opacity: 0.6;
    background: #f5e6d0;
}

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

.thread-number {
    width: 28px;
    font-size: 11px;
    color: #aaa;
    text-align: right;
    margin-right: 6px;
    flex-shrink: 0;
}

.thread-title {
    flex: 1;
    margin-right: 6px;
}

.thread-title a {
    font-size: 15px;
    color: #0066cc;
    font-weight: bold;
    text-decoration: underline;
}

.thread-title a:visited {
    color: #551A8B !important;
}

.thread-title a:hover {
    color: #ff6600;
    text-shadow: none;
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.thread-post-count {
    color: #666666;
}

.thread-date {
    color: #999999;
}

/* アーカイブされたスレッド */
.thread-item.archived {
    opacity: 0.6;
}

.thread-item.archived .thread-title a {
    color: #888888 !important;
}

/* 空状態 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
    font-size: 14px;
    background: #FFFFEE;
}

.empty-state p {
    margin: 0 0 20px 0;
}

.empty-state a {
    color: #0000EE !important;
    text-decoration: underline !important;
}

.empty-state a:visited {
    color: #551A8B !important;
}

.empty-state a:hover {
    text-decoration: none !important;
}

/* サイドバー用のスタイル */
.sidebar {
    background: #FFFFCC;
    border: 1px solid #CCCCAA;
    padding: 0;
}

.sidebar-section {
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #CCCCAA;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #800000;
    font-weight: bold;
}

.announcement-list,
.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.announcement-list li,
.menu-list li {
    margin-bottom: 8px;
    padding: 0;
}

.announcement-list li a,
.menu-list li a {
    display: block;
    padding: 4px 8px;
    color: #0000EE !important;
    text-decoration: none !important;
    font-size: 12px;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.announcement-list li a:visited,
.menu-list li a:visited {
    color: #551A8B !important;
}

.announcement-list li a:hover,
.menu-list li a:hover {
    background-color: #FFFFEE;
    text-decoration: underline !important;
}

/* --- 2ちゃんねる風 レス・板タイトル・装飾 --- */
.ch-title {
    font-size: 16px;
    color: #000080;
    font-weight: bold;
    margin: 18px 0 6px 0;
    padding: 0;
    font-family: "MS Pゴシック", monospace;
}

.ch-hr {
    border: none;
    border-top: 2px solid #CCCCAA;
    margin: 6px 0 12px 0;
}

.res-box {
    background: #FFF;
    border: 1px solid #CCCCCC;
    margin: 8px 0;
    padding: 8px 10px;
    font-size: 12px;
    font-family: "MS Pゴシック", monospace;
    box-shadow: 1px 1px 4px #EEE;
}

.res-number {
    color: #000;
    font-weight: bold;
    margin-right: 6px;
}

.res-name {
    color: #008000;
    font-weight: bold;
    margin-right: 6px;
}

.res-date {
    color: #000080;
    font-size: 11px;
    margin-right: 6px;
}

.res-id {
    color: #800000;
    font-size: 11px;
}

.res-content {
    margin-top: 2px;
    white-space: pre-wrap;
    word-break: break-all;
}

ul.ch-list {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}
ul.ch-list li {
    border-bottom: 1px dotted #CCCCCC;
    padding: 4px 0;
    font-size: 12px;
}
ul.ch-list li:last-child {
    border-bottom: none;
}

/* 見出しの下線強調 */
h2, h3, h4 {
    border-bottom: 1px solid #CCCCAA;
    color: #800000;
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 2px;
    font-family: "MS Pゴシック", monospace;
}

/* 全体の背景・枠線微調整 */
body {
    background-color: #FFFFEE;
    font-family: "MS Pゴシック", monospace;
    font-size: 12px;
}

.board-page, .main-content, .sidebar {
    background: #FFFFEE;
    border: 1px solid #CCCCAA;
    box-shadow: 2px 2px 8px #EEE;
}

.thread-list {
    background: #FFF;
    border: 1px solid #CCCCAA;
}

.thread-item {
    border-bottom: 1px solid #EEEEEE;
    font-size: 12px;
}

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

/* --- パステル紫ピンク〜シアン基調に色統一 --- */
.board-page, .main-content, .sidebar-area, .board-header, .board-toolbar, .thread-list, .thread-item, .sidebar, .sidebar-section {
    background: #f7f5ff !important;
    border: 1px solid #c7c7e6 !important;
    box-shadow: 0 2px 8px #e0eaff !important;
}
.board-header, .board-toolbar {
    background: linear-gradient(90deg, #e0f7fa 0%, #f3e6ff 100%) !important;
    border-bottom: 2px solid #c7c7e6 !important;
}
.thread-item {
    background: #f3f8fa !important;
    border: 1px solid #e0eaff !important;
}
.thread-item.archived {
    background: #ede7f6 !important;
}
.empty-state {
    background: #f3e6ff !important;
    color: #6a1b9a !important;
}
.sidebar-section h3 {
    color: #6a1b9a !important;
    border-bottom: 1px solid #c7c7e6 !important;
}
.btn, .btn-primary, .btn-secondary {
    background: #e0f7fa !important;
    color: #6a1b9a !important;
    border: 2px outset #b0e0e6 !important;
}
.btn:hover, .btn-primary:hover, .btn-secondary:hover {
    background: #f3e6ff !important;
    color: #e040fb !important;
}
body {
    background: linear-gradient(135deg, #f8f6ff 0%, #e0f7fa 40%, #f3e6ff 80%, #f8f6ff 100%) !important;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .board-page {
        flex-direction: column;
        gap: 0;
        padding: 8px;
    }
    .sidebar-area {
        width: 100%;
        margin-top: 20px;
    }
}
@media (max-width: 768px) {
    .board-page {
        padding: 10px;
    }
    
    .board-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .thread-count {
        margin-left: 0;
        text-align: center;
    }
    
    .thread-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .thread-meta {
        gap: 10px;
    }
}
@media (max-width: 600px) {
    .board-header h1 {
        font-size: 18px;
    }
    .btn, .btn-primary, .btn-secondary {
        font-size: 12px;
        padding: 4px 10px;
    }
    .thread-title a {
        font-size: 13px;
    }
    .thread-item {
        flex-direction: column;
        gap: 4px;
        padding: 6px 4px;
    }
    .board-header, .board-toolbar {
        padding: 6px;
    }
    
    .board-page {
        flex-direction: column;
        gap: 0;
        padding: 8px;
    }
    .sidebar-area {
        width: 100%;
        margin-top: 20px;
    }
    .thread-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin: 4px 2px;
        padding: 4px 2px;
    }
}

/* --- ROCm / AMD inspired dark theme override --- */
a {
    color: var(--amd-link) !important;
}

a:visited {
    color: var(--amd-link-visited) !important;
}

a:hover {
    color: #ffd0d2 !important;
}

.board-page {
    background: linear-gradient(180deg, rgba(18, 20, 25, 0.95), rgba(12, 13, 16, 0.98)) !important;
    border: 1px solid var(--amd-border-strong) !important;
    box-shadow: var(--amd-shadow) !important;
    border-radius: 0;
}

.board-header {
    background: linear-gradient(120deg, rgba(40, 12, 16, 0.98), rgba(18, 19, 22, 0.96) 65%, rgba(20, 20, 24, 0.95) 100%) !important;
    border-bottom: 1px solid var(--amd-border-strong) !important;
}

.board-header h1,
.board-title,
.sidebar-section h3,
.ch-title {
    color: var(--amd-text) !important;
    text-shadow: 0 0 20px rgba(215, 25, 32, 0.22);
}

.board-info,
.board-subtitle,
.board-description,
.thread-count,
.thread-post-count,
.thread-date,
.thread-meta,
.empty-state,
.thread-item.archived .thread-title a {
    color: var(--amd-muted) !important;
}

.board-toolbar,
.thread-list,
.sidebar,
.sidebar-section,
.res-box {
    background: linear-gradient(180deg, rgba(25, 27, 33, 0.96), rgba(15, 16, 19, 0.97)) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 30px rgba(0, 0, 0, 0.28) !important;
}

.btn,
.btn-primary,
.btn-secondary {
    background: linear-gradient(180deg, #e52a31 0%, #8b1218 100%) !important;
    color: #ffffff !important;
    border: 1px solid var(--amd-border-strong) !important;
    box-shadow: 0 10px 22px rgba(215, 25, 32, 0.22) !important;
}

.btn-secondary {
    background: linear-gradient(180deg, #2a2d34 0%, #16181d 100%) !important;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
    background: linear-gradient(180deg, #ff4851 0%, #a5161d 100%) !important;
    color: #ffffff !important;
}

.thread-item {
    background: linear-gradient(180deg, rgba(27, 29, 34, 0.96), rgba(17, 18, 22, 0.96)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.thread-item:hover {
    background: linear-gradient(180deg, rgba(42, 16, 20, 0.98), rgba(19, 20, 24, 0.98)) !important;
    border-color: var(--amd-border-strong) !important;
}

.thread-item.archived {
    background: linear-gradient(180deg, rgba(35, 30, 31, 0.96), rgba(18, 18, 20, 0.96)) !important;
}

.thread-number {
    color: #ff8087 !important;
}

.thread-title a {
    color: #ffffff !important;
}

.thread-title a:hover {
    color: var(--amd-link) !important;
}

.announcement-list li a,
.menu-list li a {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--amd-text) !important;
}

.announcement-list li a:hover,
.menu-list li a:hover {
    background: rgba(215, 25, 32, 0.16) !important;
}

.ch-hr {
    border-top-color: var(--amd-border-strong) !important;
}
