/* Szabad Bihar — Features CSS (v11.7) */
:root { --sb-font-scale: 1; }
article, .entry-content, .sb-article { font-size: calc(1rem * var(--sb-font-scale)); }

/* DARK MODE */
.sb-dark { color-scheme: dark; }
.sb-dark body { background: #0e1116 !important; color: #e6e8eb !important; }
.sb-dark a { color: #ff6a5e; }
.sb-dark .sb-card, .sb-dark .widget, .sb-dark .sb-related__card,
.sb-dark .sb-author-box, .sb-dark .sb-newsletter, .sb-dark .sb-poll { background:#161b22 !important; color:#e6e8eb; border-color:#2a313a !important; }

/* BREAKING BAR */
.sb-breaking { display:flex; align-items:center; gap:.75rem; padding:.55rem 1rem; background:#e10600; color:#fff; font-weight:600; font-size:.95rem; position:relative; z-index:30; }
.sb-breaking__tag { background:#fff; color:#e10600; padding:2px 8px; border-radius:3px; font-size:.78rem; letter-spacing:.06em; }
.sb-breaking__text { color:#fff; text-decoration:none; flex:1; }
.sb-breaking__close { background:transparent; border:0; color:#fff; font-size:1.4rem; cursor:pointer; line-height:1; }

/* PROGRESS BAR */
.sb-progress { position:fixed; top:0; left:0; right:0; height:3px; background:rgba(0,0,0,.06); z-index:9999; }
.sb-progress > span { display:block; height:100%; width:0; background:#e10600; transition:width .1s linear; }

/* READING TOOLS */
.sb-tools { position:fixed; right:14px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; gap:6px; z-index:50; }
.sb-tools button { width:40px; height:40px; border-radius:50%; border:1px solid #d8dadf; background:#fff; cursor:pointer; font-size:1rem; box-shadow:0 4px 14px rgba(0,0,0,.08); }
.sb-tools button:hover { background:#fafafa; }
.sb-dark .sb-tools button { background:#1c2129; color:#e6e8eb; border-color:#2a313a; }
@media (max-width: 720px) { .sb-tools { display:none; } }

/* FAB */
.sb-fab { position:fixed; right:14px; bottom:14px; display:flex; flex-direction:column; gap:8px; z-index:60; }
.sb-fab__btn { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:#111; color:#fff; border:0; cursor:pointer; text-decoration:none; font-size:1.1rem; box-shadow:0 6px 16px rgba(0,0,0,.2); }
.sb-fab__btn:hover { background:#e10600; }

/* SHARE */
.sb-share { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:1.5rem 0; padding:1rem 0; border-top:1px solid #e5e5e5; border-bottom:1px solid #e5e5e5; }
.sb-share__btn { display:inline-grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#ffffff; color:#111; text-decoration:none; border:1px solid #e5e7eb; cursor:pointer; transition:background .15s ease, transform .15s ease, box-shadow .15s ease; }
.sb-share__btn:hover { background:#f4f5f7; transform:translateY(-1px); box-shadow:0 2px 6px rgba(0,0,0,.08); }
.sb-share__btn svg { width:18px; height:18px; display:block; }
.dark .sb-share__btn, html[data-theme="dark"] .sb-share__btn { background:#1c1f24; color:#f5f5f5; border-color:#2a2f37; }
.dark .sb-share__btn:hover, html[data-theme="dark"] .sb-share__btn:hover { background:#262a31; }

/* RELATED */
.sb-related { margin:2.5rem 0; }
.sb-related__title { font-size:1.25rem; margin-bottom:1rem; border-left:4px solid #e10600; padding-left:.6rem; }
.sb-related__grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:1rem; }
.sb-related__card { display:block; background:#fff; border:1px solid #e5e5e5; border-radius:8px; overflow:hidden; text-decoration:none; color:inherit; transition:transform .15s, box-shadow .15s; }
.sb-related__card:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.06); }
.sb-related__img img { width:100%; height:140px; object-fit:cover; display:block; }
.sb-related__body { padding:.7rem .8rem 1rem; }
.sb-related__cat { font-size:.72rem; color:#e10600; text-transform:uppercase; letter-spacing:.05em; font-weight:700; }
.sb-related__h { font-weight:600; margin-top:.3rem; line-height:1.3; }

/* AUTHOR BOX */
.sb-author-box { display:flex; gap:1rem; padding:1.2rem; border:1px solid #e5e5e5; border-radius:8px; background:#fafafa; margin:2rem 0; }
.sb-author-box__avatar img { border-radius:50%; }
.sb-author-box__name a { font-size:1.05rem; font-weight:700; color:#111; text-decoration:none; }
.sb-author-box__bio { color:#5b6470; margin:.3rem 0 .6rem; }
.sb-author-box__more { color:#e10600; font-weight:600; text-decoration:none; }

/* AUTHOR PAGE */
.sb-author-hero { text-align:center; padding:2.5rem 1rem; border-bottom:1px solid #e5e5e5; }
.sb-author-hero__avatar img { border-radius:50%; }
.sb-author-hero__name { font-size:2rem; margin:1rem 0 .3rem; }
.sb-author-hero__bio { color:#5b6470; max-width:600px; margin:0 auto; }
.sb-author-list { max-width:780px; margin:2rem auto; padding:0 1rem; }
.sb-author-list__item { padding:1rem 0; border-bottom:1px solid #e5e5e5; }
.sb-author-list__h { font-size:1.2rem; font-weight:700; color:#111; text-decoration:none; }
.sb-author-list__meta { color:#5b6470; font-size:.85rem; margin:.2rem 0 .4rem; }

/* NEWSLETTER */
.sb-newsletter { background:linear-gradient(135deg,#e10600,#b00400); color:#fff; padding:1.5rem; border-radius:10px; margin:2rem 0; }
.sb-newsletter__title { color:#fff; margin:0 0 .3rem; }
.sb-newsletter__desc { color:#ffd9d6; margin:0 0 1rem; }
.sb-newsletter__row { display:flex; gap:8px; }
.sb-newsletter__row input { flex:1; padding:.7rem .9rem; border:0; border-radius:6px; font-size:1rem; }
.sb-newsletter__row button { background:#111; color:#fff; padding:.7rem 1.2rem; border:0; border-radius:6px; cursor:pointer; font-weight:700; }
.sb-newsletter__msg { margin-top:.6rem; min-height:1.2rem; font-size:.9rem; }

/* POLL */
.sb-poll { background:#fff; border:1px solid #e5e5e5; padding:1rem; border-radius:8px; margin:1.5rem 0; }
.sb-poll__q { font-weight:700; margin-bottom:.8rem; }
.sb-poll__opts { display:flex; flex-direction:column; gap:.4rem; }
.sb-poll__opt { position:relative; display:flex; align-items:center; justify-content:space-between; padding:.6rem .8rem; border:1px solid #e5e5e5; background:#fafafa; border-radius:6px; cursor:pointer; overflow:hidden; }
.sb-poll__bar { position:absolute; inset:0 auto 0 0; width:var(--p,0); background:rgba(225,6,0,.15); transition:width .3s; }
.sb-poll__label, .sb-poll__pct { position:relative; z-index:1; }
.sb-poll.voted .sb-poll__opt { cursor:default; }
.sb-poll__meta { margin-top:.6rem; font-size:.8rem; color:#5b6470; }

/* QUIZ */
.sb-quiz { background:#fffbe6; border:1px solid #f0d36a; padding:1rem; border-radius:8px; margin:1.5rem 0; }
.sb-quiz__q { font-weight:700; margin-bottom:.6rem; }
.sb-quiz input { padding:.5rem; border:1px solid #ccc; border-radius:4px; margin-right:.4rem; }
.sb-quiz button { padding:.5rem 1rem; background:#111; color:#fff; border:0; border-radius:4px; cursor:pointer; }
.sb-quiz__result.ok { color:#0a7d2c; font-weight:700; margin-top:.5rem; }
.sb-quiz__result.err { color:#b00400; font-weight:700; margin-top:.5rem; }

/* TIMELINE */
.sb-timeline { list-style:none; padding:0 0 0 1.6rem; border-left:3px solid #e10600; margin:1.5rem 0; }
.sb-timeline__item { position:relative; padding:0 0 1.2rem 0; }
.sb-timeline__item::before { content:""; position:absolute; left:-1.95rem; top:.4rem; width:12px; height:12px; border-radius:50%; background:#e10600; }
.sb-timeline__date { font-weight:700; color:#e10600; font-size:.85rem; }
.sb-timeline__title { font-weight:700; margin:.1rem 0; }

/* PODCAST */
.sb-podcast { background:#111; color:#fff; padding:1rem 1.2rem; border-radius:10px; margin:1.5rem 0; }
.sb-podcast__title { margin-bottom:.5rem; font-weight:700; }
.sb-podcast audio { width:100%; }

/* LIVEBLOG */
.sb-liveblog { position:relative; padding-left:1.5rem; border-left:3px solid #e10600; margin:1.5rem 0; }
.sb-liveblog__entry { padding:.8rem 0 1rem; border-bottom:1px dashed #e5e5e5; }
.sb-liveblog__entry time { display:inline-block; background:#e10600; color:#fff; padding:2px 8px; border-radius:3px; font-size:.78rem; font-weight:700; }
.sb-liveblog__entry h4 { margin:.4rem 0; }

/* POPULAR */
.sb-popular { padding-left:1.4rem; }
.sb-popular li { margin:.4rem 0; }
.sb-popular a { color:#111; font-weight:600; text-decoration:none; }
.sb-popular__views { display:block; font-size:.78rem; color:#5b6470; }

/* FOLLOW */
.sb-follow { background:transparent; border:1px solid #e10600; color:#e10600; padding:.35rem .8rem; border-radius:999px; cursor:pointer; font-size:.85rem; font-weight:600; }
.sb-follow.on { background:#e10600; color:#fff; }
.sb-follow .sb-follow__on { display:none; }
.sb-follow.on .sb-follow__on { display:inline; }
.sb-follow.on .sb-follow__off { display:none; }

/* FLASH */
.sb-flash { position:fixed; bottom:80px; left:50%; transform:translate(-50%, 20px); background:#111; color:#fff; padding:.7rem 1.2rem; border-radius:6px; opacity:0; transition:opacity .25s, transform .25s; z-index:9999; }
.sb-flash.on { opacity:1; transform:translate(-50%, 0); }

/* AD */
.sb-ad { padding:1rem; background:#f7f7f7; text-align:center; margin:1rem 0; border:1px dashed #d4d4d4; }
.sb-ad__title { font-size:.7rem; color:#5b6470; letter-spacing:.1em; text-transform:uppercase; }

/* PRINT */
@media print {
  .sb-tools, .sb-fab, .sb-share, .sb-related, .sb-breaking, .sb-progress,
  header.site-header, footer.site-footer, .sb-author-box, .sb-newsletter,
  nav, aside, .widget-area { display:none !important; }
  body { background:#fff !important; color:#000 !important; }
  article { font-size:12pt; line-height:1.5; }
}