/* Galéria skenov — dizajnový systém prevzatý z ortoticke / ortoped (assets/css/site.css) */
:root {
  --bg: #ffffff;
  --text: #1e2d4a;
  --heading: #1a2f57;
  --muted: #5c6b80;
  --line: #e4e9f0;
  --card-line: #e6e8ec;
  --navy: #1e2d4a;
  --magenta: #b8177e;
  --header-bg: #fafbfc;
  --radius: 4px;
  --focus-ring: 0 0 0 3px rgba(184, 23, 126, 0.1);
  --container: 1140px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Lokálne DM Sans (rovnaké súbory ako ortoticke/ortoped) */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

/* Typografia */
.eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.heading-display {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--heading);
}

.text-lead {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* Hlavička + pätička */
.site-header,
.site-footer {
  background: var(--header-bg);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand__logo {
  width: auto;
  height: 56px;
  max-width: 210px;
  object-fit: contain;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* Tlačidlá */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--magenta);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(0.93);
}

.btn--outline {
  background: #fff;
  color: var(--heading);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.btn--sm {
  padding: 7px 12px;
}

.btn--block {
  width: 100%;
  padding-block: 13px;
}

/* Formulár (prihlásenie) */
.form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.form__input {
  width: 100%;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--header-bg);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.form__input:hover {
  border-color: #cdd5e0;
}

.form__input:focus {
  border-color: var(--magenta);
  background: #fff;
  box-shadow: var(--focus-ring);
}

.alert {
  margin: 0 0 16px;
  padding: 10px 13px;
  border: 1px solid rgba(184, 23, 126, 0.3);
  border-radius: var(--radius);
  background: #fdf3f8;
  font-size: 13px;
  color: var(--magenta);
}

/* Prihlásenie */
.login {
  width: min(380px, calc(100% - 32px));
  margin: auto;
  padding: 32px 28px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: #fff;
}

.login .brand__logo {
  margin-bottom: 28px;
}

.login .heading-display {
  margin-bottom: 24px;
}

/* Galéria */
.page {
  flex: 1;
  padding-block: 40px 56px;
}

.page__head {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

/* Karta — rovnaká ako .categoryCard na ortoticke */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(184, 23, 126, 0.4);
  box-shadow: 0 8px 22px rgba(20, 30, 60, 0.08);
  transform: translateY(-2px);
}

.card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 10px 12px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  border-top: 1px solid #eef0f3;
  background: var(--header-bg);
}

.card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.card__text {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.card__meta {
  font-size: 11px;
  color: var(--muted);
}

.card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.card__actions form {
  margin: 0;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.empty {
  padding: 56px 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand__logo {
    height: 44px;
  }

  .page {
    padding-block: 28px 40px;
  }
}
