/* ============================================================
   LIBRUM v3 — „enterprise" sloj preko librum-home.css
   Reference: DC (belo, korice bez kutija) + B&N (police, promo)
   + PRH (editorial hero, kurirane liste, korporativni footer)
   + Ineduco (cena-bedž na korici, žanr čip) + Komuna (prodavci)
   Fontovi: Seatren (display), Kurdis Cond/Wide (naslovi/labele),
   JUST Sans (UI/tekst). Učitava se POSLE librum-home.css.
   ============================================================ */

/* ---------- Fontovi ---------- */
@font-face { font-family: 'Seatren'; src: url('/fonts/librum/Seatren.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Seatren'; src: url('/fonts/librum/Seatren Italic.woff2') format('woff2'); font-style: italic; font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Kurdis Cond'; src: url('/fonts/librum/Kurdis-CondensedBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Kurdis Cond'; src: url('/fonts/librum/Kurdis-CondensedExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Kurdis Cond'; src: url('/fonts/librum/Kurdis-CondensedBlack.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Kurdis Wide'; src: url('/fonts/librum/Kurdis-WideSemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Kurdis Wide'; src: url('/fonts/librum/Kurdis-WideBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JUST Sans'; src: url('/fonts/librum/JUST Sans Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JUST Sans'; src: url('/fonts/librum/JUST Sans Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JUST Sans'; src: url('/fonts/librum/JUST Sans SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JUST Sans'; src: url('/fonts/librum/JUST Sans Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JUST Sans'; src: url('/fonts/librum/JUST Sans ExBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* ---------- Tokeni (gaze stare vrednosti) ---------- */
:root {
    --lb-serif: 'Libre Baskerville', Georgia, serif;
    --lb-sans: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lb-display: 'Libre Baskerville', Georgia, serif;
    --lb-cond: 'Libre Baskerville', 'Arial Narrow', sans-serif;
    --lb-wide: 'Libre Franklin', 'Verdana', sans-serif;
    --lb-sand: #F2ECDF;
    --lb-terracotta: #B4553A;
}

/* Kondenzovani naslovi sekcija (DC/B&N energija) */
.lb-v3 .lb-h2 {
    font-family: var(--lb-cond);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: .95;
}
.lb-v3 .lb-overline {
    font-family: var(--lb-wide);
    font-weight: 600;
    letter-spacing: .3em;
    font-size: 11px;
}

/* ---------- Promo traka (B&N rotacija) ---------- */
.lb-v3 .lb-topbar__promo { position: relative; overflow: hidden; height: 20px; min-width: 320px; }
.lb-v3 .lb-topbar__promo > span {
    position: absolute; inset: 0;
    display: inline-flex; align-items: center; gap: 7px;
    opacity: 0; transform: translateY(8px);
    animation: lb3-promo 15s infinite;
    white-space: nowrap;
}
.lb-v3 .lb-topbar__promo > span:nth-child(2) { animation-delay: 5s; }
.lb-v3 .lb-topbar__promo > span:nth-child(3) { animation-delay: 10s; }
.lb-v3 .lb-topbar__promo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@keyframes lb3-promo {
    0% { opacity: 0; transform: translateY(8px); }
    3%, 30% { opacity: 1; transform: translateY(0); }
    33%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* ---------- HERO v3 (PRH editorial) ---------- */
.lb3-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 4vw, 56px); background: linear-gradient(180deg, #fff 0%, var(--lb-bg) 100%); }
.lb3-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.lb3-hero__text h1 {
    font-family: var(--lb-display);
    font-size: clamp(44px, 5.6vw, 88px);
    line-height: .98;
    margin: 14px 0 18px;
    letter-spacing: -.01em;
}
.lb3-hero__text h1 em { font-style: italic; color: var(--lb-petrol); margin-right: .12em; }
.lb3-hero__text > p { font-size: clamp(15px, 1.3vw, 18px); color: var(--lb-muted); max-width: 46ch; line-height: 1.55; margin: 0 0 26px; }
.lb3-hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lb3-hero__meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 13px; color: var(--lb-muted); }
.lb3-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.lb3-hero__meta svg { color: var(--lb-petrol); }

/* Kolaž korica (PRH desna strana) */
.lb3-collage { position: relative; height: clamp(320px, 34vw, 470px); }
.lb3-collage::before {
    content: '';
    position: absolute; inset: 6% 2% 2% 6%;
    background: radial-gradient(120% 120% at 70% 20%, var(--lb-petrol-tint) 0%, var(--lb-sand) 100%);
    border-radius: 36px;
}
.lb3-collage a { position: absolute; display: block; box-shadow: var(--lb-shadow-lg); border-radius: 6px; transition: transform .35s ease; }
.lb3-collage a:hover { transform: translateY(-8px) rotate(0deg) !important; z-index: 9 !important; }
.lb3-collage .lb-cover { width: clamp(120px, 12.5vw, 175px); height: auto; aspect-ratio: 2 / 3; }
.lb3-collage a:nth-child(1) { left: 4%; top: 16%; transform: rotate(-7deg); z-index: 2; }
.lb3-collage a:nth-child(2) { left: 30%; top: 4%; transform: rotate(2deg); z-index: 3; }
.lb3-collage a:nth-child(3) { left: 56%; top: 20%; transform: rotate(7deg); z-index: 4; }
.lb3-collage a:nth-child(4) { left: 32%; top: 44%; transform: rotate(-3deg); z-index: 5; }

/* ---------- Polica-karusel (B&N shelf) ---------- */
.lb3-shelf { padding: clamp(30px, 4vw, 54px) 0; }
.lb3-shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.lb3-rail-wrap { position: relative; }
.lb3-rail {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: clamp(150px, 12.5vw, 180px);
    gap: clamp(18px, 2vw, 30px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 2px 18px;
    scrollbar-width: none;
}
.lb3-rail::-webkit-scrollbar { display: none; }
.lb3-rail > * { scroll-snap-align: start; }
.lb3-rail-btn {
    position: absolute; top: 34%; z-index: 6;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--lb-surface); color: var(--lb-ink);
    border: 1px solid var(--lb-line);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--lb-shadow);
    transition: all .2s;
}
.lb3-rail-btn:hover { background: var(--lb-petrol); color: #fff; border-color: var(--lb-petrol); }
.lb3-rail-btn--prev { left: -18px; }
.lb3-rail-btn--next { right: -18px; }
@media (max-width: 760px) { .lb3-rail-btn { display: none; } }

/* ---------- Kartica v3 (Ineduco: cena-bedž, čip, bez kutije) ---------- */
.lb-v3 .lb-card { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
.lb-v3 .lb-card__media { border-radius: 8px; }
.lb-v3 .lb-card .lb-cover { border-radius: 6px; box-shadow: 0 6px 22px rgba(24, 21, 17, .13); transition: transform .3s ease, box-shadow .3s ease; }
.lb-v3 .lb-card:hover .lb-cover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(24, 21, 17, .2); }
.lb3-pricetag {
    position: absolute; right: 8px; bottom: 8px; z-index: 3;
    display: inline-flex; align-items: baseline; gap: 6px;
    background: var(--lb-surface); color: var(--lb-ink);
    font-family: var(--lb-sans); font-weight: 700; font-size: 13.5px;
    padding: 5px 9px; border-radius: 7px;
    box-shadow: 0 4px 14px rgba(24, 21, 17, .18);
    pointer-events: none;
}
.lb3-pricetag--sale { background: var(--lb-petrol); color: #fff; }
.lb3-pricetag s { font-weight: 500; font-size: 11px; opacity: .72; }
.lb-v3 .lb-card__cat {
    display: inline-block;
    font-family: var(--lb-wide); font-weight: 600; font-size: 9.5px;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--lb-petrol);
    border: 1px solid var(--lb-line);
    border-radius: var(--lb-pill);
    padding: 3px 9px; margin: 12px 0 7px;
    background: var(--lb-surface);
}
.lb-v3 .lb-card__title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.lb-v3 .lb-card__author { font-size: 12.5px; }
.lb-v3 .lb-card__addrow { margin-top: 10px; }
.lb3-add {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--lb-sans); font-weight: 600; font-size: 12.5px;
    color: var(--lb-ink);
    border: 1px solid var(--lb-line); border-radius: var(--lb-pill);
    padding: 7px 14px; background: var(--lb-surface);
    transition: all .2s;
}
.lb3-add:hover { background: var(--lb-petrol); border-color: var(--lb-petrol); color: #fff; }
/* staru cenu u telu kartice v3 sklanja (cena je na korici) */
.lb-v3 .lb-card__price { display: none; }
.lb-v3 .lb-card__wish {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--lb-surface); color: var(--lb-ink);
    box-shadow: 0 4px 14px rgba(24, 21, 17, .16);
    opacity: 0; transform: translateY(-4px);
    transition: all .25s;
}
.lb-v3 .lb-card:hover .lb-card__wish { opacity: 1; transform: translateY(0); }
.lb-v3 .lb-card__wish:hover { background: var(--lb-terracotta); color: #fff; }
@media (hover: none) { .lb-v3 .lb-card__wish { opacity: 1; transform: none; } }

/* ---------- Tabovi (restilizacija) ---------- */
.lb-v3 .lb-tabs__nav label {
    font-family: var(--lb-cond); font-weight: 800; text-transform: uppercase;
    font-size: clamp(19px, 2vw, 27px); letter-spacing: .015em;
}

/* ---------- Kurirane liste (PRH Recommended) ---------- */
.lb3-lists { padding: clamp(30px, 4vw, 56px) 0; }
.lb3-lists__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: 26px; }
.lb3-list {
    position: relative; display: block;
    border-radius: 26px; padding: clamp(22px, 2.4vw, 34px);
    min-height: 240px; overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.lb3-list:hover { transform: translateY(-5px); box-shadow: var(--lb-shadow-lg); }
.lb3-list--a { background: var(--lb-petrol-tint); }
.lb3-list--b { background: var(--lb-sand); }
.lb3-list--c { background: #EFE3DD; }
.lb3-list__kicker { display: block; font-family: var(--lb-wide); font-weight: 600; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--lb-petrol); }
.lb3-list__title {
    display: block;
    font-family: var(--lb-cond); font-weight: 900; text-transform: uppercase;
    font-size: clamp(24px, 2.4vw, 34px); line-height: .95;
    margin: 10px 0 6px; color: var(--lb-ink); max-width: 7em;
}
.lb3-list__count { display: block; font-size: 13px; color: var(--lb-muted); max-width: 14em; }
.lb3-list__cta { position: relative; z-index: 4; }
.lb3-list__covers { position: absolute; right: -16px; bottom: -34px; display: flex; }
.lb3-list__covers .lb-cover { width: 92px; aspect-ratio: 2 / 3; height: auto; border-radius: 4px; box-shadow: var(--lb-shadow); }
.lb3-list__covers > span { display: block; position: relative; }
.lb3-list__covers > span:nth-child(1) { transform: rotate(-9deg) translate(26px, 16px); }
.lb3-list__covers > span:nth-child(2) { transform: rotate(2deg) translate(10px, 4px); z-index: 2; }
.lb3-list__covers > span:nth-child(3) { transform: rotate(10deg); z-index: 3; }
.lb3-list__cta {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 14px; font-weight: 600; font-size: 13.5px; color: var(--lb-ink);
}
@media (max-width: 900px) { .lb3-lists__grid { grid-template-columns: 1fr; } .lb3-list { min-height: 190px; } }

/* ---------- Marketplace band (Komuna/Ineduco „postani prodavac") ---------- */
.lb3-market { background: var(--lb-petrol-dark); color: #fff; padding: clamp(44px, 6vw, 84px) 0; margin: clamp(30px, 4vw, 56px) 0 0; }
.lb3-market__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.lb3-market .lb-overline { color: #E0CFA8; }
.lb3-market__title {
    font-family: var(--lb-cond); font-weight: 900; text-transform: uppercase;
    font-size: clamp(34px, 4vw, 58px); line-height: .93; margin: 12px 0 16px; color: #fff;
}
.lb3-market__sub { color: #E3DCC8; font-size: 15.5px; line-height: 1.55; max-width: 46ch; margin: 0 0 26px; }
.lb3-market__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lb3-market .lb-btn { background: #fff; color: var(--lb-petrol-dark); border-color: #fff; }
.lb3-market .lb-btn:hover { background: var(--lb-sand); border-color: var(--lb-sand); color: var(--lb-ink); }
.lb3-market__note { font-size: 12px; color: #E0CFA8; margin-top: 14px; }
.lb3-steps { display: grid; gap: 14px; }
.lb3-step {
    display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px; padding: 18px 20px;
}
.lb3-step__num {
    font-family: var(--lb-cond); font-weight: 900; font-size: 30px; line-height: 1;
    color: #E0CFA8; padding-top: 2px;
}
.lb3-step strong { display: block; font-size: 15px; margin-bottom: 3px; }
.lb3-step span { font-size: 13px; color: #E3DCC8; line-height: 1.45; }
.lb3-market__pubs { grid-column: 1 / -1; margin-top: clamp(22px, 3vw, 40px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; gap: clamp(20px, 3.5vw, 54px); flex-wrap: wrap; }
.lb3-market__pubs > span { font-family: var(--lb-wide); font-weight: 600; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #E0CFA8; }
.lb3-market__pubs a { font-family: var(--lb-display); font-size: clamp(17px, 1.7vw, 23px); color: rgba(255, 255, 255, .82); transition: color .2s; }
.lb3-market__pubs a:hover { color: #fff; }
@media (max-width: 900px) { .lb3-market__grid { grid-template-columns: 1fr; } }

/* ---------- Librum mreža (PRH network pre-footer) ---------- */
.lb3-network { border-top: 1px solid var(--lb-line); background: var(--lb-surface); padding: clamp(30px, 4vw, 48px) 0; }
.lb3-network__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.lb3-network__head h3 { font-family: var(--lb-cond); font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 0; }
.lb3-network__head span { font-size: 13px; color: var(--lb-muted); }
.lb3-network__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
.lb3-network__item { display: block; padding: 16px 18px; border: 1px solid var(--lb-line); border-radius: 16px; transition: all .25s; }
.lb3-network__item:hover { border-color: var(--lb-petrol); transform: translateY(-3px); box-shadow: var(--lb-shadow); }
.lb3-network__item strong { display: flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--lb-ink); }
.lb3-network__item strong svg { color: var(--lb-petrol); flex: 0 0 auto; }
.lb3-network__item span { display: block; font-size: 12.5px; color: var(--lb-muted); margin-top: 5px; line-height: 1.4; }
@media (max-width: 900px) { .lb3-network__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lb3-network__grid { grid-template-columns: 1fr; } }

/* ---------- Sitno ---------- */
.lb-v3 .lb-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .lb-v3 .lb-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lb-v3 .lb-footer__top { grid-template-columns: 1fr; } }
.lb-v3 .lb-logo { font-family: var(--lb-display); }
.lb-v3 .lb-chip { font-family: var(--lb-sans); }
.lb-v3 .lb-tabs__all { white-space: nowrap; }
.lb-v3 .lb-post__title { font-family: var(--lb-display); font-size: 21px; }
@media (max-width: 900px) {
    .lb3-hero__grid { grid-template-columns: 1fr; }
    .lb3-collage { height: 340px; max-width: 460px; }
}
