/* ═══════════════════════════════════════
   BBS MODE
   Bulletin Board System aesthetic
   Same HTML, rendered as ASCII menus + posts
   ═══════════════════════════════════════ */

/* Hide standard web chrome */
#site-header { display: none; }
#site-footer { display: none; }
main { display: none; }

/* ═══ BBS SCREEN ═══ */

/* Show BBS output container */
#bbs-output {
    display: block;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    padding-bottom: 64px;
    min-height: 100vh;
    background: #000;
}

/* ═══ BBS INPUT BAR ═══ */

#bbs-input-bar {
    display: flex;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    z-index: 100;
    background: #000;
    border-top: 2px solid var(--primary);
    padding: 0 24px;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
}

.bbs-prompt {
    font-family: var(--font);
    font-size: 0.55rem;
    color: var(--warn);
    white-space: nowrap;
}

#bbs-input {
    flex: 1;
    font-family: var(--font);
    font-size: 0.55rem;
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    caret-color: var(--warn);
}

/* ═══ BBS OUTPUT STYLING ═══ */

.bbs-line {
    font-family: var(--font);
    font-size: 0.55rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.bbs-cyan { color: #00cccc; }
.bbs-yellow { color: var(--warn); }
.bbs-green { color: var(--accent); }
.bbs-red { color: var(--danger); }
.bbs-magenta { color: #cc44cc; }
.bbs-white { color: #ffffff; }
.bbs-blue { color: var(--secondary); }
.bbs-gray { color: var(--muted); }

.bbs-header {
    color: #00cccc;
    text-shadow: 0 0 10px rgba(0,204,204,0.3);
    margin-bottom: 8px;
}

.bbs-box {
    border: 2px solid var(--primary);
    padding: 16px;
    margin: 16px 0;
}

.bbs-menu-item {
    display: block;
    font-family: var(--font);
    font-size: 0.55rem;
    color: var(--text);
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.1s;
}

.bbs-menu-item:hover {
    color: var(--warn);
}

.bbs-menu-item .bbs-key {
    color: var(--warn);
    font-weight: bold;
}

.bbs-divider {
    border: none;
    border-top: 1px solid var(--primary);
    margin: 12px 0;
    opacity: 0.4;
}

/* ═══ BBS ANIMATION ═══ */

@keyframes bbsCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.bbs-cursor::after {
    content: '█';
    animation: bbsCursor 0.8s step-end infinite;
    color: var(--warn);
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 768px) {
    [data-mode="bbs"] main {
        padding: 16px;
    }

    #bbs-input-bar {
        padding: 0 16px;
    }
}
