/* Estilos base (comunes a todos los tamaños) */
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;
}

.container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar {
    width: 100%;
    background-color: #222;
    padding: 15px;
    border-bottom: 1px solid #444;
    overflow-y: visible;
    color: #ccc;
    box-sizing: border-box;
}

.sidebar h2 {
    color: #eee;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px; /* Espacio después del título */
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}
/* Eliminamos el hr, ya no es necesario */

#hashtag-cloud {
    /* No se necesita display:flex aquí si los items son inline-block */
    line-height: 1.8; /* Para dar espacio si los hashtags se envuelven en varias líneas */
}

#hashtag-cloud .hashtag-item {
    /* Estilo similar a darch.dk */
    background-color: transparent;
    padding: 0; /* Sin padding extra */
    border-radius: 0; /* Sin bordes redondeados */
    font-size: 0.9em; /* Un poco más grande que antes para legibilidad */
    color: #9eb0c1;  /* Un color azulado/grisáceo como en darch.dk */
    cursor: pointer;
    text-decoration: none;
    margin-right: 10px; /* Espacio entre hashtags */
    margin-bottom: 5px; /* Espacio si se envuelven */
    display: inline-block; /* Para que fluyan y se espacien con margin */
}

#hashtag-cloud .hashtag-item:hover {
    color: #b8cfe2; /* Un poco más claro al pasar el ratón */
    text-decoration: underline;
}

#hashtag-cloud .hashtag-item.active-filter {
    color: #8ab4f8; /* Color más brillante para el filtro activo, como los enlaces */
    font-weight: bold;
    text-decoration: underline; /* Subrayado para el activo */
}


.content-area { /* ... (sin cambios significativos, puede permanecer como antes) ... */
    width: 100%;
    padding: 0px 15px 20px 15px;
    background-color: #333;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}


.site-header { /* ... (sin cambios significativos) ... */
    background-color: #222;
    padding: 1em;
    border-bottom: 1px solid #444;
    text-align: center;
    margin: 0 -15px 15px -15px;
}
.site-header h1 { margin: 0 0 0.5em 0; color: #eee; font-size: 1.3em; }

#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 { /* ... (sin cambios significativos) ... */
    margin-top: 10px;
    padding: 8px;
    background-color: #444;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85em;
}
#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; }

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

.twt { /* ... (sin cambios significativos) ... */
    background-color: #3a3a3a;
    border: 1px solid #4f4f4f;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: flex-start;
}
.twt-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; 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: 5px; flex-wrap: wrap; font-size: 0.9em; }
.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: 0.95em; }
.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; } /* Heredar color de .hashtag-item */
.twt-text .hashtag-link:hover { text-decoration: underline; color: #b8cfe2; }
.twt-text .mention { color: #f9a825; }

.pagination-controls { /* ... (sin cambios significativos) ... */
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #444;
    margin-top: auto;
}
.pagination-controls button { padding: 8px 12px; margin: 0 5px; background-color: #555; color: #ddd; border: 1px solid #666; border-radius: 4px; cursor: pointer; font-size: 0.9em; }
.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: 0.9em; }

footer { /* ... (sin cambios significativos) ... */
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    color: #777;
    background-color: #222;
    border-top: 1px solid #444;
}

/* === Media Query para pantallas más grandes (Tablets y Escritorio) === */
@media (min-width: 768px) {
    .container { flex-direction: row; }
    .sidebar {
        width: 280px;
        flex-shrink: 0;
        border-right: 1px solid #444;
        border-bottom: none;
        overflow-y: auto;
        max-height: calc(100vh - 40px); /* Ajusta 40px a la altura de tu footer */
    }
    .content-area { width: auto; padding: 0px 20px 20px 20px; }
    .site-header { margin: 0 -20px 15px -20px; }
    .site-header h1 { font-size: 1.5em; }
    .filter-info-container { font-size: 0.9em; }
    .twt { padding: 15px; }
    .twt-avatar { width: 48px; height: 48px; margin-right: 15px; }
    .twt-header { font-size: 1em; margin-bottom: 8px; }
    .twt-text { font-size: 1em; }
    .pagination-controls button { padding: 8px 15px; font-size: 1em; }
    .pagination-controls #page-info { font-size: 1em; }
}