/* ==========================================================================
   VGROUP Web – kalendář akcí
   ========================================================================== */
.vgw-root .vgw-events { padding: 50px 0 60px; background: #fff; container-type: inline-size; }
.vgw-root .vgw-events__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.vgw-root .vgw-events__title { font-family: var(--vgw-font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.1; color: var(--vgw-primary); text-transform: uppercase; }
.vgw-root .vgw-events__sub { margin-top: 8px; font-size: 16px; color: var(--vgw-muted); }
.vgw-root .vgw-events__controls { display: flex; flex-wrap: wrap; gap: 10px; }
.vgw-root .vgw-events .vgw-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--vgw-soft); }
.vgw-root .vgw-events .vgw-seg a { padding: 9px 18px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: #3a4152; transition: background-color .2s, color .2s; }
.vgw-root .vgw-events .vgw-seg a:hover { color: var(--vgw-primary); }
.vgw-root .vgw-events .vgw-seg a.is-active { background: var(--vgw-primary); color: #fff; box-shadow: 0 4px 12px rgba(11, 31, 86, .22); }

.vgw-root .vgw-btn--line { background: #fff; color: var(--vgw-primary); border-color: #cfd6e4; }
.vgw-root .vgw-btn--line:hover { border-color: var(--vgw-primary); }
.vgw-root .vgw-btn--accent { background: var(--vgw-accent); border-color: var(--vgw-accent); color: #fff; }
.vgw-root .vgw-btn svg:not(.vgw-arrow) { width: 17px; height: 17px; }

/* štítky a stav */
.vgw-root .vgw-ev__tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: #eaf0fb; color: var(--vgw-primary); font-size: 11.5px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.vgw-root .vgw-ev__status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.vgw-root .vgw-ev__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vgw-root .vgw-ev__status--future { background: #e6f6ec; color: #15803d; }
.vgw-root .vgw-ev__status--now { background: var(--vgw-accent); color: #fff; }
.vgw-root .vgw-ev__status--now::before { animation: vgw-pulse 1.2s infinite; }
.vgw-root .vgw-ev__status--past { background: #eef0f4; color: #6b7384; }
.vgw-root .vgw-ev__status--tbd { background: #fff3dc; color: #a15c07; }
.vgw-root .vgw-ev__status--cancel, .vgw-root .vgw-ev__status--moved { background: #fde8e8; color: #b91c1c; }
@keyframes vgw-pulse { 50% { opacity: .3; } }

/* zvýrazněná nejbližší akce */
.vgw-root .vgw-evf { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); margin-bottom: 34px; border-radius: 24px; overflow: hidden; background: var(--vgw-primary); color: #fff; box-shadow: 0 18px 44px rgba(11, 31, 86, .18); }
.vgw-root .vgw-evf__media { position: relative; min-height: 300px; background: radial-gradient(110% 110% at 20% 20%, #2f5fcc 0%, var(--vgw-primary) 70%); }
.vgw-root .vgw-evf__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vgw-root .vgw-evf--noimg .vgw-evf__media::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='.6'%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / 60% no-repeat; }
.vgw-root .vgw-evf__count { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 116px; height: 116px; border-radius: 50%; background: var(--vgw-accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); text-align: center; }
.vgw-root .vgw-evf__count strong { font-family: var(--vgw-font-display); font-size: 38px; font-weight: 800; line-height: 1; }
.vgw-root .vgw-evf__count span { margin-top: 4px; font-size: 12px; font-weight: 700; line-height: 1.2; max-width: 80px; }
.vgw-root .vgw-evf__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 34px 36px; }
.vgw-root .vgw-evf__kicker { font-size: 12.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #ff9b9f; }
.vgw-root .vgw-evf .vgw-ev__tag { background: rgba(255, 255, 255, .14); color: #fff; }
.vgw-root .vgw-evf__title { font-family: var(--vgw-font-display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.12; }
.vgw-root .vgw-evf .vgw-ev__meta { color: rgba(255, 255, 255, .9); }
.vgw-root .vgw-evf .vgw-ev__meta svg { color: #fff; }
.vgw-root .vgw-evf__desc { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.vgw-root .vgw-evf .vgw-ev__actions { margin-top: 6px; }
.vgw-root .vgw-evf .vgw-btn--primary { background: #fff; border-color: #fff; color: var(--vgw-primary); }
.vgw-root .vgw-evf .vgw-btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.vgw-root .vgw-evf .vgw-ev__ics { color: #fff; }

/* seznam */
.vgw-root .vgw-events__list { display: flex; flex-direction: column; gap: 12px; }
.vgw-root .vgw-events__month { display: flex; align-items: center; gap: 14px; margin: 18px 0 2px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--vgw-muted); }
.vgw-root .vgw-events__month:first-child { margin-top: 0; }
.vgw-root .vgw-events__month::after { content: ""; flex: 1; height: 1px; background: #e3e7ee; }

.vgw-root .vgw-ev { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 16px 20px 16px 16px; border: 1px solid #e3e7ee; border-radius: 18px; background: #fff; transition: box-shadow .25s, transform .25s, border-color .25s; }
.vgw-root .vgw-ev:hover { border-color: #d3d9e5; box-shadow: 0 12px 30px rgba(11, 31, 86, .09); transform: translateY(-2px); }
.vgw-root .vgw-ev__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 16px; background: var(--vgw-primary); color: #fff; text-align: center; line-height: 1; }
.vgw-root .vgw-ev__date strong { font-family: var(--vgw-font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.vgw-root .vgw-ev__date span { margin-top: 6px; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.vgw-root .vgw-ev__date--word { background: #eaf0fb; color: var(--vgw-primary); }
.vgw-root .vgw-ev__date--word span { margin: 0; padding: 0 6px; font-size: 13px; letter-spacing: .04em; opacity: 1; word-break: break-word; line-height: 1.15; }
.vgw-root .vgw-ev__body { min-width: 0; }
.vgw-root .vgw-ev--img { grid-template-columns: 84px 150px minmax(0, 1fr) auto; }
.vgw-root .vgw-ev__thumb { display: block; width: 150px; height: 100px; border-radius: 12px; overflow: hidden; background: var(--vgw-soft); }
.vgw-root .vgw-ev__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vgw-root .vgw-ev:hover .vgw-ev__img { transform: scale(1.05); }
.vgw-root .vgw-ev--past .vgw-ev__img { filter: saturate(.6); }
.vgw-root .vgw-ev__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.vgw-root .vgw-ev__title { font-family: var(--vgw-font-display); font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--vgw-primary); }
.vgw-root .vgw-ev__title a:hover { color: var(--vgw-accent); }
.vgw-root .vgw-ev__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 14px; color: #4a5263; }
.vgw-root .vgw-ev__meta li { display: inline-flex; align-items: center; gap: 7px; }
.vgw-root .vgw-ev__meta svg { width: 16px; height: 16px; color: var(--vgw-primary); }
.vgw-root .vgw-ev__desc { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #4a5263; }
.vgw-root .vgw-ev__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.vgw-root .vgw-ev__actions .vgw-btn { height: 40px; border-radius: 10px; }
.vgw-root .vgw-ev__ics { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--vgw-primary); }
.vgw-root .vgw-ev__ics svg { width: 16px; height: 16px; }
.vgw-root .vgw-ev__ics:hover span { text-decoration: underline; }

.vgw-root .vgw-ev--past .vgw-ev__date { background: #e9ecf2; color: #6b7384; }
.vgw-root .vgw-ev--past .vgw-ev__date--word { background: #f1f3f6; color: #8b93a5; }
.vgw-root .vgw-ev--past .vgw-ev__title { color: #4b5367; }
.vgw-root .vgw-ev--past { background: #fcfcfd; }
.vgw-root .vgw-ev--now { border-color: var(--vgw-accent); box-shadow: 0 0 0 3px rgba(227, 19, 27, .08); }
.vgw-root .vgw-ev--now .vgw-ev__date { background: var(--vgw-accent); }
.vgw-root .vgw-ev--cancel .vgw-ev__title { text-decoration: line-through; color: #8b93a5; }

.vgw-root .vgw-events__empty { padding: 50px 20px; border-radius: 18px; background: var(--vgw-soft); text-align: center; color: var(--vgw-muted); font-size: 16px; }
.vgw-root .vgw-events__empty svg { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--vgw-primary); }
.vgw-root .vgw-events .vgw-sec-foot { margin-top: 34px; }

/* karty nejbližších akcí (úvodní stránka) */
.vgw-root .vgw-events--compact { padding: 46px 0 50px; background: var(--vgw-soft); }
.vgw-root .vgw-evcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vgw-root .vgw-evc { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 4px 18px rgba(11, 31, 86, .06); transition: box-shadow .25s, transform .25s; }
.vgw-root .vgw-evc:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11, 31, 86, .12); }
.vgw-root .vgw-evc__media { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(110% 110% at 20% 20%, #2f5fcc 0%, var(--vgw-primary) 70%); }
.vgw-root .vgw-evc__media img { width: 100%; height: 100%; object-fit: cover; }
.vgw-root .vgw-evc__media .vgw-ev__date { position: absolute; left: 16px; bottom: -26px; width: 72px; height: 72px; border: 4px solid #fff; box-sizing: content-box; }
.vgw-root .vgw-evc__media .vgw-ev__date strong { font-size: 26px; }
.vgw-root .vgw-evc__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 40px 20px 22px; }
.vgw-root .vgw-evc__title { font-family: var(--vgw-font-display); font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--vgw-primary); }
.vgw-root .vgw-evc__title a:hover { color: var(--vgw-accent); }
.vgw-root .vgw-evc__meta { font-size: 13.5px; color: var(--vgw-muted); }

@container (max-width: 980px) {
    .vgw-root .vgw-evf { grid-template-columns: 1fr; }
    .vgw-root .vgw-evf__media { min-height: 220px; }
    .vgw-root .vgw-ev, .vgw-root .vgw-ev--img { grid-template-columns: 76px minmax(0, 1fr); }
    .vgw-root .vgw-ev__thumb { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 16 / 8; }
    .vgw-root .vgw-ev__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .vgw-root .vgw-ev__actions:empty { display: none; }
    .vgw-root .vgw-evcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 767px) {
    .vgw-root .vgw-events { padding: 28px 0 40px; }
    .vgw-root .vgw-events__head { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
    .vgw-root .vgw-events__controls { width: 100%; }
    .vgw-root .vgw-events .vgw-seg { width: 100%; }
    .vgw-root .vgw-events .vgw-seg a { flex: 1; text-align: center; padding: 9px 6px; }
    .vgw-root .vgw-evf { border-radius: 18px; margin-bottom: 24px; }
    .vgw-root .vgw-evf__body { padding: 22px 18px 24px; }
    .vgw-root .vgw-evf__count { width: 92px; height: 92px; left: 16px; bottom: 16px; }
    .vgw-root .vgw-evf__count strong { font-size: 30px; }
    .vgw-root .vgw-ev, .vgw-root .vgw-ev--img { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 16px; align-items: start; }
    .vgw-root .vgw-ev:hover { transform: none; }
    .vgw-root .vgw-ev__date { width: 64px; height: 64px; border-radius: 14px; }
    .vgw-root .vgw-ev__date strong { font-size: 22px; }
    .vgw-root .vgw-ev__date span { font-size: 11px; margin-top: 4px; }
    .vgw-root .vgw-ev__date--word span { font-size: 11px; }
    .vgw-root .vgw-ev__title { font-size: 16.5px; }
    .vgw-root .vgw-ev__meta { font-size: 13px; }
    .vgw-root .vgw-ev__actions .vgw-btn { flex: 1; }
    .vgw-root .vgw-evcards { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .vgw-root .vgw-events { padding: 28px 0 40px; }
}
