/*
 * TSO Widget RSS Notícies — Frontend CSS
 * v3.0.1
 */

/* ── Llista principal ── */
.twrn-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.twrn-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.twrn-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Thumbnail ── */
.twrn-thumb-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.twrn-thumb {
    display: block;
    border-radius: 4px;
    object-fit: cover;
    background: #f0f0f0;
}

/* ── Contingut ── */
.twrn-content {
    flex: 1;
    min-width: 0; /* evita overflow en flex */
}

/* ── Títol / enllaç ── */
.twrn-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e73be;
    text-decoration: none;
    word-break: break-word;
    transition: color .15s ease;
}

.twrn-title:hover,
.twrn-title:focus {
    color: #d6993a;
    text-decoration: underline;
}

/* ── Meta (data · hora · autor) ── */
.twrn-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: 11px;
    color: #888;
}

.twrn-sep {
    color: #ccc;
}

.twrn-date,
.twrn-time,
.twrn-author {
    white-space: nowrap;
}

/* ── Resum ── */
.twrn-summary {
    margin: 4px 0 0;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    word-break: break-word;
}

/* ── Text introductori ── */
.twrn-intro {
    margin: 0 0 10px;
    font-size: 13px;
    color: #555;
}

/* ── Estats d'error / buit ── */
.twrn-error,
.twrn-empty {
    margin: 0;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.twrn-error {
    background: #fff0f0;
    color: #c0392b;
    border-left: 3px solid #e74c3c;
}

.twrn-empty {
    background: #f9f9f9;
    color: #888;
    border-left: 3px solid #ddd;
}
