/* ──────────────────────────────────────────
   EIA 2026 Uudised Plugin – Styles
   Matches kogu.ee brand colours
────────────────────────────────────────── */

.eia2026-wrapper {
    --peach:       #F0C4A0;
    --peach-light: #FAE8D6;
    --peach-mid:   #E8A87C;
    --orange:      #D4722A;
    --orange-dk:   #B85E1E;
    --brown:       #3D2B1F;
    --text:        #2A1F17;
    --muted:       #8A6E5E;
    --white:       #FFFDF9;
    --line:        #E0C4AD;

    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

/* ── Header ── */
.eia2026-header { margin-bottom: 40px; }

.eia2026-tag {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 2px;
    margin-bottom: 14px;
}

.eia2026-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 600;
    color: var(--brown);
    line-height: 1.15;
    margin: 0 0 10px;
}

.eia2026-desc {
    font-size: 14.5px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.65;
    max-width: 500px;
    margin: 0;
}

/* ── Filters ── */
.eia2026-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.eia2026-filter-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-right: 4px;
}

.eia2026-filter {
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .18s ease;
    line-height: 1;
}

.eia2026-filter:hover {
    border-color: var(--peach-mid);
    color: var(--brown);
}

.eia2026-filter.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* ── Month block ── */
.eia2026-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eia2026-month-block {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    opacity: 0;
    transform: translateY(14px);
    animation: eia2026FadeUp .45s ease forwards;
}

@keyframes eia2026FadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger animation per child */
.eia2026-month-block:nth-child(1)  { animation-delay: .04s; }
.eia2026-month-block:nth-child(2)  { animation-delay: .09s; }
.eia2026-month-block:nth-child(3)  { animation-delay: .14s; }
.eia2026-month-block:nth-child(4)  { animation-delay: .19s; }
.eia2026-month-block:nth-child(5)  { animation-delay: .24s; }
.eia2026-month-block:nth-child(6)  { animation-delay: .29s; }
.eia2026-month-block:nth-child(7)  { animation-delay: .34s; }
.eia2026-month-block:nth-child(8)  { animation-delay: .39s; }
.eia2026-month-block:nth-child(9)  { animation-delay: .44s; }
.eia2026-month-block:nth-child(10) { animation-delay: .49s; }

/* Future = orange header */
.eia2026-month-block.is-future .eia2026-month-header {
    background: var(--orange);
    color: var(--white);
}
.eia2026-month-block.is-future .eia2026-count {
    background: rgba(255,255,255,.22);
    color: var(--white);
}
.eia2026-month-block.is-future .eia2026-future-label { opacity: .9; }

/* Current = same peach as past */
.eia2026-month-block.is-current .eia2026-month-header {
    background: var(--peach);
    color: var(--brown);
}
.eia2026-month-block.is-current .eia2026-count {
    background: rgba(61,43,31,.12);
    color: var(--brown);
}

/* Past = peach header */
.eia2026-month-block.is-past .eia2026-month-header {
    background: var(--peach);
    color: var(--brown);
}
.eia2026-month-block.is-past .eia2026-count {
    background: rgba(61,43,31,.12);
    color: var(--brown);
}

/* Month header button */
.eia2026-month-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    cursor: pointer;
    border: none;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    transition: opacity .15s;
}

.eia2026-month-header:hover { opacity: .88; }

.eia2026-month-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.eia2026-month-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
}

.eia2026-month-year {
    font-size: 13px;
    font-weight: 400;
    opacity: .7;
}

.eia2026-month-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eia2026-future-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .85;
}

.eia2026-count {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: .03em;
}

.eia2026-toggle {
    font-size: 16px;
    display: inline-block;
    transition: transform .25s ease;
}

/* Collapsed state */
.eia2026-month-block.collapsed .eia2026-toggle {
    transform: rotate(-90deg);
}

.eia2026-news-list {
    background: var(--white);
    overflow: hidden;
    max-height: 9999px;
    transition: max-height .35s ease;
}

.eia2026-month-block.collapsed .eia2026-news-list {
    max-height: 0;
}

/* ── News rows ── */
.eia2026-news-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: stretch;
    border-top: 1px solid #F0E4D8;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    position: relative;
}

.eia2026-news-row:hover { background: #FEF7F0; }

.eia2026-news-row.is-today {
    border-left: 3px solid var(--orange);
}

/* Date column */
.eia2026-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border-right: 1px solid #F0E4D8;
    background: #FDFAF7;
    flex-shrink: 0;
}

.eia2026-news-row.is-today .eia2026-date-col {
    background: #FEF3EA;
}

.eia2026-day {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--brown);
    line-height: 1;
    display: block;
}

.eia2026-news-row.is-future-row .eia2026-day { color: var(--orange); }

.eia2026-weekday {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
    display: block;
}

/* News body */
.eia2026-news-body {
    padding: 14px 20px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.eia2026-news-text { min-width: 0; }

.eia2026-source {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--orange-dk);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.eia2026-news-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
}

.eia2026-news-row:hover .eia2026-news-title { color: var(--brown); }

.eia2026-today-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.eia2026-arrow {
    color: var(--line);
    font-size: 14px;
    flex-shrink: 0;
    transition: all .15s;
}

.eia2026-news-row:hover .eia2026-arrow {
    color: var(--orange);
    transform: translateX(3px);
}

/* Hidden by filter */
.eia2026-month-block[data-hidden="true"] { display: none; }

/* ── Footer ── */
.eia2026-footer {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 10px;
}

.eia2026-back-top {
    background: none;
    border: 1.5px solid var(--line);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .18s;
}

.eia2026-back-top:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .eia2026-wrapper { padding: 32px 14px 48px; }
    .eia2026-news-row { grid-template-columns: 52px 1fr; }
    .eia2026-day { font-size: 18px; }
    .eia2026-news-title { font-size: 13px; }
    .eia2026-arrow { display: none; }
    .eia2026-news-body { padding: 12px 14px; }
    .eia2026-month-header { padding: 12px 16px; }
    .eia2026-month-name { font-size: 17px; }
}
