/*
 * Kolarac single-event design.
 * Scoped to single-koncerti.php and single-bioskop.php.
 * Built to sit on top of the Kolarac child CSS baseline 1.0.111.
 */

.single-koncerti .site-content,
.single-bioskop .site-content {
    display: block;
    padding-top: 24px;
    padding-bottom: 70px;
}

.single-koncerti .kolarac-single-primary,
.single-bioskop .kolarac-single-primary {
    width: 100%;
    max-width: none;
    margin: 0;
}

.kolarac-single-main {
    margin: 0;
}


/* Breadcrumbs: no Home level; direct link back to Koncerti / Bioskop */
.kolarac-single-breadcrumbs {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    width: calc(100% - 66px);
    max-width: 1194px;
    margin: 8px auto 16px;
    color: #111111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.kolarac-single-breadcrumb-link {
    color: #111111;
    font-weight: 700;
    text-decoration: none;
}

.kolarac-single-breadcrumb-link:hover,
.kolarac-single-breadcrumb-link:focus {
    color: #111111;
    text-decoration: underline;
}

.kolarac-single-breadcrumb-separator {
    opacity: 0.55;
}

.kolarac-single-breadcrumb-current {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kolarac-single-event,
.kolarac-single-event * {
    box-sizing: border-box;
}

.kolarac-single-event {
    --kse-burgundy: var(--kps-burgundy, #681428);
    --kse-orange: var(--kps-ticket, #c16b0e);
    --kse-grey: #cccccc;
    --kse-black: #111111;
    --kse-white: #ffffff;
    width: calc(100% - 66px);
    max-width: 1194px;
    margin: 0 auto;
    color: var(--kse-black);
    background: var(--kse-grey);
    font-family: var(--kolarac-font-family, 'Kolarac SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
}

.kolarac-single-event a {
    text-decoration: none;
}

/* Top burgundy venue bar */
.kolarac-single-venuebar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 88px;
    margin: 0 0 14px;
    padding: 0 14px 0 78px;
    background: var(--kse-burgundy);
    overflow: visible;
}

.kolarac-single-venue {
    color: #e0e0e0;
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    text-align: right;
    white-space: nowrap;
}

.kolarac-single-accent {
    position: absolute;
    left: 15px;
    bottom: -28px;
    z-index: 5;
    width: 46px;
    height: 46px;
    background: var(--kse-orange);
}

/* Hero: same visual language as the concert slider */
.kolarac-single-hero {
    position: relative;
    display: grid;
    grid-template-columns: var(--kps-panel-width, 32.83%) minmax(0, 1fr);
    width: 100%;
    aspect-ratio: var(--kps-slide-ratio, 1194 / 529);
    min-height: 0;
    overflow: hidden;
    background: var(--kse-burgundy);
    container-type: inline-size;
}

.kolarac-single-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    color: var(--kse-white);
    background: var(--kse-burgundy);
    box-sizing: border-box;
    padding: 3.45cqw 0 0 1.92cqw;
    overflow: hidden;
}

.kolarac-single-title {
    margin: 0;
    padding: 0;
    color: var(--kse-white);
    line-height: 1.05;
    letter-spacing: -0.052em;
    overflow: visible;
}

.kolarac-single-title .kvs-title-main {
    display: block;
    max-width: 100%;
    font-size: 5.15cqw;
    font-weight: 600;
    line-height: 0.98;
    text-transform: none;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.kolarac-single-title .kvs-title-rest {
    display: block;
    max-width: 100%;
    font-size: 4.45cqw;
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-transform: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    padding-bottom: 0.08em;
}

.kolarac-single-subtitle {
    margin-top: 2.18cqw;
    color: var(--kse-white);
    font-size: 3.16cqw;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.04em;
    max-width: 92%;
}

.kolarac-single-datetime {
    margin-top: auto;
    padding-bottom: 5.85cqw;
}

.kolarac-single-date {
    color: var(--kse-white);
    font-size: 3.08cqw;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.kolarac-single-time {
    color: var(--kse-white);
    font-size: 5.98cqw;
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.07em;
    white-space: nowrap;
}

.kolarac-single-media {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #171717;
}

.kolarac-single-image,
.kolarac-single-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.kolarac-single-image {
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.kolarac-single-image-placeholder {
    background: #202020;
}

/* Body copy */
.kolarac-single-content {
    padding-top: 27px;
}

.kolarac-single-description {
    margin: 0;
    padding: 0 0 6px;
    font-size: clamp(15px, 1.55vw, 19px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.008em;
    text-align: left;
}

.kolarac-single-description p {
    margin: 0 0 0.5em;
}

.kolarac-single-description p:last-child {
    margin-bottom: 0;
}

/* Optional details for concert performers / cinema credits */
.kolarac-single-facts {
    display: grid;
    gap: 10px;
    max-width: 1080px;
    margin: 0;
    padding-top: 22px;
    border: 0;
}

.kolarac-single-fact {
    display: grid;
    grid-template-columns: minmax(115px, 0.18fr) 1fr;
    gap: 18px;
    align-items: start;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.35;
}

.kolarac-single-fact-label {
    font-weight: 800;
    text-transform: uppercase;
}

.kolarac-single-fact-value {
    font-weight: 500;
}

/* Predavanja: keep the short ULAZ label close to its selected value. */
.kolarac-single-event--predavanja .kolarac-single-fact--ulaz {
    grid-template-columns: max-content 1fr;
    column-gap: 8px;
}

/* Predavanja: give Detalji prijave more room and keep the label close to its value.
   The registration details row is the final fact row whenever it is rendered. */
@media (min-width: 701px) {
    .kolarac-single-event--predavanja .kolarac-single-fact:last-child:not(.kolarac-single-fact--ulaz) {
        grid-template-columns: max-content minmax(0, 1fr);
        column-gap: 8px;
        width: 100%;
    }
}

/* Bottom production / partner / website line */
.kolarac-single-bottom-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: clamp(50px, 7vw, 105px);
    padding-bottom: 17px;
    font-size: clamp(13px, 1.2vw, 17px);
    line-height: 1.25;
}

.kolarac-single-production-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.kolarac-single-production-meta strong {
    font-weight: 900;
}

.kolarac-single-website {
    flex: 0 0 auto;
    color: var(--kse-black);
    font-weight: 400;
    white-space: nowrap;
}

.kolarac-single-website:hover {
    color: var(--kse-black);
    text-decoration: underline;
}

/* Full-width ticket bar */
.kolarac-single-ticket {
    display: flex;
    align-items: center;
    margin-top: 12px;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    padding: 10px 18px;
    background: var(--kse-orange);
    color: var(--kse-black);
    font-size: clamp(26px, 3.8vw, 44px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.035em;
    text-align: center;
    text-transform: uppercase;
}

.kolarac-single-ticket:hover,
.kolarac-single-ticket:focus {
    color: var(--kse-black);
    filter: brightness(0.96);
}

@media (max-width: 900px) {
    .kolarac-single-breadcrumbs {
        width: calc(100% - 44px);
    }

    .kolarac-single-event {
        width: calc(100% - 44px);
    }

    .kolarac-single-info {
        padding-left: 2.2cqw;
    }

    .kolarac-single-title .kvs-title-main {
        max-width: 100%;
        font-size: 4.9cqw;
        font-weight: 600;
        line-height: 0.98;
        text-transform: none;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }

    .kolarac-single-title .kvs-title-rest {
        max-width: 100%;
        font-size: 4.2cqw;
        font-weight: 300;
        line-height: 1.08;
        letter-spacing: -0.045em;
        text-transform: none;
        padding-bottom: 0.08em;
    }

    .kolarac-single-subtitle {
        font-size: 2.85cqw;
    }

    .kolarac-single-venuebar {
        height: 72px;
    }

    .kolarac-single-venue {
        font-size: clamp(32px, 5.5vw, 46px);
    }

    .kolarac-single-description {
        font-size: clamp(15px, 1.9vw, 18px);
    }
}

@media (max-width: 700px) {
    .single-koncerti .site-content,
    .single-bioskop .site-content {
        padding-top: 18px;
        padding-bottom: 44px;
    }

    .kolarac-single-breadcrumbs {
        width: calc(100% - 32px);
        margin-bottom: 12px;
        font-size: 14px;
    }

    .kolarac-single-event {
        width: calc(100% - 32px);
    }

    .kolarac-single-venuebar {
        height: 58px;
        margin-bottom: 10px;
        padding-right: 10px;
        padding-left: 56px;
    }

    .kolarac-single-venue {
        max-width: 100%;
        overflow: hidden;
        font-size: 30px;
        text-overflow: ellipsis;
    }

    .kolarac-single-accent {
        left: 10px;
        bottom: -20px;
        width: 34px;
        height: 34px;
    }

    .kolarac-single-hero {
        aspect-ratio: auto;
        grid-template-columns: 1fr;
    }

    .kolarac-single-info {
        min-height: 270px;
        padding: 28px 0 0 22px;
        order: 1;
    }

    .kolarac-single-title .kvs-title-main {
        max-width: 100%;
        font-size: 43px;
        font-weight: 600;
        line-height: 0.98;
        text-transform: none;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }

    .kolarac-single-title .kvs-title-rest {
        max-width: 100%;
        font-size: 37px;
        font-weight: 300;
        line-height: 1.1;
        letter-spacing: -0.04em;
        text-transform: none;
        padding-bottom: 0.08em;
    }

    .kolarac-single-subtitle {
        margin-top: 18px;
        font-size: 29px;
    }

    .kolarac-single-date {
        font-size: 28px;
    }

    .kolarac-single-time {
        font-size: 58px;
    }

    .kolarac-single-media {
        order: 2;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .kolarac-single-content {
        padding-top: 22px;
    }

    .kolarac-single-description {
        padding: 0 4px;
        font-size: 15px;
        line-height: 1.45;
        text-align: left;
    }

    .kolarac-single-facts {
        margin-top: 0;
        padding-top: 18px;
    }

    .kolarac-single-fact {
        grid-template-columns: 1fr;
        gap: 3px;
        font-size: 16px;
    }

    .kolarac-single-bottom-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 42px;
        padding-bottom: 15px;
        font-size: 13px;
    }

    .kolarac-single-production-meta {
        flex-direction: column;
        gap: 4px;
    }

    .kolarac-single-website {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .kolarac-single-ticket {
        margin-top: 10px;
        min-height: 56px;
        font-size: 27px;
    }
}

@media (max-width: 430px) {
    .kolarac-single-title .kvs-title-main {
        font-size: 40px;
    }

    .kolarac-single-title .kvs-title-rest {
        font-size: 34px;
    }

    .kolarac-single-subtitle {
        font-size: 26px;
    }

    .kolarac-single-date {
        font-size: 25px;
    }

    .kolarac-single-time {
        font-size: 51px;
    }
}
