/* ===========================================================================
   StageHub — dizajn. Teplá, redakčná, elegantná paleta (žiadna čistá biela).
   =========================================================================== */

:root {
  /* Paleta z briefu */
  --bg-grad: radial-gradient(120% 90% at 85% 0%, #F5D5C0 0%, #F6E2CE 38%, #F1E4D6 70%);
  --surface: #FFFDFB;
  --surface-border: rgba(150, 100, 70, 0.14);
  --accent: #C6741F;      /* jantár / zlatá */
  --accent-bright: #F2A950;
  --accent-2: #E8817A;    /* koralová */
  --dark: #1C1917;
  --dark-text: #F6E4CC;
  --text: #2A211B;
  --text-soft: #6B5A4E;

  --shadow-sm: 0 1px 2px rgba(80, 50, 30, 0.05);
  --shadow: 0 6px 24px rgba(120, 80, 50, 0.10);
  --shadow-lg: 0 18px 50px rgba(120, 75, 45, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-grad);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin-left: auto; margin-right: auto; padding: 0 24px; }
.section { padding: 56px 0; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: var(--dark-text); box-shadow: var(--shadow); }
.btn-dark:hover { background: #2a2521; color: #fff2df; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #b1651a; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--surface-border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 246, 240, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--surface-border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--dark); color: var(--accent-bright);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--text); letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav > a { color: var(--text-soft); font-weight: 500; font-size: 0.95rem; }
.site-nav > a:hover, .site-nav > a.active { color: var(--text); text-decoration: none; }

.nav-genres { position: relative; }
.nav-genres-btn { background: none; border: none; color: var(--text-soft); font: inherit; font-weight: 500; font-size: 0.95rem; cursor: pointer; padding: 0; }
.nav-genres:hover .nav-genres-btn { color: var(--text); }
.nav-genres-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 220px;
  display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: .18s;
}
.nav-genres:hover .nav-genres-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-genres-menu a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 0.92rem; }
.nav-genres-menu a:hover { background: #FBEEE2; text-decoration: none; }
.nav-genres-menu .count { color: var(--text-soft); font-size: 0.8rem; }
.nav-empty { padding: 8px 12px; color: var(--text-soft); font-size: 0.88rem; }

.nav-search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 999px; padding: 3px 3px 3px 14px; box-shadow: var(--shadow-sm); }
.nav-search input { border: none; background: none; outline: none; font: inherit; font-size: 0.9rem; width: 130px; color: var(--text); }
.nav-search button { border: none; background: var(--dark); color: var(--dark-text); width: 30px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 1rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: 72px 0 32px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin: 0 0 14px; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 18px; }
.hero-sub { font-size: 1.15rem; color: var(--text-soft); max-width: 620px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Section headers ----------------------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.back-link { color: var(--text-soft); font-size: 0.92rem; }

/* ---- Grid + Cards -------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

.card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { display: block; aspect-ratio: 16 / 10; background: #F3E4D7; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--accent-bright); background: var(--dark); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-genres { display: flex; gap: 6px; flex-wrap: wrap; }
.card-title { font-size: 1.28rem; margin: 0; line-height: 1.25; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-excerpt { color: var(--text-soft); font-size: 0.95rem; margin: 0; flex: 1; }
.card-meta { display: flex; gap: 8px; align-items: center; color: var(--text-soft); font-size: 0.85rem; margin-top: 4px; }

.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; letter-spacing: .01em;
  background: #FBEADF; color: var(--accent); border: 1px solid rgba(198,116,31,0.18); }
.tag:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---- Pager --------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; }
.pager-info { color: var(--text-soft); font-size: 0.9rem; }
.empty { color: var(--text-soft); text-align: center; padding: 48px 0; font-size: 1.05rem; }

/* ---- Article ------------------------------------------------------------- */
.article-page { padding-bottom: 40px; }
.article-header { padding-top: 48px; padding-bottom: 8px; text-align: center; }
.article-genres { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.article-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 16px; }
.article-meta { display: flex; gap: 10px; justify-content: center; align-items: center; color: var(--text-soft); font-size: 0.92rem; flex-wrap: wrap; }
.article-cover { margin: 32px auto; max-width: 960px; padding: 0 24px; }
.article-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Prose / typografia obsahu */
.prose { font-size: 1.1rem; color: #33291f; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font-size: 1.7rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.5em 0 .5em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em auto; box-shadow: var(--shadow-sm); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { text-align: center; color: var(--text-soft); font-size: 0.9rem; margin-top: .6em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent-bright); color: var(--text-soft); font-style: italic; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose figure.wp-block-embed { position: relative; }
.related { border-top: 1px solid var(--surface-border); margin-top: 48px; }

/* ---- Static / forms ------------------------------------------------------ */
.lead { font-size: 1.15rem; color: var(--text-soft); }
.page-header { padding-top: 48px; text-align: center; }

.contact-details { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 8px; }
.contact-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-sm); color: var(--text); font-weight: 500; transition: transform .15s, box-shadow .15s; }
.contact-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); color: var(--accent); }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--dark); color: var(--accent-bright); font-size: 1.15rem; }
.contact-label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 600; }

.form-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; margin-top: 20px; }
.form-card label { display: grid; gap: 6px; font-weight: 500; font-size: 0.92rem; color: var(--text-soft); }
.form-card input, .form-card textarea, .form-card select {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 11px 14px; border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198,116,31,0.12); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 18px 0; font-size: 0.95rem; }
.alert-ok { background: #E7F4E4; color: #285c22; border: 1px solid #bfe0b6; }
.alert-err { background: #FBE6E4; color: #8a2b25; border: 1px solid #f2c2bd; }

.search-big { display: flex; gap: 12px; margin: 8px 0 32px; }
.search-big input { flex: 1; font-size: 1.1rem; padding: 14px 18px; border: 1px solid var(--surface-border); border-radius: 999px; background: var(--surface); outline: none; }
.search-big input:focus { border-color: var(--accent); }
.search-count { color: var(--text-soft); margin-bottom: 18px; }

.error-page { text-align: center; padding: 80px 0; }
.error-page .hero-title { font-size: 5rem; color: var(--accent); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--dark-text); margin-top: 64px; }
.footer-inner { display: flex; gap: 48px; padding: 56px 24px 32px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(246,228,204,0.7); font-size: 0.95rem; margin-top: 12px; }
.footer-cols { display: flex; gap: 56px; margin-left: auto; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 0.95rem; margin: 0 0 12px; }
.footer-cols a { display: block; color: rgba(246,228,204,0.72); font-size: 0.92rem; padding: 4px 0; }
.footer-cols a:hover { color: var(--accent-bright); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(246,228,204,0.12); padding: 18px 24px; color: rgba(246,228,204,0.55); font-size: 0.85rem; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--surface-border);
    padding: 16px 24px 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .25s ease; margin-left: 0;
  }
  body.nav-open .site-nav { transform: translateY(0); }
  .site-nav > a { padding: 10px 0; }
  .nav-genres-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 4px 0 4px 14px; min-width: 0; }
  .nav-genres { padding: 6px 0; }
  .nav-search { margin-top: 8px; }
  .nav-search input { width: 100%; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-cols { margin-left: 0; gap: 40px; }
}
