/* readable.css: czytelniejsze czcionki. Tekst do czytania = systemowy sans-serif (bez pobierania fontow),
   monospace zostaje tylko tam, gdzie daje klimat: logo, etykiety, liczniki, przyciski. */
:root { --f-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans JP", sans-serif;
        --f-mono: 'Courier New', monospace; }

html body { font-family: var(--f-sans); line-height: 1.6; }

html body :is(.logo, .sub-logo-info, .offer-category, .ob-left, .deal-tag, .deal-action, .ob-add, .lang-btn, .cookie-btn,
              .ob-chip, .ob-h, .ob-stats, .ob-all, .ob-send, .ob-cancel, .status-badge, .blink-red, .blink-white) { font-family: var(--f-mono); }

html body p { font-size: 15px; color: #c4c4c4; line-height: 1.65; }
html body .ob-intro { font-size: 14px; }
html body .offer-title { font-size: 15px; line-height: 1.35; }
html body .offer-desc { font-size: 14px; color: #c2c2c2; line-height: 1.55; }
html body .ob-meta { font-size: 12.5px; color: #c8c8c8; }
html body .offer-category { font-size: 11px; }
html body .ob-left { font-size: 11px; }
html body .deal-tag { font-size: 13px; }
html body .deal-action { font-size: 11px; }
html body .ob-stats { font-size: 12px; color: #a8a8a8; }
html body .ob-rep { font-size: 11px; color: #a0a0a0; }
html body .ob-dialog { font-family: var(--f-sans); }
html body .ob-form label { font-size: 12.5px; letter-spacing: .3px; color: #c0c0c0; }
html body .ob-form input, html body .ob-form select, html body .ob-form textarea { font-size: 14px; }
html body .ob-form .ob-check { font-size: 12px; }
html body .ob-priv, html body .ob-note { font-size: 11.5px; line-height: 1.55; }
html body .ob-priv { color: #aaa; }
html body .legal-disclaimer { font-size: 12px; line-height: 1.55; color: #c98080; letter-spacing: 0; }
html body footer { font-size: 12px; color: #999; }
html body .cookie-text { font-size: 12px; line-height: 1.5; }
html body .mood-note, html body .mood-total, html body .mood-n { font-size: 11px; }
@media (max-width: 768px) {
    html body .ob-form input, html body .ob-form select, html body .ob-form textarea { font-size: 16px; }   /* iOS nie powieksza strony przy 16 px */
}

/* ---- rozstaw miedzy boxami: rowny odstep (--gap) miedzy wszystkimi sekcjami ---- */
:root { --gap: 12px; }
html body .main-container, html body .dc-wrap { padding-top: calc(var(--gap) / 2); padding-bottom: calc(var(--gap) / 2); }
html body header { margin-bottom: calc(var(--gap) / 2); }
html body footer { margin-top: calc(var(--gap) / 2); }
html body .panel-box { padding: 24px; }
@media (max-width: 768px) {
    :root { --gap: 10px; }
    html body .panel-box { padding: 18px; }
}

/* ---- uklad kompaktowy: mniej odstepow i mniejszy tekst, zeby mapa byla wyzej ---- */
html body header { padding-top: 12px; padding-bottom: 12px; }
html body .main-container { padding-left: 24px; padding-right: 24px; }
html body .panel-box { padding: 16px 18px; }
html body .ob-h { font-size: 15px; margin: 0 0 6px; }
html body .ob-intro { font-size: 13px; line-height: 1.5; max-width: 780px; margin: 0 0 4px; }
html body .ob-stats { font-size: 11px; margin: 2px 0 0; }
html body .ob-status { margin-top: 4px; min-height: 0; }
html body .ob-actions { margin: 8px 0 0; gap: 8px; }
html body .ob-actions .ob-add, html body .ob-actions .ob-alertbtn { padding: 8px 12px; min-height: 38px; }
html body .ob-actions .ob-alertbtn small { font-size: 9.5px; }
html body .ob-map { margin: 10px 0; }
html body .ob-map-sum { padding: 6px 10px; }
html body .ob-map-svg { padding: 0 8px; max-width: 480px; }
html body .ob-map-cap { margin: 0 10px; min-height: 16px; font-size: 12px; }
html body .ob-catlist { padding: 4px 10px 10px; gap: 5px; }
html body .ob-catlist a { font-size: 11.5px; padding: 4px 8px; }
@media (max-width: 768px) {
    html body header { padding-left: 14px; padding-right: 14px; }
    html body .main-container, html body .ob-wrap { padding-left: 12px; padding-right: 12px; }
    html body .panel-box { padding: 12px; }
    html body .ob-intro { font-size: 12.5px; }
}

/* cala mapa na ekranie: wysokosc mapy zalezy od wysokosci okna */
html body svg.ob-map-svg { width: auto; max-width: 100%; height: calc(100vh - 365px); min-height: 280px; max-height: 560px; margin: 0 auto; }
@media (max-width: 768px) { html body svg.ob-map-svg { width: 100%; height: auto; max-height: none; min-height: 0; } }

/* przyciski minimalnie mniejsze */
html body .ob-actions .ob-add, html body .ob-actions .ob-alertbtn { padding: 6px 12px; min-height: 34px; font-size: 12px; }
html body .ob-actions .ob-alertbtn small { font-size: 9px; }
html body .ob-actions { margin-top: 4px; }
html body .ob-intro { margin-top: 0; }
html { scroll-behavior: smooth; }

/* tekst wstepny tablicy: drukowane litery, styl portalu */
html body .ob-intro { text-transform: uppercase; font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: 1.2px; line-height: 1.6; color: #cdbf8a; max-width: 860px; }
html body .ob-intro { font-size: 14px; letter-spacing: 2px; font-weight: bold; }

/* ikony kategorii */
html body .ob-catlist a { display: inline-flex; align-items: center; gap: 6px; }
html body .ob-catlist .ob-ico { width: 18px; height: 18px; flex: none; }

/* stopka: linki prawne */
html body .foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 8px; }
html body .foot-links a { color: #999; font-size: 12px; text-decoration: none; }
html body .foot-links a:hover { color: #d4af37; text-decoration: underline; }
html body .legal-doc h2 { font-size: 15px; color: #d4af37; margin: 22px 0 8px; }
html body .legal-doc ul, html body .legal-doc ol { color: #aaa; font-size: 13px; line-height: 1.7; }
html body .legal-doc a { color: #d4af37; }

/* delikatna wstega w rogu: "Istniejemy od 2006 roku" */
html body .since-ribbon { position: fixed; right: -48px; bottom: 76px; width: 270px; transform: rotate(-45deg); transform-origin: center;
  text-align: center; padding: 5px 0; font: 10px/1.2 'Courier New', monospace; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
  color: rgba(212,175,55,.8); background: rgba(212,175,55,.07); border-top: 1px solid rgba(212,175,55,.22); border-bottom: 1px solid rgba(212,175,55,.22);
  pointer-events: none; user-select: none; z-index: 50; }
@media (max-width: 768px) { html body .since-ribbon { width: 190px; right: -52px; bottom: 34px; font-size: 7.5px; letter-spacing: 1px; padding: 3px 0; opacity: .8; } }
@media print { html body .since-ribbon { display: none; } }

/* przyciski pod mapa: biały + czerwony (barwy Polski) */
html body .ob-actions .ob-add { background: #fff; color: #111; }
html body .ob-actions .ob-add:hover { background: #e9e9e9; }
html body .ob-intro { text-align: center; margin: 10px auto 0; }
html body .ob-info { margin-top: 4px; }
html body .ob-stats { text-align: center; margin: 6px 0 0; }

/* sonar: wolny pasek skanera przechodzi z gory na dol za mapa */
html body .ob-map { position: relative; overflow: hidden; }
html body .ob-map > * { position: relative; z-index: 1; }
html body .ob-map::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--mc-rgb), 0) calc(100% - 110px), rgba(var(--mc-rgb), .05) calc(100% - 40px), rgba(var(--mc-rgb), .16) calc(100% - 2px), rgba(var(--mc-rgb), .4) 100%);
  border-bottom: 1px solid rgba(var(--mc-rgb), .35); box-shadow: 0 4px 14px rgba(var(--mc-rgb), .12);
  transform: translate3d(0, -100%, 0); will-change: transform; backface-visibility: hidden; animation: obSonar 16s linear infinite; }
@keyframes obSonar { 0% { transform: translate3d(0, -100%, 0); opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translate3d(0, 0, 0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html body .ob-map::before { animation: none; display: none; } }

/* zoom mapy */
html body .ob-map > .ob-zoom { position: absolute; top: 34px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
html body .ob-zoom button { width: 34px; height: 34px; padding: 0; border-radius: 4px; border: 1px solid rgba(var(--mc-rgb), .5); background: rgba(8,16,16,.85);
  color: var(--mc); font: bold 20px/1 'Courier New', monospace; cursor: pointer; display: flex; align-items: center; justify-content: center; }
html body .ob-zoom button:hover { background: var(--mc); color: #04100f; }
html body svg.ob-map-svg.zoomed { cursor: grab; touch-action: none; }
html body svg.ob-map-svg.dragging { cursor: grabbing; }
html body svg.ob-map-svg.dragging a { pointer-events: none; }

/* --- tylko komputery: zoom mapy + boczny ticker ogloszen, szerszy uklad --- */
html body .ob-ticker { display: none; }
@media (min-width: 1100px) and (hover: hover) {
  html body .main-container.ob-wrap { max-width: 1240px; }
  html body svg.ob-map-svg { width: 100%; max-width: none; box-sizing: border-box; padding-right: 310px; }
  html body .ob-map > .ob-ticker { display: flex; position: absolute; top: 44px; right: 56px; width: 280px; bottom: 150px; flex-direction: column; z-index: 2;
    border: 1px solid rgba(var(--mc-rgb), .28); border-radius: 5px; background: rgba(6,14,14,.72); overflow: hidden; }
  html body .ob-ticker-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font: 11px/1 'Courier New', monospace; letter-spacing: 1.5px; color: var(--mc);
    border-bottom: 1px solid rgba(var(--mc-rgb), .22); }
  html body .ob-ticker-h .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b52; box-shadow: 0 0 8px #ff3b52; animation: obPulse 2.4s ease-in-out infinite; }
  @keyframes obPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  html body .ob-ticker-vp { position: relative; flex: 1; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%); }
  html body .ob-ticker-list { list-style: none; margin: 0; padding: 0; }
  html body .ob-ticker.scroll .ob-ticker-list { animation: obTicker calc(var(--tk-n) * 7s) linear infinite; will-change: transform; }
  html body .ob-ticker.scroll:hover .ob-ticker-list { animation-play-state: paused; }
  @keyframes obTicker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
  html body .ob-ticker-list li { border-bottom: 1px solid rgba(var(--mc-rgb), .12); }
  html body .ob-ticker-list a { display: block; padding: 10px 12px; text-decoration: none; color: #cfe9e6; }
  html body .ob-ticker-list a:hover { background: rgba(var(--mc-rgb), .1); }
  html body .ob-ticker-list .tk-c { display: flex; align-items: center; gap: 6px; font: 10px/1 'Courier New', monospace; letter-spacing: 1.5px; color: var(--ma); margin-bottom: 4px; }
  html body .ob-ticker-list a.red .tk-c { color: #ff6b7a; }
  html body .ob-ticker-list .tk-c .ob-ico { width: 13px; height: 13px; }
  html body .ob-ticker-list .tk-t { display: block; font-size: 13px; line-height: 1.35; color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  html body .ob-ticker-list .tk-m { display: block; font-size: 11px; color: #8fb3af; margin-top: 3px; }
}
@media (min-width: 1100px) and (hover: hover) { html body .ob-map > .ob-ticker:not(.scroll) { bottom: auto; } }
@media (prefers-reduced-motion: reduce) { html body .ob-ticker.scroll .ob-ticker-list { animation: none; } html body .ob-ticker-vp { overflow-y: auto; } }
/* zoom tylko na komputerach (mysz) */
@media (max-width: 1099px), (hover: none) { html body .ob-map > .ob-zoom { display: none; } }

/* ===== ALERT w stylu wojskowego alarmu ===== */
@keyframes obSiren { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes obGlow { 0%, 100% { box-shadow: 0 0 10px rgba(255,51,68,.18), inset 0 0 0 rgba(255,51,68,0); } 50% { box-shadow: 0 0 22px rgba(255,51,68,.42), inset 0 0 14px rgba(255,51,68,.08); } }
/* pasek aktywnych alertow nad mapa */
html body .ob-sirenbar { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 9px 14px; text-decoration: none; color: #ffd9dd;
  font: bold 12px/1.2 'Courier New', monospace; letter-spacing: 2px; text-transform: uppercase; border: 1px solid rgba(255,51,68,.75); border-radius: 4px;
  background: repeating-linear-gradient(-45deg, rgba(255,51,68,.16) 0 12px, rgba(0,0,0,.35) 12px 24px); animation: obGlow 2.4s ease-in-out infinite; }
html body .ob-sirenbar:hover { background: repeating-linear-gradient(-45deg, rgba(255,51,68,.28) 0 12px, rgba(0,0,0,.35) 12px 24px); }
html body .ob-sirenbar .sb-tri { color: #ff3344; font-size: 15px; animation: obSiren 1.4s ease-in-out infinite; }
html body .ob-sirenbar .sb-txt { flex: 1; }
html body .ob-sirenbar b { color: #fff; font-size: 14px; }
html body .ob-sirenbar .sb-go { color: #ff6b7a; font-size: 11px; }
/* karty alertow */
html body .ob-card.ob-alert { position: relative; border-color: rgba(255,51,68,.8); background: linear-gradient(180deg, rgba(255,51,68,.07), rgba(18,18,18,.95) 60px); animation: obGlow 3.2s ease-in-out infinite; }
html body .ob-card.ob-alert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(-45deg, #ff3344 0 8px, #1a0507 8px 16px); }
html body .ob-card.ob-alert .offer-category::before { content: "\25B2 "; color: #ff3344; animation: obSiren 1.4s ease-in-out infinite; }
html body .ob-card.ob-alert .offer-category { letter-spacing: 2px; }
/* chip i ticker */
html body .ob-catlist a.red { font-weight: bold; letter-spacing: .6px; box-shadow: 0 0 8px rgba(255,51,68,.25); }
html body .ob-catlist a.red svg { animation: obSiren 1.6s ease-in-out infinite; }
@media (min-width: 1100px) and (hover: hover) {
  html body .ob-ticker-list a.red { border-left: 3px solid #ff3344; background: rgba(255,51,68,.07); }
  html body .ob-ticker-list a.red .tk-c { animation: obSiren 1.6s ease-in-out infinite; }
}
/* przycisk ZGLOS ALERT: delikatny puls */
html body .ob-actions .ob-alertbtn { animation: obGlow 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { html body .ob-sirenbar, html body .ob-sirenbar .sb-tri, html body .ob-card.ob-alert, html body .ob-card.ob-alert .offer-category::before,
  html body .ob-catlist a.red svg, html body .ob-ticker-list a.red .tk-c, html body .ob-actions .ob-alertbtn { animation: none; } }

/* ogloszenia.php (pelna lista): bez mapy, bez dwoch przyciskow i bez tekstow wstepnych; zostaja filtry kategorii i lista */
html body .ob-full .ob-actions, html body .ob-full .ob-intro, html body .ob-full .ob-info { display: none; }
html body .ob-full .ob-map-sum, html body .ob-full svg.ob-map-svg, html body .ob-full .ob-zoom, html body .ob-full .ob-map-cap, html body .ob-full .ob-ticker { display: none !important; }
html body .ob-full .ob-map { border: 0; background: none; padding: 0; margin: 6px 0 12px; overflow: visible; }
html body .ob-full .ob-map::before { display: none; }

/* kropka w logo (jak w bankpoland.com): pulsujacy punkt radaru */
html body .bp-dot { display: inline-block; position: relative; width: 8px; height: 8px; margin: 0 14px; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 8px 2px rgba(255,42,42,.7); vertical-align: middle; }
html body .bp-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid #ff2a2a; opacity: 0; animation: bp-ping 2.4s ease-out infinite; }
@keyframes bp-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html body .bp-dot::after { animation: none; } }

/* tytul ogloszenia jako link do strony ogloszenia */
html body a.ob-tl { color: inherit; text-decoration: none; }
html body a.ob-tl:hover { color: #d4af37; text-decoration: underline; }
/* strona pojedynczego ogloszenia */
html body .ob-one { max-width: 640px; margin: 0 auto; }
html body .ob-one .offer-title { font-size: 20px; }
html body .ob-one .offer-desc { font-size: 15px; line-height: 1.55; }
html body .ob-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
html body .ob-share a, html body .ob-share button { font: inherit; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #d1d1d1; background: transparent; border: 1px solid rgba(212,175,55,.45); padding: 9px 14px; border-radius: 4px; cursor: pointer; text-decoration: none; }
html body .ob-share a:hover, html body .ob-share button:hover { border-color: #d4af37; color: #d4af37; }

/* SEO: naglowek H1 tylko dla czytnikow/robotow, blok "O serwisie" widoczny, dyskretny */
html body .seo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body .seo-about { max-width: 950px; margin: 0 auto; padding: 0 30px 18px; box-sizing: border-box; }
html body .seo-about p { font-size: 12px; line-height: 1.6; color: #777; margin: 0; }
html body .seo-about strong { color: #999; font-weight: 600; }
