/* ===================================
   北校 SAWAYAKA 掲示板 — Estilos
   =================================== */

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #728799;
    background-image: repeating-linear-gradient(
        to bottom,
        #728799, #728799 2px,
        #869ab1 2px, #869ab1 4px
    );
    font-family: 'MS PGothic', 'Hiragino Kaku Gothic Pro', 'Arial', sans-serif;
    color: #333;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* --- Marco de ventana --- */
.window-frame {
    width: 100%;
    max-width: 950px;
    background-color: #752528;
    padding-top: 15px;
    border: 2px solid #5a748c;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.bbs-container {
    width: 100%;
    background-color: #a1b34c;
    padding: 25px 35px 30px 35px;
    display: flex;
    flex-direction: column;
    border: 1px solid #8e9e43;
}

/* --- Cabecera en forma de L --- */
.bbs-top-row {
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.eye-tab {
    background-color: #def1b1;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

/* Curva cóncava de conexión interior */
.inverted-corner {
    position: absolute;
    bottom: 0;
    right: -15px;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 100% 0%, transparent 15px, #def1b1 15.5px);
}

/* --- Logo del Ojo --- */
.eye-logo {
    width: 105px;
    height: 105px;
    background-color: #8ca641;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

/* --- Sección de título --- */
.title-section {
    padding: 5px 0 25px 25px;
    flex-grow: 1;
}

.bbs-title {
    background-color: #f7fdf0;
    padding: 8px 25px;
    border-radius: 10px;
    font-size: 26px;
    font-weight: bold;
    color: #4b612d;
    letter-spacing: 2px;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.bbs-description {
    margin-top: 15px;
    font-size: 11px;
    color: #cc0000;
    line-height: 2.2;
    letter-spacing: 1px;
    font-weight: bold;
}

/* --- Área de contenido principal --- */
.bbs-content {
    background-color: #def1b1;
    flex-grow: 1;
    border-radius: 0 12px 12px 12px;
    padding: 30px 40px;
    min-height: 400px;
    position: relative;
    z-index: 1;
    margin-top: -1px;
}

/* --- Lista de hilos --- */
#thread-list-view {
    font-size: 14px;
    line-height: 2.2;
    color: #555;
    text-align: justify;
    word-break: break-all;
}

.thread-item {
    margin-right: 15px;
    display: inline-block;
    white-space: nowrap;
}

.thread-link {
    color: #333;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}

.thread-link:hover {
    color: #0000ee;
    text-decoration: underline;
}

/* --- Vista de detalle del hilo --- */
#thread-detail-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.back-btn {
    background-color: #c4d96c;
    border: 1px solid #9fb356;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 20px;
    color: #333;
    border-radius: 3px;
}

.back-btn:hover {
    background-color: #a8bd4a;
}

.thread-header-title {
    font-size: 20px;
    color: #cc0000;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

/* --- Posts individuales --- */
.post {
    margin-bottom: 25px;
    font-size: 14px;
}

.post-header {
    color: #008000;
    margin-bottom: 5px;
}

.post-name {
    font-weight: bold;
}

.post-date,
.post-id {
    color: #666;
    font-weight: normal;
}

.post-body {
    margin-left: 2em;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

.post-body.savior-text {
    color: #6b1f24;
    font-weight: bold;
}

.post-body a {
    color: #0000ee;
    text-decoration: underline;
}

/* --- Animaciones --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
