/* スレッド表示ページ専用CSS */

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

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

a:hover {
    text-decoration: none;
}

/* スレッドページのレイアウト */
.thread-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    width: 100%;
}

/* スレッドヘッダー */
.thread-header {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #F0F0F0;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
}

.thread-header h1 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #800000 !important;
    line-height: 1.3;
}

.thread-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    color: #888888;
}

.thread-info a {
    color: #0000EE !important;
    font-size: 15px;
}

/* 投稿一覧 */
.post-list {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    margin-bottom: 20px;
}

.post {
    padding: 12px 15px;
    border-bottom: 1px solid #F0F0F0;
}

.post:last-child {
    border-bottom: none;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #008000;
}

.post-number {
    font-weight: bold;
    color: #666666;
}

.post-name {
    font-weight: bold;
    color: #008000;
}

.post-mail {
    color: #0000EE;
}

.post-date {
    color: #888888;
}

.post-id {
    color: #888888;
    font-family: monospace;
}

.post-content {
    margin: 8px 0 0 0;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 13px;
    color: #333333;
}

/* 投稿フォーム */
.post-form {
    background-color: #F9F9F9;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.post-form h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333333;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table td {
    padding: 5px;
    vertical-align: top;
}

.form-table td:first-child {
    width: 80px;
    font-size: 15px;
    color: #666666;
    text-align: right;
    padding-right: 10px;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table textarea {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #CCCCCC;
    border-radius: 2px;
    font-family: "MS Pゴシック", "ＭＳ Ｐゴシック", monospace;
    font-size: 12px;
}

.form-table textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-button {
    background-color: #FF6B6B;
    color: #FFFFFF !important;
    border: 1px solid #FF6B6B;
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none !important;
}

.submit-button:hover {
    background-color: #FF5252;
    border-color: #FF5252;
}

/* ナビゲーション */
.thread-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px 12px;
    background-color: #FFFFEE;
    border: 1px solid #DDDDDD;
    border-radius: 3px;
    font-size: 15px;
}

.thread-nav a {
    color: #0000EE !important;
    text-decoration: none !important;
}

.thread-nav a:hover {
    text-decoration: underline !important;
}

/* エラー・成功メッセージ */
.error-message {
    background-color: #FFE6E6;
    color: #CC0000;
    border: 1px solid #CC0000;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 12px;
}

.success-message {
    background-color: #E8F5E8;
    color: #2E7D32;
    border: 1px solid #4CAF50;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .thread-page {
        padding: 10px;
    }
    
    .thread-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .form-table td:first-child {
        text-align: left;
        padding-right: 5px;
    }
}

/* --- 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;
}

.thread-page {
    color: var(--amd-text);
}

.thread-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: 1px solid var(--amd-border-strong) !important;
    border-radius: 0;
    box-shadow: var(--amd-shadow) !important;
}

.thread-header h1,
.post-form h3 {
    color: #ffffff !important;
    text-shadow: none;
}

.thread-info,
.thread-info a,
.post-date,
.post-id,
.form-table td:first-child,
.thread-nav,
.thread-nav a {
    color: var(--amd-muted) !important;
}

.post-list,
.post,
.post-form,
.thread-nav {
    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;
}

.post {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.post-header,
.post-name {
    color: #ff8f95 !important;
}

.post-number,
.post-mail {
    color: #ffd0d2 !important;
}

.post-content {
    color: var(--amd-text) !important;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table textarea {
    background: rgba(7, 8, 11, 0.94) !important;
    color: var(--amd-text) !important;
    border: 1px solid #5a1b21 !important;
    border-radius: 0;
}

.form-table input[type="text"]:focus,
.form-table input[type="email"]:focus,
.form-table textarea:focus {
    outline: none;
    border-color: var(--amd-accent-strong) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.16);
}

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

.submit-button:hover {
    background: linear-gradient(180deg, #ff4851 0%, #a5161d 100%) !important;
    border-color: var(--amd-border-strong) !important;
}

.error-message {
    background: rgba(96, 18, 24, 0.4) !important;
    color: #ffd9db !important;
    border-color: var(--amd-border-strong) !important;
}

.success-message {
    background: rgba(18, 78, 42, 0.42) !important;
    color: #d7ffe5 !important;
    border-color: #2a9c57 !important;
}
