/* Vánoční akce darujtecasopis.cz – reklamní blok, karty časopisů, tlačítko a vločky.
   Načítat spolu s fonts/fonts.css a colors.css. Cesty k obrázkům (img/…) jsou relativní
   k tomuto souboru, takže celou složku stačí nahrát na web beze změn. */

/* ------------------------------------------------------------------ */
/* Reklamní blok 1100×600                                              */
/* ------------------------------------------------------------------ */
.xmas-hero {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 11 / 6;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: #f6f0e6 center / cover no-repeat;
  background-image: image-set(url("img/blok-pozadi-jehlici-1100x600.webp") 1x,
                              url("img/blok-pozadi-jehlici-2200x1200.webp") 2x);
  box-shadow: 0 6px 24px rgba(80, 40, 0, .18);
  color: var(--xmas-ink);
  text-align: center;
  /* Všechny rozměry uvnitř jsou v cqw (1 cqw = 1 % šířky bloku = 11 px při 1100 px),
     takže se blok zmenšuje jako celek. */
}
.xmas-hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.4cqw 0 2cqw;
}

/* červená stuha s textem nahoře */
.xmas-hero__ribbon {
  display: inline-block;
  padding: 1cqw 6.5cqw 1.15cqw;
  background: url("img/stuha-rovna-1000.webp") center / 100% 100% no-repeat;
  color: #fff;
  font: 700 2.35cqw/1 "Mont", sans-serif;
  letter-spacing: .02em;
  text-shadow: 0 .1cqw .2cqw rgba(0, 0, 0, .35);
  filter: drop-shadow(0 .25cqw .35cqw rgba(90, 0, 0, .3));
}

/* „Nejlepší dárek“ – zlatý satén vložený do písma */
.xmas-hero__gold {
  margin: .6cqw 0 0;
  font: 900 8.2cqw/1 "Mont", sans-serif;
  letter-spacing: -.01em;
  background: url("img/zlate-vlny-1100.webp") center / cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: .12cqw rgba(120, 72, 10, .55);
  filter: drop-shadow(0 .3cqw .25cqw rgba(90, 50, 0, .45));
}
.xmas-hero__under { display: block; width: 39cqw; height: auto; margin-top: .9cqw; }
.xmas-hero__predplatne { display: block; width: 49cqw; height: auto; margin-top: .6cqw;
  filter: drop-shadow(0 .25cqw .2cqw rgba(120, 0, 0, .25)); }

.xmas-hero__claim {
  margin: 1.3cqw 0 0;
  font: 400 3.05cqw/1.05 "Bebas Neue", sans-serif;
  letter-spacing: .01em;
  color: #1d1d1b;
}

.xmas-hero__cta { margin-top: 2cqw; font-size: 1.2cqw; }
.xmas-hero__note {
  margin: 1.4cqw 0 0;
  font: 700 2.2cqw/1 "Relation", cursive;
  color: var(--xmas-red-dark);
}

/* kolečka po stranách */
.xmas-hero__circle {
  position: absolute;
  top: calc(58% - 1.5cqw);
  width: 15cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 .5cqw 1.2cqw rgba(60, 30, 0, .35);
}
.xmas-hero__circle--yellow {
  left: 12.5cqw;
  background: var(--xmas-yellow);
  font: 900 2.05cqw/1.08 "Mont", sans-serif;
  transform: rotate(-6deg);
}
.xmas-hero__circle--white {
  right: 12.5cqw;
  background: #fff;
  font: 700 1.4cqw/1.15 "Mont", sans-serif;
  transform: rotate(5deg);
}
.xmas-hero__circle--white img { width: 4.6cqw; height: auto; margin: -.6cqw 0 .4cqw; }
.xmas-hero__circle--white strong {
  display: block;
  margin-bottom: .10cqw;
  font: 700 1.5cqw/1.00 "Mont", sans-serif;
  text-transform: uppercase;
  color: var(--xmas-red);
}

/* statické zlaté vločky v bloku */
.xmas-hero__flake { position: absolute; z-index: -1; opacity: .85; pointer-events: none; }

