/* Blog details — solo gli stili SPECIFICI del blog (cover, downloads box,
   content, preview overlay). Le quick-actions, il bottom sheet, i tab e
   tutto il layout principale riusano le classi globali .tt-vd-* definite
   in ui-components.css + platform-extras.css (stessa identica grafica di
   /video/{id}). */

/* Cover image — sostituisce il player video. Adatta al sizing
   richiesto da .tt-vd-player (flex:1, min-width:0) ereditato dal pattern
   .tt-vd-player-row .tt-vd-player. */
.tt-bd-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: hsla(var(--surface-1, 0 0% 8%) / 0.6);
}
.tt-bd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Meta sotto al titolo (data + autore) */
.tt-bd-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}
.tt-bd-meta li { display: inline-block; }

/* Downloads box (al posto della "next video card") */
.tt-bd-downloads { margin-bottom: 18px; }
.tt-bd-downloads__primary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: hsla(var(--surface-2, 0 0% 10%) / 0.6);
    border: 1px solid hsla(var(--gold) / 0.4);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}
.tt-bd-downloads__primary:hover {
    background: hsla(var(--surface-3, 0 0% 14%) / 0.8);
    border-color: hsl(var(--gold));
    transform: translateY(-1px);
}
.tt-bd-downloads__format {
    background: hsl(var(--gold));
    color: hsl(var(--gold-ink, 0 0% 10%));
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.tt-bd-downloads__info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt-bd-downloads__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: hsl(var(--gold));
}
.tt-bd-downloads__title {
    margin: 0;
    font-size: 16px;
    color: #fff;
    overflow-wrap: break-word;
}
.tt-bd-downloads__size { font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.tt-bd-downloads__chev {
    color: hsl(var(--gold));
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.tt-bd-downloads__chev svg { width: 100%; height: 100%; }

.tt-bd-downloads__more {
    margin-top: 12px;
    padding: 14px 16px;
    background: hsla(var(--surface-1, 0 0% 8%) / 0.6);
    border: 1px solid hsl(var(--hairline));
    border-radius: 12px;
}
.tt-bd-downloads__more-title {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}
.tt-bd-downloads__more ul { list-style: none; padding: 0; margin: 0; }
.tt-bd-downloads__more li { border-top: 1px solid hsl(var(--hairline)); }
.tt-bd-downloads__more li:first-child { border-top: 0; }
.tt-bd-downloads__more a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: inherit;
    text-decoration: none;
}
.tt-bd-downloads__small-format {
    background: hsla(var(--surface-3, 0 0% 14%) / 1);
    color: hsl(var(--gold));
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}
.tt-bd-downloads__small-name { flex: 1; font-size: 14px; }
.tt-bd-downloads__small-size { font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* Content body */
.tt-bd-content {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}
.tt-bd-content p { margin-bottom: 16px; }
.tt-bd-content h2, .tt-bd-content h3 { margin: 32px 0 12px; color: #fff; }
.tt-bd-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.tt-bd-content a { color: hsl(var(--gold)); }

.tt-bd-tags {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.tt-bd-tags strong { font-size: 13px; color: rgba(255, 255, 255, 0.4); margin-right: 6px; }
.tt-bd-tag {
    padding: 4px 10px;
    background: hsla(var(--surface-1, 0 0% 8%) / 0.6);
    border: 1px solid hsl(var(--hairline));
    border-radius: 14px;
    font-size: 12px;
}

/* Preview overlay (gating) */
.tt-bd-preview { margin-top: 32px; }
.tt-bd-preview__overlay {
    padding: 48px 24px;
    text-align: center;
    background: hsla(var(--surface-1, 0 0% 8%) / 0.6);
    border: 1px solid hsl(var(--hairline));
    border-radius: 14px;
}
.tt-bd-preview__overlay h3 { margin-bottom: 8px; }
.tt-bd-preview__overlay p { color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; }

@media (max-width: 991px) {
    .tt-bd-downloads__primary { padding: 12px; gap: 12px; }
    .tt-bd-downloads__title { font-size: 15px; }
    .tt-bd-downloads__format { padding: 8px 10px; font-size: 12px; }
}
