/* Estilos base */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #2c2c2c;
    color: #e0e0e0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    width: 100%;
    max-width: 900px; /* Ancho máximo para el contenido principal, puedes ajustarlo */
    margin: 0 auto; /* Centrar */
    padding: 0 15px; /* Padding lateral para móviles */
    box-sizing: border-box;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ELIMINADOS: Estilos de .container para flex-direction: row y .sidebar */

.content-area {
    width: 100%;
    /* padding: 0px 15px 20px 15px; El padding ahora está en page-wrapper */
    background-color: #333; /* Fondo para el área de contenido principal */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.site-header {
    background-color: #222;
    padding: 1em;
    border-bottom: 1px solid #444;
    text-align: center;
    /* Los márgenes negativos ya no son necesarios si page-wrapper tiene padding */
    /* margin: 0 -15px 15px -15px; */
    margin-bottom: 15px;
}
.site-header h1 {
    margin: 0 0 0.5em 0;
    color: #eee;
    font-size: 1.5em; /* Restaurar tamaño si se redujo para móvil con sidebar */
}

#status-messages { margin-top: 10px; font-size: 0.9em; }
#status-messages .error { color: #ff6b6b; }
#status-messages .success { color: #69f0ae; }
#status-messages .info { color: #8ab4f8; }

.filter-info-container {
    margin-top: 10px;
    padding: 8px;
    background-color: #444;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9em;
}
#filter-info strong { color: #8ab4f8; }
#filter-info button {
    margin-left: 10px;
    padding: 4px 8px;
    font-size: 0.9em;
    background-color: #555;
    color: #ddd;
    border: 1px solid #666;
    border-radius: 3px;
    cursor: pointer;
}
#filter-info button:hover { background-color: #666; }

/* NUEVOS ESTILOS para la sección de hashtags */
.hashtags-section {
    padding: 10px 0 15px 0; /* Espaciado vertical */
    text-align: center; /* Centrar los hashtags */
    border-bottom: 1px solid #444; /* Línea separadora como en darch.dk */
    margin-bottom: 15px; /* Espacio antes del timeline */
}

#hashtag-cloud {
    line-height: 1.8;
    display: inline-block; /* Para que el text-align:center del padre funcione */
    text-align: left; /* Alinear el texto de los hashtags a la izquierda dentro de este bloque */
}

#hashtag-cloud .hashtag-item {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
    color: #9eb0c1;
    cursor: pointer;
    text-decoration: none;
    margin-right: 12px; /* Espacio entre hashtags */
    margin-bottom: 5px;
    display: inline-block;
}
#hashtag-cloud .hashtag-item:hover {
    color: #b8cfe2;
    text-decoration: underline;
}
#hashtag-cloud .hashtag-item.active-filter {
    color: #8ab4f8;
    font-weight: bold;
    text-decoration: underline;
}

#timeline-container {
    padding: 0;
    flex-grow: 1;
}
.placeholder-text { text-align: center; color: #888; font-style: italic; padding: 20px; }

.twt {
    background-color: #3a3a3a;
    border: 1px solid #4f4f4f;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px; /* Restaurar padding si se redujo */
    display: flex;
    align-items: flex-start;
}
.twt-avatar {
    width: 48px; /* Restaurar tamaño */
    height: 48px;
    border-radius: 50%;
    margin-right: 15px; /* Restaurar margen */
    object-fit: cover;
    background-color: #555;
    flex-shrink: 0;
}
.twt-content-wrapper { flex-grow: 1; min-width: 0; }
.twt-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px; /* Restaurar */
    flex-wrap: wrap;
    font-size: 1em; /* Restaurar */
}
.twt-author { font-weight: bold; color: #67c0f0; margin-right: 8px; }
.twt-author-url { font-size: 0.9em; color: #aaa; margin-right: 8px; word-break: break-all; }
.twt-timestamp { font-size: 0.9em; color: #999; white-space: nowrap; }
.twt-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #ccc;
    font-size: 1em; /* Restaurar */
}
.twt-text a { color: #8ab4f8; text-decoration: none; }
.twt-text a:hover { text-decoration: underline; }
.twt-text .hashtag-link { color: #9eb0c1; font-weight: normal; text-decoration: none; cursor: pointer; }
.twt-text .hashtag-link:hover { text-decoration: underline; color: #b8cfe2; }
.twt-text .mention { color: #f9a825; }

.pagination-controls {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #444;
    margin-top: auto;
}
.pagination-controls button {
    padding: 8px 15px; /* Restaurar */
    margin: 0 5px;
    background-color: #555;
    color: #ddd;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em; /* Restaurar */
}
.pagination-controls button:hover:not(:disabled) { background-color: #666; }
.pagination-controls button:disabled { background-color: #444; color: #777; cursor: not-allowed; }
.pagination-controls #page-info { margin: 0 10px; color: #bbb; font-size: 1em; }

footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    color: #777;
    background-color: #222;
    border-top: 1px solid #444;
}

/* Ya no se necesita la media query para cambiar el layout del sidebar, */
/* pero la mantenemos si queremos hacer otros ajustes responsivos para pantallas grandes vs pequeñas. */
/* Por ahora, la mayoría de los ajustes de tamaño para móvil se han integrado en los estilos base. */
@media (min-width: 768px) {
    .page-wrapper {
        padding: 0 20px; /* Mayor padding lateral en desktop */
    }
    /* Se pueden añadir otros estilos específicos para desktop aquí si son necesarios */
}