/** JakToMám — Result Overview CSS. Extracted from result_overview.php. */

/* ── Hero ────────────────────────────────────────────────────────── */
.ov-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 260px;
  max-height: 480px;
  background: #02060e;
  overflow: hidden;
}
#ov-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ov-hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2,6,14,.08) 0%,
    rgba(2,6,14,.35) 62%,
    rgba(2,6,14,.82) 100%
  );
  pointer-events: none;
}
.ov-hero-content {
  position: absolute;
  bottom: 2.2rem;
  left: 0;
  right: 0;
  padding: 0 2rem;
  text-align: center;
}
.ov-hero-names {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  margin-bottom: .45rem;
  text-transform: uppercase;
}
.ov-hero-title {
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .35rem;
  line-height: 1.25;
}
.ov-hero-sub {
  font-size: .92rem;
  color: rgba(255,255,255,.62);
  margin-bottom: 1.4rem;
}
.ov-hero-btns {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ov-btn-primary {
  display: inline-block;
  padding: .62rem 1.4rem;
  background: #fff;
  color: #0a0a1a;
  border-radius: 0;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.ov-btn-primary:hover { background: #e8e8f4; transform: translateY(-1px); }
.ov-btn-secondary {
  display: inline-block;
  padding: .62rem 1.4rem;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 0;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .15s;
}
.ov-btn-secondary:hover { background: rgba(255,255,255,.2); }

/* Tertiary link – small text, second row */
.ov-btn-tertiary {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: .35rem 0 0;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.ov-btn-tertiary:hover { color: rgba(255,255,255,.75); }

/* ── Ground concept labels (CSS2D) ─────────────────────────────── */
.ov-globe-label {
  font-family: system-ui, sans-serif;
  font-size: 10px; color: rgba(200,230,210,.88);
  background: rgba(2,8,4,.72); padding: 1px 6px; border-radius: 0;
  pointer-events: none; white-space: nowrap;
  text-shadow: 0 0 5px rgba(50,200,100,.25);
}
.ov-globe-label.is-self { font-weight: 700; color: #f5c518; font-size: 12px;
                           background: rgba(18,12,0,.82); border: 1px solid rgba(245,197,24,.25); }
.ov-globe-label.is-pos  { color: #7ee8a2; }
.ov-globe-label.is-neg  { color: #90b8ff; }

/* ── Feature cards ───────────────────────────────────────────────── */
.ov-features {
  max-width: 860px; margin: 0 auto; padding: 0 1rem 1rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem;
}
.ov-fcard {
  background: var(--color-surface, #fff); border-radius: 0; overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,.07);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .12s, box-shadow .15s;
}
.ov-fcard:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.ov-fcard-img {
  width: 100%; height: 120px; object-fit: cover; display: block;
  background: #f3f4f6;
}
.ov-fcard-body { padding: .7rem .8rem .8rem; flex: 1; display: flex; flex-direction: column; }
.ov-fcard-title { font-size: .88rem; font-weight: 700; color: var(--color-nav, #1a1a2e); margin-bottom: .25rem; }
.ov-fcard-desc { font-size: .78rem; color: var(--color-text-3, #6b7280); line-height: 1.5; flex: 1; }
.ov-fcard-link { font-size: .78rem; font-weight: 600; color: var(--color-accent, #4a90d9); margin-top: .4rem; }
@media (max-width: 720px) {
  .ov-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .ov-features { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .ov-fcard-img { height: 90px; }
  .ov-fcard-body { padding: .5rem .6rem .6rem; }
  .ov-fcard-title { font-size: .82rem; }
  .ov-fcard-desc { font-size: .73rem; }
}

/* ── Rozcestník ──────────────────────────────────────────────────── */
.ov-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.ov-section-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-text-4, #9ca3af);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  text-align: center;
}
.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
}
.ov-block {
  background: var(--color-surface, #fff);
  border-radius: 0;
  padding: 1.25rem 1.3rem 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ov-block-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-text-3, #6b7280);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

/* Interpretation links */
.ov-interp-btn {
  display: block;
  padding: .42rem .75rem;
  border-radius: 0;
  background: #f8f9ff;
  border: 1px solid var(--color-border, #e5e7eb);
  color: var(--color-nav, #1a1a2e);
  text-decoration: none;
  font-size: .88rem;
  transition: background .12s, border-color .12s;
}
.ov-interp-btn:hover { background: #eef2ff; border-color: #c7d2fe; }
.ov-interp-btn.ov-star {
  background: #fefce8;
  border-color: #fde68a;
  color: #78350f;
  font-weight: 600;
}
.ov-interp-btn.ov-star:hover { background: #fef9c3; }
.ov-interp-btn.ov-ai {
  background: #fdf4ff;
  border-color: #e9d5ff;
  color: #5b21b6;
}
.ov-interp-btn.ov-ai:hover { background: #f3e8ff; }
.ov-badge {
  font-size: .7rem;
  background: var(--color-success-bg, #d1fae5);
  color: #065f46;
  border-radius: 0;
  padding: .05rem .3rem;
  margin-left: .4rem;
  font-weight: 700;
}
.ov-locked {
  display: block;
  padding: .4rem .7rem;
  font-size: .85rem;
  color: var(--color-text-4, #9ca3af);
  border-radius: 0;
  border: 1px dashed var(--color-border, #e5e7eb);
}
.ov-locked a { color: var(--color-text-4, #9ca3af); font-size: .78rem; }
.ov-soon { font-size: .72rem; color: #d1d5db; }

/* Audio inline player */
.ov-audio-block {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .4rem .6rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0;
}
.ov-audio-dl {
  font-size: .78rem;
  color: #065f46;
  text-decoration: none;
}
.ov-audio-dl:hover { text-decoration: underline; }

/* ── Test info block ─────────────────────────────────────────────── */
.ov-info {
  grid-column: 1 / -1;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: .5rem;
}
.ov-info-header {
  display: flex; align-items: baseline; gap: .75rem; margin-bottom: .75rem;
  flex-wrap: wrap;
}
.ov-info-name {
  font-size: 1.15rem; font-weight: 700; color: var(--color-text, #1a1a2e);
  margin: 0;
}
.ov-info-set {
  font-size: .78rem; color: var(--color-text-3, #9ca3af);
  background: var(--color-surface-2, #f3f4f6); padding: .15rem .55rem;
  border-radius: 0;
}
.ov-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .5rem .75rem;
  margin-bottom: .75rem;
}
.ov-info-item { font-size: .82rem; color: var(--color-text-2, #4b5563); line-height: 1.5; }
.ov-info-item strong { color: var(--color-text, #1a1a2e); font-weight: 600; }
.ov-info-metrics {
  display: flex; flex-wrap: wrap; gap: .4rem .75rem;
  padding-top: .6rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
  margin-bottom: .5rem;
}
.ov-info-metric {
  font-size: .78rem; color: var(--color-text-3, #6b7280);
  background: var(--color-surface-2, #f9fafb);
  padding: .2rem .55rem; border-radius: 0;
}
.ov-info-metric b { font-weight: 600; color: var(--color-text-2, #374151); }
.ov-info-actions {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding-top: .5rem;
}
/* Editable field */
.ov-info-editable {
  cursor: pointer; border-bottom: 1px dashed transparent;
  transition: border-color .15s;
}
.ov-info-editable:hover { border-bottom-color: var(--color-accent, #4a90d9); }
.ov-info-placeholder { color: var(--color-text-3, #9ca3af); font-style: italic; border-bottom: 1px dashed var(--color-text-3, #9ca3af); }
.ov-info-edit-input {
  font: inherit; border: 1px solid var(--color-accent, #4a90d9);
  border-radius: 0; padding: .15rem .4rem; background: var(--color-surface, #fff);
  outline: none; width: 100%; max-width: 400px;
}
.ov-info-edit-input.input-lg { font-size: 1.15rem; font-weight: 700; }

.ov-recompute-wrap {
  margin: 2rem auto 0;
  max-width: 680px;
  padding: 0 1rem;
  text-align: center;
}
.ov-recompute-btn {
  display: inline-block; padding: .4rem 1.1rem;
  border: 1.5px solid #d1d5db; border-radius: 0;
  background: #f9fafb; color: var(--color-text-3, #6b7280); font-size: .82rem;
  font-family: inherit; cursor: pointer; transition: background .1s, color .1s;
}
.ov-recompute-btn:hover { background: #f0f4ff; color: #1d4ed8; border-color: #bfdbfe; }
.ov-recompute-note { font-size: .74rem; color: var(--color-text-4, #9ca3af); margin-top: .35rem; }

/* ── Podcast ─────────────────────────────────────────────────────── */
.podcast-block { padding: 1.25rem 1.5rem; }
.podcast-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.podcast-icon { font-size: 1.5rem; }
.podcast-sub { display: block; font-size: .8rem; color: var(--color-text-3, #888); }
.podcast-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.podcast-ep { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--color-border, #f0f0f0); }
.podcast-ep:last-child { border-bottom: none; }
.ep-icon { font-size: 1rem; }
.ep-title { flex: 1; font-size: .9rem; }
.ep-dur { font-size: .78rem; color: #aaa; min-width: 3rem; text-align: right; }
.ep-play { font-size: .78rem !important; padding: .2rem .6rem !important; }
.podcast-url { background: var(--color-surface-2, #f5f5f5); padding: .25rem .5rem; border-radius: 0; display: inline-block; margin: .25rem .25rem; }

/* ── Share dialog ──────────────────────────────────────────────── */
#share-dialog {
  margin-top: 1rem;
  background: rgba(0,0,0,.45);
  border-radius: 0;
  padding: 1rem 1.2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.share-dialog-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .6rem;
}
.share-dialog-btns {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-dialog-btn-sm { font-size: .85rem; }
#share-status {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: .5rem;
}

/* ── Page heading ──────────────────────────────────────────────── */
.ov-page-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 1.8rem 0 .8rem;
}

/* ── Inline hr divider ─────────────────────────────────────────── */
.ov-hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: .4rem 0;
}

/* ── Audio element sizing ──────────────────────────────────────── */
.ov-audio-block audio {
  width: 100%;
  max-width: 100%;
  height: 36px;
}
.ov-audio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem;
}
.ov-audio-dur { font-size: .72rem; color: #94a3b8; }

/* ── Podcast gen button variants ───────────────────────────────── */
.ov-podcast-gen-regen {
  width: 100%; text-align: left;
  font-size: .8rem; padding: .4rem .6rem; opacity: .7;
}
.ov-podcast-gen-new {
  width: 100%; text-align: left;
  padding: .6rem .75rem; background: #f0fdf4; border-color: #bbf7d0;
}
.ov-podcast-sub-text { display: block; font-size: .76rem; color: #047857; margin-top: .1rem; }
#podcast-status { font-size: .8rem; margin-top: .3rem; }

/* ── Small utility ─────────────────────────────────────────────── */
.ov-recompute-note-inline { font-size: .74rem; color: #9ca3af; }
.ov-interp-link-sm { color: #4a90d9; font-size: .82rem; }
.ov-interp-btn-astro { font-weight: 700; background: #eef2ff; border-color: #a5b4fc; color: #3730a3; }
.ov-interp-btn-full { width: 100%; text-align: left; }

/* ── Spin keyframe ───────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
