/* ============================================================
   Visualbook 6.0 — komponenty pro prezentaci updatu
   (homepage sekce #novinky + vlastnosti.html)
   ============================================================ */

/* ---- Hero announcement pill (odkazová varianta .vb-hero__badge) ---- */
a.vb-hero__badge {
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

a.vb-hero__badge:hover,
a.vb-hero__badge:focus {
  background: rgba(254, 27, 63, 0.22);
  border-color: rgba(254, 27, 63, 0.55);
  color: #ff4d63;
  text-decoration: none;
  transform: translateY(-1px);
}

a.vb-hero__badge .ri-arrow-right-line {
  font-size: 14px;
  transition: transform 0.2s ease;
}

a.vb-hero__badge:hover .ri-arrow-right-line {
  transform: translateX(2px);
}

/* ---- Badge verze 6.0 (jednoduchý pill bez stroke) ---- */
.vb6-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 0.68rem 1.2rem;
  border-radius: 999px;
  background: rgba(254, 27, 63, 0.12);
  color: #fe1b3f;
}

/* ---- Sekce ---- */
.vb6 {
  padding-top: 4rem;
}

@media (max-width: 767px) {
  .vb6 {
    padding-top: 2.5rem;
  }
}

.vb6__header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.vb6__header h2 em {
  font-style: normal;
  color: #fe1b3f;
}

.vb6__lead {
  color: #A8A8A8;
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto;
}

/* ---- Karty (sdílí glass povrch definovaný níže u .vb6-glass) ---- */
.vb6-card h3,
.vb6-card h5 {
  color: #FAFAFA;
  position: relative;
  z-index: 1;
}

.vb6-card p {
  color: #A8A8A8;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.vb6-card__icon {
  font-size: 26px;
  color: #fe1b3f;
}

/* ---- Liquid glass karty (Pro koho + akcentové karty) ---- */
.vb6-glass,
.vb6-card {
  position: relative;
  height: 100%;
  border-radius: 18px;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.012) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(45%);
  backdrop-filter: blur(18px) saturate(45%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Horní „sheen" — světelný přeliv skla */
.vb6-glass::before,
.vb6-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 65% at 50% -20%, rgba(255, 255, 255, 0.09) 0%, transparent 60%);
  pointer-events: none;
}

.vb6-glass:hover,
.vb6-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 56px rgba(0, 0, 0, 0.45);
}

