/* ============================================================
   HP BLOK — Nejbližší akce (psy-eventy)
   Nahraj na FTP: /user/documents/userfiles/custom-hp-eventy.css
   Data: Supabase `events` (viz custom-hp-bloky.js → initEventy)
   ============================================================ */

.psy-eventy {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 2px solid #222222;
    border-radius: 24px;
    overflow: hidden;
    max-width: 1500px;
    margin: 32px auto;
    position: relative;
    z-index: 1;
}

/* ── Levá část — text ── */
.psy-eventy__left {
    flex: 0 0 33%;
    padding: 34px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.psy-eventy__eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5A958B;
}

.psy-eventy__title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.25;
}

.psy-eventy__text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.55;
    margin: 0;
}

.psy-eventy__btn {
    display: inline-block;
    padding: 12px 25px;
    background: #1a1a1a;
    border-radius: 14px;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none !important;
    align-self: flex-start;
    transition: background .2s;
}

.psy-eventy__btn:hover {
    background: #59948D;
    color: #ffffff !important;
}

/* ── Pravá část — karuselová oblast ── */
.psy-eventy__right {
    flex: 0 0 67%;
    padding: 26px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #F8F4EE;
}

.psy-eventy__track-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.psy-eventy__track {
    display: flex;
    align-items: flex-start;   /* nutné, aby aspect-ratio karet fungovalo (stretch by výšku přebil) */
    gap: 16px;
}

/* ── Šipka ── */
.psy-eventy__arrow {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #D9D3C4;
    color: #C9C4B8;
    cursor: default;
    padding: 0;
    transition: background .2s, color .2s, border-color .2s;
}

.psy-eventy__arrow svg {
    display: block;
}

.psy-eventy__arrow--active {
    color: #1a1a1a;
    border-color: #1a1a1a;
    cursor: pointer;
}

.psy-eventy__arrow--active:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ── Skeleton (loading stav) ── */
.psy-eventy__skeleton {
    flex: 0 0 calc((100% - 32px) / 3);
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: linear-gradient(90deg, #EFEBE2 25%, #F6F3EC 37%, #EFEBE2 63%);
    background-size: 400% 100%;
    animation: psy-eventy-shimmer 1.4s ease infinite;
}

@keyframes psy-eventy-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ── Karta akce ── */
.psy-eventy__card {
    flex: 0 0 calc((100% - 32px) / 3);
    aspect-ratio: 1 / 1;          /* čtvercové karty */
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.psy-eventy__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.psy-eventy__info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
}

/* ── Pilulka typu akce ── */
.psy-eventy__badge {
    flex: 0 0 auto;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 6px 13px;
    border-radius: 999px;
    white-space: nowrap;
    /* výchozí = neutrální (fallback pro neznámý typ) */
    color: #1a1a1a;
    background: rgba(26, 26, 26, 0.08);
}

/* Kino = neutrální tmavá (shodné s výchozím, ponecháno explicitně) */
.psy-eventy__badge--kino {
    color: #1a1a1a;
    background: rgba(26, 26, 26, 0.08);
}

.psy-eventy__badge--event {
    color: #5A958B;
    background: rgba(90, 149, 139, 0.15);
}

.psy-eventy__badge--festival {
    color: #ffffff;
    background: #5A958B;
}

.psy-eventy__badge--prednaska {
    color: #764D5A;
    background: rgba(118, 77, 90, 0.13);
}

/* Hlavička karty — datum vlevo, pilulka typu vpravo */
.psy-eventy__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
}

.psy-eventy__date {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.psy-eventy__day {
    font-family: 'Poppins', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    line-height: 1;
}

.psy-eventy__month {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5A958B;
}

.psy-eventy__name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.psy-eventy__card:hover .psy-eventy__name {
    color: #5A958B;
}

.psy-eventy__place {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    margin-top: auto;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.psy-eventy__empty {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
    align-self: center;
}

/* ── Responsivita ── */
@media (max-width: 1280px) {
    .psy-eventy__title { font-size: 2rem; }
    .psy-eventy__text  { font-size: 1.25rem; }
    .psy-eventy__btn   { font-size: 1.25rem; }
    .psy-eventy__left  { padding: 28px 26px; gap: 16px; }
    .psy-eventy__right { padding: 22px 24px; }
    .psy-eventy__name  { font-size: 1.45rem; -webkit-line-clamp: 3; }
    .psy-eventy__place { font-size: 1.2rem; }
    .psy-eventy__day   { font-size: 2.2rem; }
    .psy-eventy__badge { font-size: 0.95rem; padding: 5px 11px; }
    .psy-eventy__card  { padding: 16px; gap: 10px; }
    .psy-eventy__info  { gap: 8px; }
}

@media (max-width: 768px) {
    .psy-eventy {
        flex-direction: column;
        max-width: 100%;
    }
    .psy-eventy__left {
        padding: 24px 22px;
        gap: 12px;
    }
    .psy-eventy__title { font-size: 1.6rem; }
    .psy-eventy__text  { font-size: 1rem; }
    .psy-eventy__btn   { font-size: 1rem; }

    .psy-eventy__right {
        flex: none;
        padding: 16px 20px 24px;
        gap: 12px;
    }
    .psy-eventy__track {
        gap: 14px;
    }
    .psy-eventy__card,
    .psy-eventy__skeleton {
        flex: 0 0 88%;
        aspect-ratio: auto;      /* na mobilu karta zpět na řádkový layout, ne čtverec */
    }
    .psy-eventy__skeleton {
        min-height: 130px;
    }
    .psy-eventy__card {
        flex-direction: row;
        align-items: center;
        padding: 16px;
    }
    .psy-eventy__info {
        flex: 1 1 auto;
        gap: 6px;
    }
    .psy-eventy__place {
        margin-top: 0;
        font-size: 1.2rem;
    }
    .psy-eventy__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .psy-eventy__badge {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    .psy-eventy__day   { font-size: 1.8rem; }
    .psy-eventy__name  { font-size: 1.35rem; -webkit-line-clamp: 2; }
    .psy-eventy__arrow {
        width: 44px;
        height: 44px;
    }
}
