/* Early 2000s vBulletin Aesthetic */
:root {
    --bg-color: #e9e9e9;
    --box-border: #0B198C;
    --header-bg: #5c7099;
    --header-text: #ffffff;
    --cell-bg-1: #f5f5ff;
    --cell-bg-2: #e1e4f2;
    --text-color: #000000;
    --link-color: #22229c;
    --link-hover: #ff4400;
}

body {
    background-color: var(--bg-color);
    font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    padding: 10px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

#wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 10px;
}

#header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 15px;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.user-bar a {
    color: #ffffff;
    font-weight: bold;
}

.breadcrumbs {
    font-size: 11px;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 20px;
}

/* Forum Table Styles */
.forum-category {
    border: 1px solid var(--box-border);
    margin-bottom: 20px;
}

.category-header {
    background: var(--header-bg);
    color: #ffffff;
    padding: 5px 10px;
}

.category-header h2 {
    margin: 0;
    font-size: 14px;
}

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

.forum-table th {
    background: #d1d4e0;
    color: #000;
    padding: 5px;
    font-size: 11px;
    text-align: left;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
}

.forum-table td {
    padding: 10px;
    border-bottom: 1px solid #ffffff;
}

.forum-table tr:nth-child(even) td {
    background: var(--cell-bg-1);
}

.forum-table tr:nth-child(odd) td {
    background: var(--cell-bg-2);
}

.thread-locked td {
    background-color: #d1d4e0 !important;
    opacity: 0.5;
}
.thread-locked .thread-link {
    color: #777;
    text-decoration: line-through;
}
.thread-locked .thread-desc, .thread-locked .stats-col, .thread-locked .last-post-col {
    color: #777;
}

.thread-level-locked td {
    opacity: 0.7;
    background-color: #f5f5ff !important;
}
.thread-level-locked .thread-link {
    color: #999;
    cursor: default;
    pointer-events: none;
}
.thread-level-locked .thread-desc {
    color: #999;
}

.thread-link {
    font-weight: bold;
    font-size: 14px;
}

.thread-desc {
    font-size: 11px;
    color: #555;
    margin-top: 3px;
}

/* Posts / Battle View */
.thread-title h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.post {
    border: 1px solid var(--box-border);
    margin-bottom: 10px;
    display: flex;
}

.post-user {
    width: 150px;
    background: var(--cell-bg-2);
    padding: 10px;
    text-align: center;
    border-right: 1px solid var(--box-border);
}

.post-user-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.post-avatar {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 1px solid #ccc;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.post-user-title {
    font-size: 10px;
    margin-bottom: 5px;
}

.post-user-stats {
    font-size: 10px;
    text-align: left;
    margin-top: 10px;
}

.post-content {
    flex: 1;
}

.post-header {
    background: #d1d4e0;
    padding: 5px 10px;
    font-size: 10px;
    border-bottom: 1px solid var(--box-border);
}

.post-body {
    padding: 15px;
    background: var(--cell-bg-1);
    min-height: 100px;
    font-size: 13px;
    line-height: 1.5;
}

.post-signature {
    border-top: 1px solid #ccc;
    margin-top: 20px;
    padding-top: 10px;
    font-size: 11px;
    color: #666;
}

.damage-indicator {
    color: red;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.combo-indicator {
    color: #ff9900;
    font-weight: bold;
}

.health-bar {
    width: 100%;
    height: 10px;
    background: #ddd;
    margin-top: 5px;
    border: 1px solid #999;
}

.health-fill {
    height: 100%;
    background: #2ecc71;
    transition: width 0.3s;
}

/* Quick Reply & Hands */
.quick-reply-section {
    position: relative;
    margin-top: 30px;
    border: 1px solid var(--box-border);
    background: var(--cell-bg-2);
}

.qr-header {
    background: var(--header-bg);
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
}

.qr-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.qr-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.battle-option {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    border-radius: 3px;
    transition: background 0.2s;
    font-size: 13px;
}

.battle-option:hover {
    background: #e6ebf1;
    border-color: var(--box-border);
}

.battle-option .op-type {
    font-weight: bold;
    display: inline-block;
    width: 100px;
}

/* Cartoon Hands & Keyboard */
.keyboard-area {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 300px;
    height: 150px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.9;
}

.keyboard-base {
    position: absolute;
    bottom: 0;
    width: 250px;
    height: 60px;
    background: #d8cba9; /* classic beige */
    border: 3px solid #b8a680;
    border-radius: 5px;
    transform: perspective(300px) rotateX(40deg);
    box-shadow: inset 0 5px 0 #ede4cc;
}

.keyboard-base::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    background: repeating-linear-gradient(90deg, #b8a680, #b8a680 15px, transparent 15px, transparent 20px),
                repeating-linear-gradient(0deg, #b8a680, #b8a680 15px, transparent 15px, transparent 20px);
    opacity: 0.5;
}

.cartoon-hands {
    position: absolute;
    bottom: 50px;
    width: 60px;
    height: 80px;
    background: #ffcc99;
    border: 3px solid #000;
    border-radius: 30px;
    transition: transform 0.1s;
}

.cartoon-hands::after {
    /* Fingers */
    content: '';
    position: absolute;
    bottom: -10px;
    left: 5px;
    width: 12px;
    height: 25px;
    background: #ffcc99;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 15px 0 0 -2px #ffcc99, 15px 0 0 0 #000,
                30px 0 0 -2px #ffcc99, 30px 0 0 0 #000;
}

.left-hand {
    left: 40px;
}

.right-hand {
    left: 140px;
}

.typing .left-hand {
    animation: typeLeft 0.2s infinite alternate;
}
.typing .right-hand {
    animation: typeRight 0.2s infinite alternate;
}

@keyframes typeLeft {
    0% { transform: translateY(0) rotate(5deg); }
    100% { transform: translateY(15px) rotate(-5deg); }
}

@keyframes typeRight {
    0% { transform: translateY(15px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(5deg); }
}

/* Stats */
.stats-box {
    margin-top: 20px;
    background: var(--cell-bg-2);
    border: 1px solid var(--box-border);
    padding: 10px;
    font-size: 11px;
}
.stats-box h3 { margin-top: 0; font-size: 12px; }

#footer {
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-top: 20px;
}