/* Ikona ve skleněném čtverci */
.vb6-glass__icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fe1b3f;
  background: linear-gradient(145deg, rgba(254, 27, 63, 0.2) 0%, rgba(254, 27, 63, 0.06) 100%);
  border: 1px solid rgba(254, 27, 63, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vb6-glass h4,
.vb6-glass h5 {
  position: relative;
  z-index: 1;
}

.vb6-glass p,
.vb6-glass ul {
  position: relative;
  z-index: 1;
}

/* Kompaktní varianta pro menší karty */
.vb6-glass--compact {
  padding: 1.25rem 1.5rem;
}

/* Fallback bez podpory backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vb6-glass,
  .vb6-card {
    background: linear-gradient(160deg, #272727 0%, #1d1d1d 100%);
  }
}

@media (max-width: 767px) {
  .vb6-glass,
  .vb6-card {
    padding: 1.5rem;
  }

  .vb6-glass--compact {
    padding: 1.25rem;
  }
}

/* ---- Štítek „Nové" (zelený, konzistentní s badge Novinka) ---- */
.vb6-tag {
  display: inline-block;
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.vb6-tag--improved {
  background: rgba(254, 27, 63, 0.14);
  color: #ff4d63;
  border-color: rgba(254, 27, 63, 0.3);
}

/* ---- Chat mock (konverzace s AI asistentem) ---- */
.vb6-chat {
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vb6-chat__msg {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.vb6-chat__avatar {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #dddfe8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vb6-chat__avatar--ai {
  color: #fff;
  font-size: 15px;
  background: #fe1b3f;
  border: none;
}

.vb6-chat__msg p {
  margin: 0;
  color: #c3c6d4;
  font-size: 14.5px !important;
  line-height: 1.55;
}

.vb6-chat__msg p strong {
  color: #fafafa;
}

.vb6-chat__checks {
  list-style: none;
  padding: 0.35rem 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vb6-chat__checks li {
  color: #A8A8A8;
  font-size: 14px !important;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.vb6-chat__checks li i {
  color: #22c55e;
  font-size: 15px;
  position: relative;
  top: 1px;
}

.vb6-chat__typing {
  display: inline-flex;
  gap: 4px;
  padding-top: 2px;
}

.vb6-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b6f80;
  animation: vb6Typing 1.2s ease-in-out infinite;
}

.vb6-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.vb6-chat__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes vb6Typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---- Agent task rail (schopnosti AI agenta, vlastnosti #ai) ---- */
.vb6-agent-rail {
  display: flex;
  flex-direction: column;
}

.vb6-agent-rail__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  padding-bottom: 1.5rem;
}

.vb6-agent-rail__item:last-child {
  padding-bottom: 0;
}

/* Hairline spojnice mezi ikonami */
.vb6-agent-rail__item::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.vb6-agent-rail__item:last-child::before {
  display: none;
}

.vb6-agent-rail__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fe1b3f;
  background: linear-gradient(145deg, rgba(254, 27, 63, 0.18) 0%, rgba(254, 27, 63, 0.05) 100%);
  border: 1px solid rgba(254, 27, 63, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vb6-agent-rail__item:hover .vb6-agent-rail__icon {
  transform: translateY(-2px);
  border-color: rgba(254, 27, 63, 0.45);
}

.vb6-agent-rail__body h6 {
  color: #FAFAFA;
  font-size: 17px;
  margin-bottom: 0.3rem;
}

.vb6-agent-rail__body p {
  color: #A8A8A8;
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---- Chips (AI nástroje, jazyky) ---- */
.vb6-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.vb6-chips__label {
  color: #6b6f80;
  font-size: 12.5px;
  margin-right: 0.15rem;
}

.vb6-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: #dddfe8;
  line-height: 1.6;
  white-space: nowrap;
}

.vb6-chip--accent {
  border-color: rgba(254, 27, 63, 0.35);
  background: rgba(254, 27, 63, 0.1);
  color: #ff8095;
}

/* ---- Editor mock (inline editace na webu) ---- */
.vb6-editor-mock {
  position: relative;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}

.vb6-editor-mock__toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.vb6-editor-mock__toolbar i {
  font-size: 15px;
  color: #8b8f9e;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.vb6-editor-mock__toolbar i.is-active {
  color: #fafafa;
  background: rgba(254, 27, 63, 0.25);
}

.vb6-editor-mock__toolbar .vb6-editor-mock__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.3rem;
}

.vb6-editor-mock__body {
  padding: 1rem 1.1rem 1.15rem;
}

.vb6-editor-mock__body p {
  margin: 0;
  color: #c3c6d4;
  font-size: 14.5px !important;
  line-height: 1.6;
}

.vb6-editor-mock__body mark {
  background: rgba(254, 27, 63, 0.22);
  color: #ff8095;
  border-radius: 3px;
  padding: 0 3px;
}

.vb6-editor-mock__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: #fe1b3f;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: vb6Caret 1.1s steps(1) infinite;
}

@keyframes vb6Caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.vb6-editor-mock__pencil {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fe1b3f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 10px rgba(254, 26, 63, 0.45);
}

/* ---- Jazykové chips ---- */
.vb6-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vb6-lang {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #dddfe8;
  line-height: 1.7;
}

.vb6-lang--new {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

/* ---- CTA řádek pod sekcí ---- */
.vb6__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* ---- Statistiky (čísla nejsou nadpisy — typografie převzatá z body h2) ---- */
.vb6-stat__value {
  font-family: "fieldwork", sans-serif;
  letter-spacing: -0.031rem;
}

/* ---- Responsivita ---- */
@media (max-width: 767px) {
  .vb6-chat {
    padding: 0.95rem 1rem;
  }
}

/* ---- Šetrnost k uživatelům s omezením animací ---- */
@media (prefers-reduced-motion: reduce) {
  .vb6-chat__typing span,
  .vb6-editor-mock__caret {
    animation: none;
  }

  .vb6-card,
  .vb6-agent-rail__icon,
  a.vb-hero__badge {
    transition: none;
  }
}
