/* ============================================================================
   RADNEWS — карточки «Тезисы серии» в сайдбаре хабов-анонсов
   (/solovyov-anons-serii/, /prishvin-anons-serii/).
   mu-плагин radnews-series-hubcards; стиль — в духе стены /tezisy/
   (tech-theses.css): панель, амбер-планка, уголки-скобки на hover,
   тезис Georgia-italic, моно-кикеры. Токены — из tech.css (:root/html.rn-light).
   v1.0.0 · 05.12.2026
   ========================================================================== */

/* --------------------------------------------------------- шапка колонки */
.rn-hubc__series {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 0.8rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--rn-line-soft);
    text-decoration: none;
}

.rn-hubc__name {
    font-family: var(--rn-font-display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--rn-ink-bright);
    transition: color 0.3s ease;
}

a.rn-hubc__series:hover .rn-hubc__name { color: var(--rn-amber); }

.rn-hubc__meta {
    font-family: var(--rn-font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rn-muted);
}

/* --------------------------------------------------------------- карточки */
.rn-hubc__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rn-hubc__card {
    position: relative;
    display: block;
    border: 1px solid var(--rn-line);
    border-top: 2px solid var(--rn-amber);
    border-radius: 0 0 4px 4px;
    background: var(--rn-panel-2);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rn-hubc__card:hover {
    transform: translateY(-3px);
    border-color: var(--rn-amber);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.rn-hubc__card::before,
.rn-hubc__card::after {
    /* уголки-скобки на hover — как карточки стены /tezisy/ */
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--rn-amber);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rn-hubc__card::before { left: 5px; bottom: 5px; border-right: none; border-top: none; }
.rn-hubc__card::after { right: 5px; top: 5px; border-left: none; border-bottom: none; }
.rn-hubc__card:hover::before,
.rn-hubc__card:hover::after { opacity: 0.85; }

/* фото-полоса с вуалью: слева плотно (под чип «Часть N»), вправо — растворение */
.rn-hubc__strip {
    position: relative;
    display: block;
    height: 64px;
    background-size: cover;
    background-position: center 32%;
    background-color: var(--rn-panel);
}

.rn-hubc__strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 14, 17, 0.9), rgba(11, 14, 17, 0.55) 48%, rgba(11, 14, 17, 0.16));
}

.rn-hubc__strip--noimg {
    background-image: linear-gradient(135deg, #1e3a5f, #0093c2 55%, #2c5282); /* фирменный градиент no-image */
}

.rn-hubc__num {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-family: var(--rn-font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rn-amber);
    transition: color 0.3s ease;
}

.rn-hubc__read {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: none;
    font-family: var(--rn-font-mono);
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rn-green);
    border: 1px solid rgba(93, 211, 158, 0.55);
    border-radius: 3px;
    padding: 2px 6px;
    background: rgba(10, 18, 14, 0.62);
}

/* прочитанное (JS: localStorage rn_sp_v1 из radnews-series-progress) */
.rn-hubc__card--read .rn-hubc__read { display: inline-block; }
.rn-hubc__card--read .rn-hubc__num { color: var(--rn-green); }
.rn-hubc__card--read .rn-hubc__strip::after {
    background: linear-gradient(90deg, rgba(10, 18, 14, 0.92), rgba(10, 18, 14, 0.7) 48%, rgba(10, 18, 14, 0.3));
}

/* ------------------------------------------------------------ тело карточки */
.rn-hubc__body {
    display: block;
    padding: 0.75rem 0.85rem 0.8rem;
}

.rn-hubc__thesis {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--rn-ink-bright);
}

.rn-hubc__src {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0.6rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--rn-line-soft);
}

.rn-hubc__title {
    font-family: var(--rn-font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: var(--rn-muted);
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.rn-hubc__card:hover .rn-hubc__title { color: var(--rn-ink); }

.rn-hubc__go {
    flex: 0 0 auto;
    font-family: var(--rn-font-mono);
    font-size: 0.8rem;
    color: var(--rn-amber);
    transition: transform 0.3s ease;
}

.rn-hubc__card:hover .rn-hubc__go { transform: translateX(3px); }

/* --------------------------------------------------------- футер колонки */
.rn-hubc__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--rn-line-soft);
    font-family: var(--rn-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rn-hubc__foot a {
    color: var(--rn-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rn-hubc__foot a:hover { color: var(--rn-amber); }

/* длинные серии (8+ частей): плотная укладка */
.rn-hubc[data-dense="1"] .rn-hubc__list { gap: 8px; }
.rn-hubc[data-dense="1"] .rn-hubc__strip { height: 52px; }
.rn-hubc[data-dense="1"] .rn-hubc__thesis {
    -webkit-line-clamp: 3;
    font-size: 0.86rem;
}

/* ------------------------------------------------------------- светлая тема */
html.rn-light .rn-hubc__card { box-shadow: var(--rn-shadow); }
html.rn-light .rn-hubc__card:hover { box-shadow: 0 14px 30px rgba(23, 34, 46, 0.18); }

@media (prefers-reduced-motion: reduce) {
    .rn-hubc__card,
    .rn-hubc__num,
    .rn-hubc__title,
    .rn-hubc__go,
    .rn-hubc__name { transition: none; }
    .rn-hubc__card:hover { transform: none; }
}
