/*
Theme Name: Nové divadlo
Theme URI: https://novedivadlo.sk
Description: Bloková téma pre nezávislé Nové divadlo v Nitre.
Version: 1.2.7
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: nove-divadlo
License: GPL-2.0-or-later
*/

/* ---------- základ ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(a) { text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--wp--preset--color--cervena); outline-offset: 3px; }
img { height: auto; }

/* ---------- hlavička ---------- */
.nd-header { border-bottom: 1px solid var(--wp--preset--color--linka); }
.nd-logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; color: var(--wp--preset--color--atrament); }
.nd-logo__small { font-size: 1rem; font-weight: 600; }
.nd-logo__big { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; color: var(--wp--preset--color--cervena); }
.nd-header .wp-block-navigation a { text-decoration: none; }
.nd-header .wp-block-navigation .current-menu-item > a,
.nd-header .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--cervena-tmava); text-decoration: underline; text-underline-offset: 6px; }
.nd-header .nd-nav-cta > a { background: var(--wp--preset--color--cervena-tmava); color: #fff !important; padding: 0.7rem 1.25rem; border-radius: 999px; text-decoration: none !important; }
.nd-header .nd-nav-cta > a:hover { background: var(--wp--preset--color--cervena-najtmavsia); }

/* ---------- všeobecné komponenty ---------- */
.nd-eyebrow { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--cervena-tmava); margin: 0; }
.nd-dark .nd-eyebrow { color: #ff8a7a; }
.nd-big-cta { display: flex; flex-direction: column; gap: 12px; }
.nd-big-cta a { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; padding: 22px 24px; border-radius: 16px; font-size: 1.25rem; font-weight: 700; }
.nd-big-cta a::after { content: "→"; }
.nd-big-cta a.nd-cta-dark { background: var(--wp--preset--color--atrament); color: var(--wp--preset--color--papier); }
.nd-big-cta a.nd-cta-red { background: var(--wp--preset--color--cervena-tmava); color: #fff; }
.nd-big-cta a:hover { filter: brightness(1.12); }
.nd-rounded img, .nd-rounded { border-radius: 24px; }
.nd-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.nd-section-head h2 { margin: 0; }
.nd-section-head a { font-weight: 700; font-size: 1.1rem; }
.nd-dark { background: var(--wp--preset--color--atrament); color: var(--wp--preset--color--papier); }
.nd-dark a { color: #fff; }
.nd-big-number { font-size: clamp(5rem, 12vw, 7.5rem); font-weight: 800; line-height: 0.9; color: var(--wp--preset--color--cervena); letter-spacing: -0.04em; margin: 0; }

/* ---------- program ---------- */
.nd-program { margin-top: 0; }
.nd-filters { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-end; padding: 20px; background: var(--wp--preset--color--piesok); border-radius: 20px; margin-bottom: 40px; }
.nd-filter-group { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.nd-filter-group legend { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--sediva); margin-bottom: 8px; padding: 0; }
.nd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-chip { font: inherit; font-weight: 700; font-size: 1rem; min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 2px solid var(--wp--preset--color--atrament); background: var(--wp--preset--color--papier); color: var(--wp--preset--color--atrament); }
.nd-chip[aria-pressed="true"] { background: var(--wp--preset--color--atrament); color: var(--wp--preset--color--papier); }
.nd-count { margin-left: auto; font-weight: 600; color: var(--wp--preset--color--text-tlmeny); }
.nd-month { margin: 0 0 48px; }
.nd-month h3 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; text-transform: capitalize; }
.nd-events { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--wp--preset--color--atrament); }
.nd-event { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 20px 0; border-bottom: 1px solid var(--wp--preset--color--linka); }
.nd-event[hidden] { display: none; }
.nd-event__date { width: 128px; display: flex; flex-direction: column; }
.nd-event__day { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.nd-event__time { font-size: 0.95rem; color: var(--wp--preset--color--sediva); font-weight: 600; }
.nd-event__main { flex: 999 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nd-event__title { font-size: 1.45rem; font-weight: 700; color: var(--wp--preset--color--atrament); text-decoration: none; }
.nd-event__title:hover { color: var(--wp--preset--color--cervena-tmava); }
.nd-event__meta { font-size: 1rem; color: var(--wp--preset--color--sediva); }
.nd-tag { font-size: 0.875rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #e6e3df; color: var(--wp--preset--color--atrament); }
.nd-tag--public { background: #fde4e0; color: var(--wp--preset--color--cervena-najtmavsia); }
.nd-event__cta { min-width: 150px; text-align: center; text-decoration: none; font-weight: 700; font-size: 1rem; padding: 13px 18px; border-radius: 999px; background: var(--wp--preset--color--atrament); color: var(--wp--preset--color--papier) !important; }
.nd-event__cta:hover { background: var(--wp--preset--color--cervena-tmava); }
.nd-program-empty { font-size: 1.15rem; color: var(--wp--preset--color--text-tlmeny); }
.nd-program-note { font-size: 0.95rem; color: var(--wp--preset--color--sediva); }

/* ---------- repertoár ---------- */
.nd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.nd-card a { text-decoration: none; color: var(--wp--preset--color--atrament); display: flex; flex-direction: column; gap: 10px; }
.nd-card__img { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #3a3632; }
.nd-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.nd-card a:hover img { transform: scale(1.04); }
.nd-card__age { position: absolute; top: 12px; left: 12px; background: var(--wp--preset--color--papier); color: var(--wp--preset--color--atrament); font-size: 0.95rem; font-weight: 800; padding: 6px 10px; border-radius: 999px; }
.nd-card__title { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.nd-card__line { font-size: 1rem; color: var(--wp--preset--color--sediva); line-height: 1.4; }
.nd-card a:hover .nd-card__title { color: var(--wp--preset--color--cervena-tmava); }

/* ---------- inscenácia ---------- */
.nd-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nd-facts li { font-size: 0.95rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #e6e3df; }
.nd-facts li:first-child { background: var(--wp--preset--color--atrament); color: var(--wp--preset--color--papier); }
.nd-teacher { background: var(--wp--preset--color--piesok); border-radius: 24px; padding: 28px; }
.nd-teacher dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.nd-teacher dt { font-weight: 700; }
.nd-teacher dd { margin: 0; }
.nd-credits { font-size: 1rem; line-height: 1.7; color: var(--wp--preset--color--text-tlmeny); }
.nd-gallery img { border-radius: 14px; }

/* ---------- formulár ---------- */
.nd-form { background: #fff; border: 1px solid var(--wp--preset--color--linka); border-radius: 28px; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.nd-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.nd-field { display: flex; flex-direction: column; gap: 6px; }
.nd-field label { font-weight: 700; font-size: 0.95rem; }
.nd-field input, .nd-field select, .nd-field textarea { font: inherit; font-size: 1.05rem; padding: 13px 14px; border: 1px solid #9a948d; border-radius: 12px; background: #fff; color: inherit; }
.nd-check { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.nd-check input { width: 22px; height: 22px; }
.nd-form button { font: inherit; font-weight: 700; font-size: 1.1rem; padding: 16px 28px; border: 0; border-radius: 999px; background: var(--wp--preset--color--cervena-tmava); color: #fff; cursor: pointer; align-self: flex-start; }
.nd-form button:hover { background: var(--wp--preset--color--cervena-najtmavsia); }
.nd-hp { position: absolute !important; left: -9999px !important; }
.nd-notice { padding: 16px 20px; border-radius: 14px; font-weight: 600; }
.nd-notice--ok { background: #e3f1e6; color: #1d5130; }
.nd-notice--err { background: #fde4e0; color: #9e1a0d; }

/* ---------- kroky ---------- */
.nd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: krok; }
.nd-steps li { background: var(--wp--preset--color--piesok); border-radius: 20px; padding: 28px; counter-increment: krok; }
.nd-steps li::before { content: counter(krok); display: block; font-size: 2.75rem; font-weight: 800; color: var(--wp--preset--color--cervena); line-height: 1; margin-bottom: 10px; }
.nd-steps strong { display: block; font-size: 1.3rem; margin-bottom: 6px; }

/* ---------- päta ---------- */
.nd-footer a { color: #fff; }
.nd-footer .nd-logo__big { color: #ff6a57; }
.nd-footer .nd-logo__small { color: var(--wp--preset--color--papier); }

@media (max-width: 600px) {
  .nd-count { margin-left: 0; }
}

.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.nd-month[hidden], .nd-card[hidden] { display: none; }

/* obsah inscenácie */
.single-nd_inscenacia .wp-block-post-content h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.single-nd_inscenacia .wp-block-post-content h3 { font-size: 1.25rem; }
.nd-credits { margin-block: 0.75rem; }
.nd-event__date { flex-shrink: 0; }

/* Písmo Hagrid (Adobe Fonts): Bold na nadpisy, čísla nadpisy a ovládacie prvky. */
.nd-logo__big, .nd-big-number, .nd-event__day, .nd-month h3, .nd-steps li::before { font-family: var(--wp--preset--font-family--hagrid); font-weight: 700; letter-spacing: 0; }
.nd-logo__small, .nd-eyebrow, .nd-event__title, .nd-card__title, .nd-big-cta a, .nd-section-head a, .nd-chip, .nd-event__cta, .nd-form button, .nd-card__age, .nd-filter-group legend { font-family: var(--wp--preset--font-family--hagrid); font-weight: 700; }
.nd-big-number { letter-spacing: -0.01em; }
h1, .has-huge-font-size { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.wp-block-button__link, .nd-event__cta, .nd-big-cta a { line-height: 1.25; } .wp-block-button__link { display: inline-block; }

/* Logo s kruhovou značkou */
.nd-logo { flex-direction: row; align-items: center; gap: 12px; }
.nd-logo__mark { width: 56px; height: 56px; flex: none; border-radius: 50%; }
.nd-logo__text { display: flex; flex-direction: column; line-height: 1; }
@media (max-width: 600px) { .nd-logo__mark { width: 44px; height: 44px; } }

/* Karusel fotografií */
.nd-carousel { position: relative; margin-inline: auto; }
.nd-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; aspect-ratio: 21 / 9; background: var(--wp--preset--color--atrament); }
.nd-carousel__track::-webkit-scrollbar { display: none; }
.nd-carousel__track:focus-visible { outline: 3px solid var(--wp--preset--color--cervena-tmava); outline-offset: 4px; }
.nd-carousel__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.nd-carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-carousel__caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 48px 24px 20px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 0.95rem; }
.nd-carousel__caption a { color: #fff; font-family: var(--wp--preset--font-family--hagrid); font-weight: 700; font-size: 1.35rem; text-decoration: none; }
.nd-carousel__caption a:hover { text-decoration: underline; }
.nd-carousel__caption span { opacity: .85; }
.nd-carousel__btn { position: absolute; top: calc(50% - 26px); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(250,250,250,.92); color: var(--wp--preset--color--atrament); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.nd-carousel__btn:hover { background: #fff; }
.nd-carousel__btn--prev { left: 16px; }
.nd-carousel__btn--next { right: 16px; }
.nd-carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.nd-carousel__dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.nd-carousel__dots button::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--wp--preset--color--linka); }
.nd-carousel__dots button[aria-current="true"]::before { background: var(--wp--preset--color--cervena-tmava); inset: 7px; }
@media (max-width: 600px) {
  .nd-carousel__track { aspect-ratio: 4 / 3; border-radius: 16px; }
  .nd-carousel__btn { width: 40px; height: 40px; top: calc(50% - 20px); }
  .nd-carousel__caption { padding: 40px 16px 14px; }
  .nd-carousel__caption a { font-size: 1.1rem; }
}

/* Partneri a donori */
.nd-partners { max-width: 1200px; margin-inline: auto; text-align: center; }
.nd-partners__title { font-family: var(--wp--preset--font-family--hagrid); font-weight: 700; font-size: 1.35rem; margin: 0 0 1.5rem; }
.nd-partners__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 40px; }
.nd-partners__row + .nd-partners__row { margin-top: 1.75rem; }
.nd-partners__row img { display: block; height: auto; mix-blend-mode: multiply; }
.nd-partners__row--main img { width: auto; max-height: 90px; max-width: min(100%, 440px); }
.nd-partners__row--small img { width: 120px; }
.nd-partners-wrap + .nd-footer { margin-top: 0 !important; }
.nd-big-cta a::after, .nd-carousel__btn { font-family: Archivo, system-ui, sans-serif; font-weight: 600; }
.nd-footer .nd-logo__big { font-size: 1.5rem; white-space: nowrap; }
.nd-event__thumb { flex: none; display: block; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--wp--preset--color--piesok); }
.nd-event__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Program na mobile: prehľadná karta – fotka vľavo, dátum a názov vpravo, štítok a tlačidlo v spodnom riadku */
@media (max-width: 600px) {
  .nd-event { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb date date" "thumb main main" "tag tag cta"; gap: 8px 14px; align-items: center; padding: 18px 0; }
  .nd-event:not(:has(.nd-event__thumb)) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date date" "main main" "tag cta"; }
  .nd-event__thumb { grid-area: thumb; width: 64px; height: 64px; align-self: start; }
  .nd-event__date { grid-area: date; width: auto; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
  .nd-event__day { font-size: 1.35rem; }
  .nd-event__time { white-space: normal; }
  .nd-event__main { grid-area: main; min-width: 0; }
  .nd-event__title { font-size: 1.2rem; line-height: 1.2; }
  .nd-event__meta { font-size: 0.95rem; line-height: 1.35; }
  .nd-tag { grid-area: tag; justify-self: start; font-size: 0.8rem; padding: 5px 10px; line-height: 1.25; }
  .nd-event__cta { grid-area: cta; width: auto; min-width: 0; padding: 10px 18px; font-size: 0.95rem; justify-self: end; }
}

/* Šípky (→ ←) zo systémového písma – Hagrid ich kreslí nezvyčajne */
@font-face { font-family: "nd-sipky"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Segoe UI"), local("DejaVu Sans"), local("Roboto"); unicode-range: U+2190-21FF; font-display: swap; }
