/* TalePort soutěž — statická landing (barvy a typografie podle Figma exportu) */

:root {
  --c-orange: #f49c47;
  --c-orange-alt: #f2913e;
  --c-navy: #091e29;
  --c-dark: #0c1014;
  --c-teal-card: #00343e;
  --c-cream: #ede6c3;
  --c-yellow-btn: #ffef9e;
  --c-btn-text: #000000;
  --c-on-cream-strong: #000000;
  --c-on-cream-body: #1a1a1a;
  --c-muted: #b0c0c3;
  --c-border-teal: #335d65;
  --c-faq-heading: #001a1f;
  --c-faq-body: #1a1a1a;
  --c-badge-text: #28282b;
  --c-body-light: #808080;
  --c-body-cream: #ede6c3;
  --font-display: "Glee Finder CZ", "Glee Finder", "Outfit", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --container: 900px;
  --narrow: 680px;
  --pad-x: clamp(22px, 5.5vw, 56px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: #fff;
  background: var(--c-navy);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.narrow {
  max-width: var(--narrow);
  margin-left: auto;
  margin-right: auto;
}

/* ——— Hero ——— */
.section-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 100px;
  padding-top: 220px;
}

.section-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(9, 30, 41, 0.7), #091e29),
    #091e29
      url("assets/hero-background.png")
      center / cover no-repeat;
}

.section-hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(20px, 3vw, 28px);
  width: 100%;
}

.hero-title {
  margin: 0;
  max-width: none;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-orange);
  text-align: left;
}

.hero-lead {
  margin: 0;
  max-width: min(var(--narrow), 100%);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #fff;
  text-align: left;
}

.hero-stack > .btn {
  align-self: flex-start;
}

/* ——— Countdown ——— */
.countdown-heading {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1;
  color: var(--c-orange);
  text-align: left;
}

.timer-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .timer-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.timer-cell {
  position: relative;
  min-height: 199px;
  background: var(--c-dark);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}

.timer-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1;
  color: var(--c-orange);
}

.timer-label {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--c-yellow-btn);
}

/* ——— Intro card (cream) ——— */
.section-intro {
  background: var(--c-navy);
  padding: 40px var(--pad-x) 100px;
}

.card-cream {
  max-width: min(720px, 100%);
  margin: 0 auto;
  background: var(--c-cream);
  border-radius: 10px;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 48px) clamp(40px, 5vw, 56px);
}

.card-cream h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--c-on-cream-strong);
}

.card-cream p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--c-on-cream-body);
}

/* ——— O soutěži ——— */
.section-about-dark {
  background: var(--c-navy);
  padding: 40px var(--pad-x) 100px;
}

.section-heading-center {
  margin: 0 0 32px;
  font-size: 32px;
  line-height: 1;
  color: var(--c-orange);
  text-align: center;
}

.subtitle-center {
  margin: 0 auto 32px;
  max-width: min(var(--narrow), 100%);
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-cream);
}

.triple-cards {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

@media (min-width: 900px) {
  .triple-cards {
    flex-direction: row;
    align-items: stretch;
  }

  .triple-cards > .info-card {
    flex: 1;
  }
}

.info-card {
  background: var(--c-navy);
  border: 1px solid var(--c-cream);
  border-radius: 24px;
  padding: 32px 32px 40px;
}

.info-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--c-orange);
}

.info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--c-muted);
}

.partners-block {
  margin-top: 64px;
  text-align: center;
}

.partners-heading {
  margin: 0 0 32px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.partner-logo {
  height: 64px;
  width: auto;
  display: block;
}

@media (min-width: 900px) {
  .partner-logo {
    height: 80px;
  }
}

/* ——— Pravidla ——— */
.section-pravidla {
  background: var(--c-dark);
  padding: 100px var(--pad-x);
}

.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 56px;
}

