/* ===================================
   Single Predstave Styles
   =================================== */

/* Wrapper i Container */
.predstave-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.predstave-single-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ===================================
   Hero Sekcija - Full Width
   =================================== */
.predstave-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    width: calc(100vw - (100vw - 100%));
    margin-left: calc(-50vw + 50% + (100vw - 100%) / 2);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
}

.hero-title {
    font-family: 'Brule', sans-serif;
    font-weight: 600;
    font-size: 100px;
    line-height: 1.1;
    margin: 0 0 30px 0;
    color: #fff;
}

.hero-duration {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    margin-bottom: 60px;
    font-weight: 600 !important;
}

.hero-duration .duration-icon {
    width: 24px;
    height: 24px;
}

/* ===================================
   Dates Section - Full Width
   =================================== */
.dates-section {
    background: transparent;
    position: relative;
    width: calc(100vw - (100vw - 100%));
    margin-left: calc(-50vw + 50% + (100vw - 100%) / 2);
    margin-right: calc(-50vw + 50% + (100vw - 100%) / 2);
    overflow: visible;
}

.dates-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1570px;
    margin: 0 auto;
    padding: 0 90px;
}




.dates-carousel-track {
    display: flex;
    gap: 90px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Kada ima malo itema, centriraj */
.dates-carousel-track.few-items {
    justify-content: center;
}

/* Kada ima puno itema, lijevo za carousel */
.dates-carousel-track.many-items {
    justify-content: flex-start;
}

/* ===================================
   Date Item - ISPRAVLJENO
   =================================== */
.date-item {
    flex: 0 0 auto;
    width: 230px;
    padding: 30px 20px;
    color: #000;
    background: transparent;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
}

/* DANAS stil - crna pozadina */
.date-item.date-item-today {
    background: #000;
    padding: 30px 20px;
    padding-bottom: 40px;
}

.date-item.date-item-today * {
    color: #fff !important;
}

.date-item.date-item-today .btn-buy {
    color: #fff !important;
    border-bottom-color: #fff;
}

/* Date Day Time */
.date-day-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 16px;
    text-transform: uppercase;
    width: 100%;
    height: 20px; /* Fiksna visina */
}

.date-day {
    font-weight: 600;
    color: #000;
    text-align: left;
}

.date-time {
    color: #000;
    font-weight: 600;
    text-align: right;
}

/* Date Number */
.date-number {
    font-family: 'Brule', sans-serif;
    font-weight: 600;
    font-size: 80px;
    line-height: 1;
    margin-bottom: 12px;
    color: #000;
    text-align: left;
    height: 80px; /* Fiksna visina */
}

/* Labels Container - Fiksna zona za labele */
.date-labels-zone {
    min-height: 48px; /* Prostor za 2 labela */
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

/* Labels - Premijera, Praizvedba, Kerempuh */
.date-premiere-label,
.single-predstave .kerempuh-gostima {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    line-height: 1.2;
    text-align: left;
    height: 20px; /* Fiksna visina */
    margin-bottom: 20px;
}

/* Akcijski gumb - uvijek na istoj poziciji */
.date-action {
    text-align: left !important;
    margin-top: auto; /* Gura se na dno */
    height: 24px; /* Fiksna visina */
    display: flex;
    align-items: center;
}

/* VAŽNO: Prepiši centriranje za few-items */
.dates-carousel-track.few-items .date-action,
.dates-carousel-track.one-item .date-action,
.dates-carousel-track.two-items .date-action {
    text-align: left !important;
}

.btn-buy,
.btn-sold,
.btn-cancelled {
    display: inline-block;
    text-align: left;
    line-height: 1.2;
}

.btn-buy {
    display: inline-block;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left center;
    will-change: transform;
}

.btn-buy:hover {
    transform: scale(1.05);
}



.btn-sold,
.btn-cancelled {
    display: inline-block;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: not-allowed;
}

/* ===================================
   Carousel Navigation - Hover Arrows
   =================================== */
.dates-carousel-prev,
.dates-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0 !important;
    padding: 0;
    outline: none;
}