/* Mobil: blok přestane být pevný obdélník a kolečka se seřadí pod sebe */
@media (max-width: 760px) {
  .xmas-hero { aspect-ratio: auto; container-type: normal; }
  .xmas-hero__inner { position: relative; padding: 28px 16px 24px; }
  .xmas-hero__ribbon { font-size: 15px; padding: 8px 34px 9px; }
  .xmas-hero__gold { font-size: 46px;padding-top: 8px; }
  .xmas-hero__under { width: 78%; margin-top: 8px; }
  .xmas-hero__predplatne { width: 92%; margin-top: 6px; }
  .xmas-hero__claim { font-size: 22px; margin-top: 12px; }
  .xmas-hero__circles { display: flex; gap: 20px; justify-content: center; margin-top: 16px; width: 100%; }
  .xmas-hero__circle { position: static; flex: none; width: min(134px, calc(50% - 10px)); transform: none; padding: 4px; }
  .xmas-hero__circle--yellow { font-size: 15px; }
  .xmas-hero__circle--white { font-size: 12.2px; line-height: 0.97;}
  .xmas-hero__circle--white img { width: 30px; margin: -2px 0 3px; }
  .xmas-hero__circle--white strong { text-transform: uppercase;font-size: 15.35px; }
  .xmas-hero__cta { margin-top: 18px; font-size: 14px; }
  .xmas-hero__note { font-size: 18px; margin-top: 12px; }
}
@media (min-width: 761px) { .xmas-hero__circles { display: contents; } }

/* ------------------------------------------------------------------ */
/* Tlačítko ve stylu cenovky z letáku                                  */
/* ------------------------------------------------------------------ */
.xmas-btn {
  --gift: 3.3em;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 3.1em;
  padding: .35em 1.1em .35em calc(var(--gift) * .78);
  margin-left: calc(var(--gift) * .3);
  border-radius: .7em;
  background: linear-gradient(180deg, #fffdf6 0%, #fbf1dc 55%, #f3e2bf 100%);
  border: .14em solid #d6a847;
  box-shadow:
    inset 0 0 0 .12em #fff8e4,
    0 0 0 .07em #a8782a,
    0 .25em .6em rgba(110, 60, 0, .28);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
  font-size: 16px;
}
.xmas-btn::before { /* dárek přesahující levý okraj */
  content: "";
  position: absolute;
  left: calc(var(--gift) * -.32);
  top: 50%;
  width: var(--gift);
  aspect-ratio: 240 / 221;
  transform: translateY(-55%);
  background: image-set(url("img/darek-120.webp") 1x, url("img/darek-240.webp") 2x) center / contain no-repeat;
  filter: drop-shadow(0 .15em .2em rgba(80, 0, 0, .35));
  transition: transform .2s ease;
}
.xmas-btn__top {
  font: 400 .78em/1 "Bebas Neue", sans-serif;
  letter-spacing: .04em;
  color: #3a2a12;
}
.xmas-btn__main {
  margin-top: .12em;
  font: 900 1.3em/1 "Brother 1816", "Mont", sans-serif;
  color: var(--xmas-red);
  text-transform: none;
}
.xmas-btn:hover, .xmas-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 .12em #fff8e4,
    0 0 0 .07em #a8782a,
    0 .45em 1em rgba(110, 60, 0, .35),
    0 0 1.1em rgba(240, 190, 80, .55);
}
.xmas-btn:hover::before, .xmas-btn:focus-visible::before { animation: xmas-wiggle .5s ease; }
.xmas-btn:focus-visible { outline: 3px solid var(--xmas-red); outline-offset: 3px; }
@keyframes xmas-wiggle {
  0%, 100% { transform: translateY(-55%) rotate(0); }
  25% { transform: translateY(-62%) rotate(-8deg); }
  60% { transform: translateY(-58%) rotate(6deg); }
}

/* ------------------------------------------------------------------ */
/* Karty časopisů                                                      */
/* ------------------------------------------------------------------ */
.xmas-card {
  position: relative;
  background-color: #fbf7ef;
  background-image: image-set(url("img/karta-pozadi-zlate-vlocky-240x440.webp") 1x,
                              url("img/karta-pozadi-zlate-vlocky-480x880.webp") 2x);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--xmas-beige);
  box-shadow: 0 4px 14px rgba(80, 45, 0, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.xmas-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(80, 45, 0, .24); }
.xmas-card img { box-shadow: 0 3px 10px rgba(0, 0, 0, .28); }
.xmas-card a > div > span { font-weight: 600; text-shadow: 0 0 6px rgba(255, 255, 255, .9); }

/* ------------------------------------------------------------------ */
/* Vrstva s padajícími vločkami (plní ji vlocky.js)                    */
/* ------------------------------------------------------------------ */
.xmas-snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.xmas-snow svg { position: absolute; top: 0; left: 0; will-change: transform; }
/* obsah stránky nad vločkami */
body.xmas > header, body.xmas > main, body.xmas > footer { position: relative; z-index: 1; }
