/* assets/css/modern_forum.css */
:root {
    --bg-main: #0f1115;       /* Fondo oscuro profundo */
    --bg-surface: #161920;    /* Superficie de tarjetas y filas */
    --bg-header: #0a0b0d;     /* Encabezado fijo superior */
    
    --border-color: #242936;  /* Líneas divisorias minimalistas */
    
    --text-primary: #f0f3f8;  /* Texto de alta legibilidad */
    --text-muted: #8a96a8;     /* Descripciones y metadatos secundarios */
    
    --accent: #006699;         /* Azul clásico de enlaces recuperado de FSDark */[cite: 1, 2]
    --accent-hover: #1a8cff;   /* Iluminación interactiva moderna */
    --accent-vlink: #5493b4;   /* Enlaces visitados tradicionales */[cite: 1, 2]
    
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Encabezado Estilo Tablero Moderno */
.app-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.icon-logo {
    fill: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent-hover);
}

/* Área de Visualización Principal */
.app-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.forum-section {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.section-header {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Estructura GRID para Filas del Tablero */
.board-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.board-row:last-child {
    border-bottom: none;
}

.board-row:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.board-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon svg {
    fill: var(--text-muted);
}

.board-row:hover .status-icon svg {
    fill: var(--accent-hover);
}

.board-details h3 a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.board-details h3 a:visited {
    color: var(--accent-vlink);[cite: 1, 2]
}

.board-details h3 a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.board-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.board-stats {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.board-stats strong {
    color: var(--text-primary);
}

.board-last-post {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    text-align: right;
    color: var(--text-muted);
}

.board-last-post .last-post-time {
    color: var(--text-primary);
    font-weight: 500;
}

/* Control Responsivo de la Grilla */
@media (max-width: 768px) {
    .board-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .board-stats {
        flex-direction: row;
        gap: 1rem;
    }
    .board-last-post {
        text-align: left;
    }
}