.rules-row {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

@media (min-width: 900px) {
  .rules-row {
    flex-direction: row;
  }

  .rules-row > .rule-tile {
    flex: 1;
  }
}

.rule-tile {
  display: flex;
  align-items: stretch;
  background: var(--c-teal-card);
  border-radius: 24px;
  padding: 16px 32px;
  min-height: 0;
}

.rule-inner {
  flex: 1 1 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.rule-num-col {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  padding-right: 16px;
}

.rule-num-col::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-border-teal);
}

.rule-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--c-muted);
}

.rule-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--c-orange);
}

.rule-body {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--c-muted);
}

.rule-body strong {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.tips-heading {
  margin: 0 auto 32px;
  max-width: var(--container);
  font-size: 28px;
  line-height: 1.25;
  color: var(--c-orange);
  text-align: center;
}

.tip-box {
  max-width: min(var(--narrow), 100%);
  margin: 0 auto 26px;
  border: 1px solid var(--c-cream);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tip-box:last-of-type {
  margin-bottom: 0;
}

.tip-box svg {
  flex-shrink: 0;
}

.tip-box .lead {
  font-weight: 600;
  color: var(--c-cream);
  margin: 0 0 8px;
}

.tip-box .body {
  margin: 0;
  font-weight: 400;
  color: var(--c-cream);
  font-size: 16px;
}

.cta-publish {
  text-align: center;
  max-width: 697px;
  margin: 56px auto 0;
}

.cta-publish h2 {
  margin: 0 0 20px;
  font-size: clamp(40px, 8vw, 60px);
  line-height: 1;
  color: var(--c-orange-alt);
}

.cta-publish > p {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--c-cream);
}

/* ——— Hlasování ——— */
.section-hlasovani {
  background: var(--c-navy);
  padding: 100px var(--pad-x);
}

.badge-tilt {
  display: inline-block;
  transform: rotate(-3.59deg);
}

.badge-kolo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  background: var(--c-orange);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--c-badge-text);
}

.vote-card {
  background: var(--c-dark);
  border: 1px solid var(--c-cream);
  border-radius: 24px;
  padding: 24px 32px 40px;
  margin-bottom: 32px;
}

.vote-card:last-child {
  margin-bottom: 0;
}

.vote-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--c-orange);
}

.vote-card .small {
  font-size: 14px;
  color: var(--c-muted);
  margin: 0 0 16px;
}

.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 32px;
}

.info-row:first-of-type {
  margin-top: 0;
}

.info-row .title {
  font-weight: 600;
  color: var(--c-muted);
  margin: 0 0 4px;
}

.info-row .text {
  margin: 0;
  font-size: 16px;
  color: var(--c-muted);
}

/* ——— Registrace ——— */
.section-register {
  background: var(--c-dark);
  padding: 100px var(--pad-x);
}

.register-block {
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
}

.register-block h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--c-orange);
}

.register-block .sub {
  margin: 0 0 50px;
  font-size: 16px;
  color: var(--c-body-light);
}

.register-embed {
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0 auto;
}

.register-embed iframe {
  display: block;
  width: 100%;
  height: 850px;
  margin: 0 auto;
  border: none;
}

/* ——— FAQ ——— */
.section-faq {
  background: var(--c-navy);
  padding: 100px var(--pad-x);
}

.faq-list {
  max-width: min(800px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--c-cream);
  border-radius: 16px;
  padding: 26px 32px 40px;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.faq-q h3 {
  margin: 0;
  flex: 1;
  max-width: 650px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--c-faq-heading);
}

.faq-item p {
  margin: 0;
  max-width: 721px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.66;
  font-weight: 500;
  color: var(--c-faq-body);
}

.section-footer-faq {
  text-align: center;
  margin-top: 32px;
}

.section-footer-faq h2 {
  margin: 0 0 32px;
  font-size: 32px;
  color: var(--c-orange);
}

.section-footer-faq p {
  margin: 0 auto;
  max-width: min(var(--narrow), 100%);
  font-size: 16px;
  line-height: 24px;
  color: var(--c-cream);
}

.section-footer-faq a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer styles live in /shared/navbar.css */
