/* Kampaně — rozcestník a detail. Navazuje na base.css (Volt brand). */
:root {
  --volt-purple: #502379;
  --volt-yellow: #FDC220;
  --volt-blue:   #82D0F4;
  --volt-green:  #1BBE6F;
  --volt-red:    #E63E12;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero { text-align: center; padding: 1em 1em 2.2em; }
.hero h1 { font-size: 2.3rem; margin: .2em 0; }
.hero .lead { max-width: 700px; margin: .6em auto 1.5em; font-size: 1.12rem; color: #444; }
.hero-actions { display: flex; gap: .8em; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1em; color: #333; font-size: 1.02rem; }

/* ── Tlačítka ─────────────────────────────────────────── */
.btn {
  display: inline-block; background: var(--volt-purple); color: #fff !important;
  text-decoration: none; padding: .7em 1.7em; border-radius: 6px;
  font-weight: 700; border: none; cursor: pointer; font-family: 'Ubuntu', sans-serif;
}
.btn:hover { filter: brightness(1.12); }
.btn-outline { background: #fff; color: var(--volt-purple) !important; border: 2px solid var(--volt-purple); }
.btn-sm { padding: .45em 1.1em; font-size: .92rem; }

/* ── Sekce ────────────────────────────────────────────── */
.section { margin: 2.6em 0; }
.section > h2 {
  text-align: left; border-bottom: 3px solid var(--volt-purple);
  padding-bottom: .3em; margin-bottom: 1.2em;
}
.section-note { color: #666; margin: -0.6em 0 1.2em; font-size: .96rem; }

/* ── Karusel prioritních kampaní ──────────────────────── */
/* Bez JS: horizontální scroll-snap. Na desktopu scroll/táhnutí + viditelný
   posuvník, na mobilu nativní swipe (jedna karta = ~85 % šířky, další vykukuje). */
.carousel {
  display: flex; gap: 1.5em; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .2em .2em 1em; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  scrollbar-color: var(--volt-purple) #ece7f3;
}
/* Karty stejně široké jako v přehledu níže (stejný styl). Když je prioritních víc,
   než se vejde do řady, přebytek se posouvá — auto-posun řeší carousel.js. */
.carousel > .card { flex: 0 0 max(290px, calc((100% - 3em) / 3)); scroll-snap-align: start; }
@media (max-width: 680px) {
  .carousel > .card { flex: 0 0 88%; }
}

/* ── Mřížka karet ─────────────────────────────────────── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5em;
}
.card {
  position: relative;
  border: 1px solid #e6e1ee; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; background: #fff;
  box-shadow: 0 2px 8px rgba(80, 35, 121, .06);
  transition: transform .12s ease, box-shadow .12s ease;
}
/* Celá karta klikací na detail (stretched link přes titulek). */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:hover { color: var(--volt-purple); }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(80, 35, 121, .15); }

/* Barevný banner se šikmou hranou 21° (Voltí grafický prvek) */
.card-banner {
  height: 110px; background: var(--volt-purple); position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
}
.card-banner img { width: 100%; height: 100%; object-fit: cover; }
.card-banner .card-badge {
  position: absolute; top: .7em; left: .8em; background: rgba(255,255,255,.92);
  color: var(--volt-purple); font-weight: 700; font-size: .76rem;
  padding: .2em .7em; border-radius: 999px;
}
.card-body { padding: 1em 1.2em 1.3em; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: .1em 0 .45em; text-align: left; font-size: 1.18rem; }
.card-desc { color: #555; font-size: .95rem; line-height: 1.4; flex: 1; }
.card-actions { margin-top: 1.1em; display: flex; gap: .6em; flex-wrap: wrap; position: relative; z-index: 2; }

/* ── Teploměr ─────────────────────────────────────────── */
.thermo { margin: 1em 0 .2em; }
.thermo-track { height: 12px; background: #ece7f3; border-radius: 6px; overflow: hidden; }
.thermo-fill { height: 100%; background: var(--volt-green); border-radius: 6px; min-width: 2px; }
.thermo-label {
  font-size: .85rem; color: #444; margin-top: .4em;
  display: flex; justify-content: space-between; gap: 1em;
}
.thermo-label strong { color: var(--volt-purple); }

/* ── Detail kampaně ───────────────────────────────────── */
.campaign-detail .cover {
  height: 230px; border-radius: 10px; background: var(--volt-purple);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); margin-bottom: 1.4em; overflow: hidden;
}
.campaign-detail .cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.2em; align-items: start; }
.detail-main h1 { text-align: left; }
.detail-section { margin: 1.4em 0; }
.detail-section h3 { text-align: left; margin-bottom: .3em; }
.detail-section p { white-space: pre-line; color: #333; }
.detail-aside {
  background: #f7f4fb; border-radius: 10px; padding: 1.4em; position: sticky; top: 8.5em;
}
.detail-aside .btn { width: 100%; text-align: center; box-sizing: border-box; }
.badge {
  display: inline-block; padding: .25em .8em; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: #fff; background: var(--volt-purple);
}
.back-link { display: inline-block; margin-bottom: .8em; color: var(--volt-purple); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
