/* =============================================================================
   ZIVE-PANEL.CSS — postranní panel s připnutou akcí z MOJE KARIÉRA ONLINE ŽIVĚ
   Šablona: includes/layout/zive-panel.php, chování: js/zive-panel.js
   ========================================================================== */
.zp, .zp * { box-sizing: border-box; }
.zp { --zp-navy: #0A2038; --zp-blue: #25A9EA; --zp-cta: #E8792A; font-family: var(--font-body, system-ui, sans-serif); }
.zp[hidden] { display: none !important; }

/* ---- Karta ---- */
.zp-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(10,32,56,.28), 0 2px 6px rgba(10,32,56,.12); }
.zp-side .zp-card { border: 1px solid #CFDBE8; box-shadow: 0 24px 60px rgba(10,32,56,.30), 0 4px 12px rgba(10,32,56,.14); }
.zp-media { position: relative; aspect-ratio: 16/9; background: linear-gradient(160deg, #0D2B4B 0%, #16537F 100%); }
.zp-media.is-empty { aspect-ratio: auto; height: 64px; }
.zp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zp-media:not(.is-empty)::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,32,56,.3) 0%, rgba(10,32,56,0) 35%, rgba(10,32,56,.5) 100%); }
.zp-price { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  background: #16A34A; color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1.2; }
.zp-price.is-paid { background: #E8792A; }
.zp-until { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(8,20,36,.62); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; }
.zp-media.is-empty .zp-until { left: auto; right: 52px; top: 12px; bottom: auto; }
.zp-x { position: absolute; z-index: 2; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(8,20,36,.55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); padding: 0; }
.zp-x:hover { background: rgba(8,20,36,.85); }
.zp-body { padding: 16px 18px 18px; }
.zp-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zp-blue); margin: 0 0 6px; }
.zp-title { font-family: var(--font-head, inherit); font-weight: 800; font-size: 18px; line-height: 1.25; color: #0A1A2E; margin: 0 0 10px; text-wrap: wrap; }
.zp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #52637A; margin: 0 0 12px; }
.zp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.zp-meta svg { color: #2E6FA8; flex: none; }
.zp-host { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #52637A; margin: 0 0 14px; line-height: 1.35; }
.zp-host img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #DCE6F0; }
.zp-host b { display: block; color: #16222F; font-size: 13.5px; }
.zp-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 10px;
  background: var(--zp-cta); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: background .15s;
  box-shadow: 0 6px 16px rgba(232,121,42,.25); }
.zp-cta:hover { background: #D96A1C; }
.zp-more { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: #2E6FA8 !important; text-decoration: none; font-weight: 600; }
.zp-more:hover { text-decoration: underline; }

/* ====================================================== počítač: boční panel */
.zp-side { position: fixed; z-index: 990; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.zp-tab { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 10px;
  background: var(--zp-navy); color: #fff; border: 0; border-radius: 0 12px 12px 0; padding: 18px 11px; cursor: pointer;
  font: 700 13.5px/1 var(--font-head, inherit); letter-spacing: .02em; box-shadow: -6px 8px 24px rgba(10,32,56,.3);
  transition: background .15s, padding .15s; }
.zp-tab:hover { background: #0F3F63; padding-right: 14px; }
.zp-tab-date { font-weight: 600; color: #9FC4E4; }
.zp-side .zp-sheet { width: 340px; margin-right: 18px; max-height: calc(100vh - 40px); overflow: auto; border-radius: 16px;
  animation: zp-in .28s cubic-bezier(.2,.8,.2,1); }
.zp-side.is-closed .zp-sheet { display: none; }
.zp-side:not(.is-closed) .zp-tab { display: none; }
@keyframes zp-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ==================================================== mobil: lišta a list */
.zp-m { display: none; }
@media (max-width: 1023px) {
  .zp-side { display: none !important; }
  .zp-m { display: block; }
  .zp-bar { position: fixed; z-index: 990; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 10px; background: var(--zp-navy); color: #fff; border-radius: 14px;
    padding: 8px 8px 8px 10px; box-shadow: 0 10px 30px rgba(10,32,56,.35); animation: zp-up .3s cubic-bezier(.2,.8,.2,1); }
  .zp-bar-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit;
    padding: 0; text-align: left; cursor: pointer; font: inherit; }
  .zp-bar-thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; }
  .zp-bar-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .zp-bar-txt > b { font: 700 14px/1.2 var(--font-head, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zp-bar-txt small { font-size: 12px; color: #B9CCE0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zp-bar-kind { color: #fff; font-weight: 700; }
  .zp-bar-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff;
    display: grid; place-items: center; cursor: pointer; padding: 0; }
  .zp-scrim { position: fixed; inset: 0; z-index: 995; background: rgba(8,20,36,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .zp-msheet { position: fixed; z-index: 996; left: 0; right: 0; bottom: 0; transform: translateY(105%); visibility: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; max-height: 88vh; overflow: auto; }
  .zp-msheet .zp-card { border-radius: 20px 20px 0 0; }
  .zp-msheet .zp-media:not(.is-empty) { aspect-ratio: 2/1; }
  .zp-msheet .zp-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .zp-grip { position: absolute; z-index: 2; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px;
    background: rgba(255,255,255,.75); }
  .zp-m.is-open .zp-scrim { opacity: 1; pointer-events: auto; }
  .zp-m.is-open .zp-msheet { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .zp-m.is-open .zp-bar { visibility: hidden; }
  .zp-m.is-off .zp-bar { display: none; }
}
@keyframes zp-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .zp-side .zp-sheet, .zp-bar { animation: none; }
  .zp-msheet, .zp-scrim { transition: none !important; }
}
@media print { .zp { display: none !important; } }
