/* ==========================================================================
   Komponenty stranek jednotlivych programu (Normalizer, Project View).
   Navazuje na assets/m3k.css, ktery se nacita pred timto souborem.
   ========================================================================== */

/* --- Hero s podsvicenim -------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: 40px 70px; }
.hero .glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 680px;
  height: 680px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 135, 63, .15), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap, .hero .hero-top { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .accent { color: var(--accent); }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { margin-top: 26px; font-size: .85rem; color: var(--muted); }
.hero-meta b { color: var(--text); font-weight: 700; }

.app-icon { width: 64px; height: 64px; margin-bottom: 22px; border-radius: 12px; }

/* --- Sekce --------------------------------------------------------------- */
.sec-pad { padding-block: 88px; }
.sec-head { max-width: 660px; margin-bottom: 48px; }
.sec-eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.sec-head h2 { letter-spacing: -.04em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* --- Pruh s prehledem ---------------------------------------------------- */
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.strip-item { display: flex; align-items: center; gap: 14px; padding: 26px 24px; background: var(--bg); }
.strip-item svg { flex-shrink: 0; width: 26px; height: 26px; stroke: var(--accent); fill: none; }
.strip-item span { font-size: .9rem; font-weight: 600; }

/* --- Dlazdice funkci ----------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feat {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .25s, transform .25s;
}
.feat:hover { border-color: #4a4d50; transform: translateY(-4px); }
.feat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(255, 135, 63, .12);
}
.feat-ico svg { width: 23px; height: 23px; stroke: var(--accent); fill: none; }
.feat h3 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; }
.feat p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* --- Retezec kroku ------------------------------------------------------- */
.chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.step .num { margin-bottom: 12px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.step h3 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; }
.step p { color: var(--muted); font-size: .875rem; line-height: 1.6; }

/* --- Presety ------------------------------------------------------------- */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.preset-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.preset-card h3 {
  margin-bottom: 16px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--bg);
  font-size: .8rem;
  font-weight: 500;
}
.chip b { color: var(--muted); font-weight: 700; }

/* --- Technicke parametry ------------------------------------------------- */
.specs { border-top: 1px solid var(--line); background: #161719; }
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}
.spec { display: flex; justify-content: space-between; gap: 18px; padding: 18px 22px; background: var(--bg); }
.spec .k { color: var(--muted); font-size: .875rem; }
.spec .v { font-size: .875rem; font-weight: 700; text-align: right; }

/* --- Nahledy ------------------------------------------------------------- */
.gallery { border-top: 1px solid var(--line); }
.gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
.shot-wide { grid-column: 1 / -1; }
.shot-cap { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* --- Ke stazeni ---------------------------------------------------------- */
.download { border-top: 1px solid var(--line); background: #161719; }
.dl-panel {
  padding: 46px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, #241a14, #1b1d1f 62%);
}
.dl-list { display: flex; flex-direction: column; gap: 12px; margin-block: 28px; }
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.dl-info { display: flex; flex-direction: column; gap: 4px; }
.dl-info b { font-size: .95rem; font-weight: 700; }
.dl-size { color: var(--muted); font-size: .8rem; }
.hash {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .72rem;
  word-break: break-all;
  color: var(--muted);
}
.dl-note { margin-top: 24px; font-size: .82rem; line-height: 1.65; color: var(--muted); }
.dl-note b { color: var(--text); }
.warn { margin-bottom: 26px; }
.sub { margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* --- Pomocne tridy ------------------------------------------------------- */
.sec-divider { border-top: 1px solid var(--line); }
.link { color: var(--accent); }
.link:hover { color: var(--accent-hover); }

/* --- Pravni patka -------------------------------------------------------- */
.legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal p { font-size: .72rem; line-height: 1.6; color: var(--muted); }

/* --- Responzivita -------------------------------------------------------- */
@media (max-width: 1000px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .sec-pad { padding-block: 58px; }
  .sec-head { margin-bottom: 32px; }
  .strip-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .dl-panel { padding: 30px 22px; }
  .dl-row { padding: 16px; }
  .hero { padding-block: 24px 46px; }
}