.dates-carousel:hover .dates-carousel-prev,
.dates-carousel:hover .dates-carousel-next {
    opacity: 1 !important;
}

.dates-carousel-prev:disabled,
.dates-carousel-next:disabled {
    opacity: 0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.dates-carousel:hover .dates-carousel-prev:disabled,
.dates-carousel:hover .dates-carousel-next:disabled {
    opacity: 0 !important;
}

.dates-carousel-prev {
    left: 20px;
}

.dates-carousel-next {
    right: 20px;
}

.dates-carousel-prev img,
.dates-carousel-next img {
    width: 48px;
    height: 48px;
    display: block;
    transition: all 0.3s ease;
    filter:
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06))
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.07));
}

.dates-carousel-prev:hover:not(:disabled) img,
.dates-carousel-next:hover:not(:disabled) img {
    transform: scale(1.01);
}

.dates-carousel-prev:hover:not(:disabled),
.dates-carousel-next:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.15);
}

.dates-carousel.no-scroll .dates-carousel-prev,
.dates-carousel.no-scroll .dates-carousel-next {
    display: none !important;
}

/* ===================================
   Tabs Sekcija
   =================================== */
.predstave-tabs-section {
    padding: 80px 0;
    background: #fff;
}

.predstave-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.predstave-tab-button {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    padding: 10px 20px 5px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.predstave-tab-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #000;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease-out;
}

.predstave-tab-button:hover::after {
    transform: scaleX(1);
}

.predstave-tab-button.active::after {
    transform: scaleX(1);
}

.predstave-tabs-content {
    max-width: 1200px;
    margin: 0 auto;
}

.predstave-tab-content {
    display: none;
}

.predstave-tab-content.active {
    display: block;
}

.tab-content-wrapper {
    margin: 0 auto;
}

#o-predstavi .tab-content-wrapper {
    max-width: 1100px;
    text-align: center;
}

#o-predstavi p {
    font-size: 20px;
    line-height: 1.6;
}

#autorski-tim .tab-content-wrapper,
#kritike .tab-content-wrapper,
#knjizica .tab-content-wrapper,
#nagrade .tab-content-wrapper {
    max-width: 460px;
}

.authors-content,
.critics-content,
.books-content,
.awards-content {
    font-size: 18px;
    line-height: 1.7;
}

.authors-content p,
.critics-content p,
.books-content p,
.awards-content p {
    margin-bottom: 15px;
}

/* ===================================
   Video Trailer Sekcija
   =================================== */
.predstave-video-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #000;
    font-family: "brule", sans-serif !important;
}

.video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    display: block;
}

/* ===================================
   Galerija - Full Width
   =================================== */
.predstave-gallery-section {
    width: calc(100vw - (100vw - 100%));
    margin-left: calc(-50vw + 50% + (100vw - 100%) / 2);
    padding: 100px 0 60px 0;
    background: transparent;
    position: relative;
}

.gallery-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-carousel {
    position: relative;
    width: 100%;
}

.gallery-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gallery-item {
    flex: 0 0 auto;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item a.entire-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.01);
}

.gallery-navigation {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-carousel-prev,
.gallery-carousel-next {
    position: relative;
    transform: none;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 10px;
}

.gallery-carousel-prev:hover,
.gallery-carousel-next:hover {
    opacity: 0.7;
    background: transparent;
}

.gallery-carousel-prev img,
.gallery-carousel-next img {
    width: 24px;
    height: 24px;
}

/* ===================================
   Magnific Popup Override
   =================================== */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.9;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}

/* ===================================
   Responsive - Desktop Large
   =================================== */
@media (min-width: 1600px) {
    .gallery-item {
        height: 650px;
    }
}

