/* Aktuality – doplňky (2.5.0): Nové od minula, fotky na kartě, Načíst další, měsíce, hledání, kalendář, sdílení.
   Stejný styl jako pilulky „Co nás čeká“ a Kalendář akcí: krémové pilulky, Nunito, jemné stíny a odlesky.
   Barva štítku „Nové“ = barva motivu (--vk-barva z motiv.json). Vypínače: inc/vekose-aktuality-plus.php. */
.vk-akt-je-skryta, .vk-akt-seznam .je-skryta { display: none !important; }

/* lišta nad kartami */
.vk-akt-lista { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 14px; font-family: 'Nunito', sans-serif; }
.vk-akt-lista:not(:has(> :not([hidden]))) { display: none; } /* prázdná lišta (nic nového, nic se nehledá) nezabírá místo */
.vk-rychle .vk-akt-hledej { margin: -4px 0 -4px auto; }

/* 1) Nové od minula */
.vk-akt-novych {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 15px 6px 10px !important; border: 1px solid #f3dc9a !important; border-radius: 999px !important;
  background: #fffdf5 !important; color: #2d3e50 !important; box-shadow: 0 2px 8px rgba(80, 110, 120, .07) !important;
  font: 700 14px/1.2 'Nunito', sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: vk-cnc-prijezd .8s cubic-bezier(.2, .8, .2, 1) .5s both; transition: border-color .15s, box-shadow .15s;
}
.vk-akt-novych:hover { border-color: var(--vk-barva, #f7a823) !important; box-shadow: 0 4px 14px rgba(247, 169, 0, .16) !important; }
.vk-akt-novych:focus-visible { outline: 2px solid var(--vk-barva, #f7a823); outline-offset: 2px; }
.vk-akt-novych b { color: var(--vk-barva, #e07b00); font-weight: 800; }
.vk-akt-novych i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--vk-barva, #f7a823); flex: none; }
.vk-akt-novych i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--vk-barva, #f7a823); opacity: 0; animation: vk-akt-tep 2.4s ease-out 1.3s 3; }
.vk-akt-novych::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%);
  transform: translateX(-110%); animation: vk-cnc-odlesk 1.4s ease 1.4s both;
}
.vk-nove {
  position: relative; overflow: hidden; display: inline-block; vertical-align: top; margin-left: 6px;
  padding: 7px 11px; border-radius: 999px; background: var(--vk-barva, #f7a823); color: #fff;
  font: 800 12.5px/1 'Nunito', sans-serif; letter-spacing: .03em; box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.vk-nove::after { /* odlesk jednou za čas */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%); animation: vk-akt-odlesk 7s ease 1.2s infinite;
}
.vk-karta.je-zvyraznena { animation: vk-akt-blik 1.6s ease; }

/* 2) fotky na kartě */
.vk-karta-foto { position: relative; isolation: isolate; }
.vk-foto-pocet {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 8px; border-radius: 999px; pointer-events: none;
  background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(8px) saturate(1.4); backdrop-filter: blur(8px) saturate(1.4);
  color: #2c4a52; font: 800 12.5px/1 'Nunito', sans-serif; box-shadow: 0 2px 8px rgba(30, 50, 60, .15);
}
.vk-foto-pocet svg { flex: none; }
.vk-karta-foto img.vk-foto-dalsi {
  position: absolute !important; inset: 0; z-index: 1; opacity: 0;
  transition: opacity .8s ease, transform .3s ease !important;
}
.vk-karta-foto img.vk-foto-dalsi.je-videt { opacity: 1; }
.vk-karta:hover .vk-karta-foto img.vk-foto-dalsi { transform: scale(1.04); }

/* 3) Načíst další */
.vk-strankovani.je-nahrazene { display: none !important; }
.vk-akt-dalsi-obal { text-align: center; margin: 0 0 26px; }
.vk-akt-dalsi {
  display: inline-flex; align-items: center; gap: 4px; padding: 12px 24px !important; cursor: pointer;
  border: 2px solid #f3dc9a !important; border-radius: 999px !important; background: #fffdf5 !important;
  color: #8a5a00 !important; font: 800 15px/1 'Nunito', sans-serif; box-shadow: 0 3px 0 #efd585 !important;
  transition: border-color .15s, transform .15s; -webkit-tap-highlight-color: transparent;
}
.vk-akt-dalsi:hover { border-color: #f7a823 !important; transform: translateY(-1px); }
.vk-akt-dalsi:focus-visible { outline: 2px solid #f7a823; outline-offset: 3px; }
.vk-akt-dalsi i { display: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.vk-akt-dalsi i:first-of-type { margin-left: 6px; }
.vk-akt-dalsi.je-nacitani { cursor: progress; }
.vk-akt-dalsi.je-nacitani i { display: block; animation: vk-akt-tecka .9s ease-in-out infinite; }
.vk-akt-dalsi.je-nacitani i:nth-of-type(2) { animation-delay: .15s; }
.vk-akt-dalsi.je-nacitani i:nth-of-type(3) { animation-delay: .3s; }
.vk-akt-prisla { animation: vk-akt-prijezd .6s cubic-bezier(.2, .8, .2, 1) calc(var(--vk-i, 0) * 80ms) both; }
.vk-akt-konec { margin: 0; color: #8a98a2; font: 700 14px/1.4 'Nunito', sans-serif; }

/* 4) měsíce mezi kartami (nepřichycené – při posouvání nic nepřekrývá) */
.vk-akt-mesic { justify-self: start; margin: 2px 0 -10px; z-index: 3; pointer-events: none; }
.vk-akt-mesic span {
  display: inline-flex; justify-content: center; min-width: 9.5em; box-sizing: border-box; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 253, 245, .97); border: 1px solid #f1e3b8; box-shadow: 0 3px 12px rgba(80, 110, 120, .1);
  color: #8a6a1e; font: 800 12.5px/1 'Nunito', sans-serif; letter-spacing: .08em; text-transform: uppercase;
}

/* 5) rychlé hledání */
.vk-akt-hledej {
  margin-left: auto; display: inline-flex; align-items: center; height: 38px; border-radius: 999px;
  border: 1px solid transparent; transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.vk-akt-hledej.je-otevrene { background: #fffdf5; border-color: #f3dc9a; box-shadow: 0 2px 8px rgba(80, 110, 120, .07); }
.vk-akt-lupa {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #7d8d98 !important; box-shadow: none !important; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.vk-akt-lupa:hover, .vk-akt-hledej.je-otevrene .vk-akt-lupa { color: #b56f00 !important; }
.vk-akt-lupa:hover { background: #fff6dc !important; }
.vk-akt-lupa:focus-visible { outline: 2px solid #f7a900; outline-offset: 1px; }
.vk-akt-lupa svg, .vk-akt-sdilet svg, .vk-akt-kal summary svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vk-akt-hledej input {
  width: 0; min-width: 0; opacity: 0; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important;
  box-shadow: none !important; outline: none; color: #2d3e50; font: 600 15px/1 'Nunito', sans-serif; height: 36px;
  transition: width .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, padding .35s;
}
.vk-akt-hledej.je-otevrene input { width: 220px; opacity: 1; padding: 0 14px 0 0 !important; }
.vk-akt-hledej input::-webkit-search-cancel-button { cursor: pointer; }
.vk-akt-vysledek { flex-basis: 100%; margin: 0 !important; text-align: right; color: #5b6d7a; font: 600 14px/1.4 'Nunito', sans-serif !important; }
.vk-akt-vysledek a { color: #176f9a !important; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.vk-akt-vysledek a:hover { text-decoration: underline !important; }

/* 6) + 7) tlačítka v článku vedle srdíčka */
.vk-clanek-srdce { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.vk-clanek-srdce .vk-srdce-velke { margin: 0; }
.vk-akt-sdilet, .vk-akt-kal summary {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px !important; border: 0 !important; border-radius: 999px !important;
  font: 800 16px/1 'Nunito', sans-serif; cursor: pointer; box-shadow: none !important; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s;
}
.vk-akt-sdilet { background: #eef7fd !important; color: #176f9a !important; }
.vk-akt-sdilet:hover { background: #dff0fb !important; }
.vk-akt-sdilet.je-hotovo { background: #e4f5dc !important; color: #2d6a23 !important; }
.vk-akt-sdilet:focus-visible, .vk-akt-kal summary:focus-visible { outline: 2px solid #176f9a; outline-offset: 2px; }
.vk-akt-kal { position: relative; }
.vk-akt-kal summary { list-style: none; background: #f0f9e8; color: #2f7a2f; }
.vk-akt-kal summary::-webkit-details-marker { display: none; }
.vk-akt-kal summary:hover, .vk-akt-kal[open] summary { background: #e2f3d4; }
.vk-akt-kal summary small { font: 700 13px/1 'Nunito', sans-serif; opacity: .75; padding-left: 7px; border-left: 1px solid rgba(47, 122, 47, .3); }
.vk-akt-kal-menu {
  position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); min-width: 250px; padding: 8px; border-radius: 18px;
  background: #fff; border: 1px solid #e2eedb; box-shadow: 0 12px 30px rgba(40, 80, 60, .18); font-family: 'Nunito', sans-serif;
  animation: vk-akt-menu .22s cubic-bezier(.2, .8, .2, 1);
}
.vk-akt-kal-menu p { margin: 4px 10px 6px !important; color: #6b7a84; font: 700 13px/1.35 'Nunito', sans-serif !important; }
.vk-akt-kal-menu a { display: block; padding: 11px 12px; border-radius: 12px; color: #2c4a52 !important; font: 700 15px/1.2 'Nunito', sans-serif; text-decoration: none !important; }
.vk-akt-kal-menu a:hover, .vk-akt-kal-menu a:focus-visible { background: #f0f9e8; color: #2f7a2f !important; outline: none; }

/* mobil */
@media (max-width: 700px) {
  .vk-akt-lista { margin: -4px 0 12px; gap: 6px; }
  .vk-akt-novych { font-size: 13.5px; }
  .vk-rychle:has(.vk-akt-hledej) .vk-rychle-odkazy { width: auto; flex: 1 1 0; } /* lupa vpravo na řádku s odkazy */
  .vk-rychle .vk-akt-hledej { margin: 0 0 0 auto; height: 32px; }
  .vk-rychle .vk-akt-lupa { width: 32px; height: 32px; }
  .vk-akt-hledej.je-otevrene { flex: 1 1 100%; order: 3; height: 38px; }
  .vk-akt-hledej.je-otevrene .vk-akt-lupa { width: 38px; height: 38px; }
  .vk-akt-hledej.je-otevrene input { width: 100%; flex: 1; }
  .vk-akt-vysledek { text-align: left; order: 4; }
  .vk-akt-mesic { margin: 0 0 -8px; }
  .vk-foto-pocet { left: 8px; bottom: 8px; }
  .vk-akt-kal summary small { display: none; }
  .vk-akt-sdilet, .vk-akt-kal summary { font-size: 15px; padding: 10px 15px !important; }
}

@keyframes vk-akt-tep { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes vk-akt-odlesk { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }
@keyframes vk-akt-blik { 0%, 45% { border-color: #f7a900; box-shadow: 0 0 0 5px rgba(247, 169, 0, .25), 0 10px 26px rgba(80, 110, 120, .14); } }
@keyframes vk-akt-tecka { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes vk-akt-prijezd { from { opacity: 0; transform: translateY(14px); } }
@keyframes vk-akt-menu { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .vk-akt-novych, .vk-akt-novych::after, .vk-akt-novych i::after, .vk-nove::after, .vk-karta.je-zvyraznena, .vk-akt-prisla, .vk-akt-kal-menu { animation: none !important; }
  .vk-akt-novych::after, .vk-nove::after { display: none; }
  .vk-akt-hledej input { transition: none; }
}
@media print { .vk-akt-lista, .vk-akt-dalsi-obal, .vk-foto-pocet, .vk-akt-sdilet, .vk-akt-kal { display: none !important; } }
