/* AV Magazine – RSS Feed Modern Style (Google News-like)
   Questo CSS completa lo XSL aggiungendo rifiniture, transizioni e dark-friendly colors.
*/

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #fafafa;
    color: #222;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color .15s ease, opacity .2s;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
    font-weight: 700;
}

img {
    border: 0;
    display: block;
}

/* Contenitore principale (già definito in XSL ma completato qui) */
body {
    padding: 24px;
}

/* Header */
header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

header .meta {
    color: #666;
    font-size: 13px;
}

/* Lista degli articoli */
.list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card singola */
.item {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px;
    align-items: flex-start;
    transition: transform .15s ease, box-shadow .2s ease;
}

.item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 9px rgba(0,0,0,0.07);
}

/* Thumbnail */
.thumb {
    flex: 0 0 120px;
    max-width: 120px;
}

.thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

/* Testo */
.content {
    flex: 1 1 auto;
    min-width: 0;
}

.title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.32;
}

.desc {
    color: #444;
    font-size: 15px;
    margin: 0 0 6px;
}

.footer {
    color: #777;
    font-size: 13px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: #f0f0f0;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

/* Mobile improvements */
@media (max-width: 520px) {
    .thumb {
        flex-basis: 96px;
    }
    .thumb img {
        width: 96px;
        height: 64px;
    }
    .title {
        font-size: 17px;
    }
}

.rss-view main {
    max-width: 960px;
    margin: 0 auto;
    overflow-wrap: anywhere;
}

.rss-view header a {
    text-decoration: underline;
}

@media (max-width: 360px) {
    .rss-view { padding: 12px; }
    .rss-view .item { gap: 10px; }
    .rss-view .thumb { flex-basis: 72px; }
    .rss-view .thumb img { width: 72px; height: 54px; }
}