@media (min-width: 1200px) {
    .gallery-item {
        height: 600px;
    }
}

@media (min-width: 1000px) {
    .single-predstave .kerempuh-gostima,
    .date-premiere-label {
        font-size: 16px;
    }

    .single-predstave .date-day,
    .single-predstave .date-time {
        font-size: 16px;
    }
}

/* ===================================
   Responsive - Tablet
   =================================== */
@media (max-width: 1000px) {
    .predstave-tab-button.active::after {
        bottom: -1px;
        left: 12px;
        right: 12px;
    }
}

@media (min-width: 601px) and (max-width: 1199px) {
    .gallery-item {
        height: 450px;
    }
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 60px;
    }

    .date-item {
        width: 200px;
    }

    .date-number {
        font-size: 60px;
        height: 60px;
    }

    .predstave-tabs-nav {
        gap: 20px;
    }

    .predstave-tab-button {
        font-size: 18px;
        padding: 10px 15px;
    }
}



/* ===================================
   Responsive - Mobile
   =================================== */
@media (max-width: 999px) {
    .dates-carousel-prev,
    .dates-carousel-next {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-duration {
        font-size: 16px;
    }
    .dates-carousel-track {
        gap: 34px;
    }

    .date-item {
        width: 180px;
        padding: 20px 15px;
        margin-right: -4px;
    }

    .date-item.date-item-today {
        padding: 20px 15px;
        padding-bottom: 30px;
    }

    .date-number {
        font-size: 50px;
        height: 42px;
    }

    .date-day-time {
        font-size: 12px;
        height: 16px;
        margin-bottom: 2px;
    }

    .date-labels-zone {
        min-height: 40px;
        gap: 6px;
    }

    .date-premiere-label,
    .single-predstave .kerempuh-gostima {
        font-size: 12px;
        height: 10px;
        margin-bottom: 5px;
    }

    .btn-buy,
    .btn-sold,
    .btn-cancelled {
        font-size: 12px;
        margin-top: 16px;
    }

    .date-action {
        height: 20px;
    }

    .predstave-tabs-section {
        padding: 60px 0;
    }

    .predstave-tabs-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .predstave-tab-button {
        font-size: 14px;
        padding: 8px 12px;
    }

    #o-predstavi p,
    .authors-content,
    .critics-content p,
    .books-content p,
    .awards-content p {
        font-size: 16px;
    }

    .gallery-carousel-track {
        gap: 20px;
    }

    .gallery-item {
        height: 300px !important;
    }

    .predstave-gallery-section {
        padding-bottom: 140px;
    }

    .gallery-navigation {
        position: absolute;
        top: auto;
        bottom: 40px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        justify-content: center;
        gap: 20px;
    }

    .gallery-carousel-prev,
    .gallery-carousel-next {
        padding: 15px;
    }

    .video-title {
        font-size: 24px;
        margin-bottom: 30px;
        font-family: "brule", sans-serif !important;
    }

    .predstave-video-section {
        padding: 60px 0;
    }

    .gallery-carousel {
        padding: 0;
    }
}




@media (max-width: 999px) {
.dates-carousel{
padding: 0px;
   }
}



/* ===================================
   Dates Carousel Pagination Dots
   =================================== */
.dates-pagination {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0 0 0;
    margin: 0;
}

@media (max-width: 999px) {
    .dates-pagination.active {
        display: flex;
    }
}

.dates-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dates-pagination-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* AKTIVNA TOČKA - duži oblik */
.dates-pagination-dot.active {
    background: #000;
    width: 40px;
    height: 8px;
    border-radius: 20px;
}



@media only screen and (max-width: 999px) {
    .ascend .mfp-arrow-left, .material .mfp-arrow-left {
            margin-top: -20px !important;
    }
    .ascend .mfp-arrow-right, .material .mfp-arrow-right{
            margin-top: -20px !important;
    }
}