/*
Theme Name: EventsWP Theme
Theme URI: https://www.eventswptheme.com/
Author: psdgraphics@yahoo.com
Author URI: https://www.eventswptheme.com/
Description: Basic WordPress skeleton theme for events with a Tickera focus.
Version: 1.12
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eventswptheme
*/

/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */
:root {
    /* Defaults - Overridden by Customizer */
    --primary-color: #8A2BE2;
    --secondary-color: #4B0082;
    --hero-bg-color: #1a0b2e;
    --accent-color: #ffcc00;
    --body-bg-color: #f3f3f3;
    
    --black: #1A1A1A;
    --gray-dark: #333333;
    --gray-light: #F4F4F4;
    --white: #FFFFFF;
    --text-color: #2D2D2D;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --border-radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: var(--body-bg-color);
    color: var(--text-color);
}

img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   2. GLOBAL LAYOUT & TYPOGRAPHY
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content Spacing */
.site-main {
    padding-top: 60px;
}

/* Remove spacing for pages with Hero (Home & Single Event) */
.home .site-main,
.single-tc_events .site-main {
    padding-top: 0;
}

h1, h2, h3, h4 { color: var(--black); margin: 0.75rem 0; line-height: normal; }

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--black); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.btn-dark { background: var(--black); }
.btn:hover { background: var(--secondary-color); color: var(--white); transform: scale(1.05); }

/* WordPress Standards */
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { background: var(--gray-light); padding: 5px; text-align: center; }
.sticky { border: 2px solid var(--primary-color); }

.card-style, .content-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    border: 1px solid var(--gray-light);
}

@media (max-width: 768px) {
    .card-style, .content-card {
        padding: 40px 20px;
    }
}

/* Ako .content-card sadrži druge kartice (npr. na stranici korpe), postaje providni omotač da bi se izbegao dupli padding. */
.content-card:has(.card-style),
.content-card:has(.info_section),
.content-card:has(.tickera-payment-gateways),
.content-card:has(.tickera-checkout) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* ==========================================================================
   STANDARD FORM FIELDS
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

label {
    color: var(--black);
    margin-bottom: 8px;
    display: inline-block;
}

/* Standard Submit Button */
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 13px 15px;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-top-bar {
    background-color: var(--top-bar-bg, #1a1a1a);
    color: var(--top-bar-text-color, #cccccc);
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
}

.site-top-bar a {
    color: var(--top-bar-link-color, var(--primary-color));
    text-decoration: none;
}

.site-top-bar a:hover {
    color: var(--top-bar-link-color, var(--primary-color));
    text-decoration: underline;
}

.site-header {
    background: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.header-left, .header-right { flex: 0; display: flex; align-items: center; }
.header-center { flex: 1; text-align: center; }
.header-right { justify-content: flex-end; gap: 15px; }

/* Hamburger Menu */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
    padding: 10px 0;
}

.hamburger-box {
    width: 28px;
    height: 20px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    transition: var(--transition);
    pointer-events: none;
}
.hamburger-line.line-1 { transform-origin: left center; }
.hamburger-line.line-3 { transform-origin: left center; }

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 10px 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.site-logo a:hover {
    transform: scale(1.05);
}

.site-logo .custom-logo {
    height: var(--logo-height-desktop, 80px);
    width: auto;
    display: block;
    max-height: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-grid {
        min-height: 60px;
    }
    .site-logo {
        height: auto;
    }

    .site-logo .custom-logo {
        height: var(--logo-height-mobile, 50px);
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* Social Links (Header) */
/* This style expects the link to contain an <i> tag with a dashicon, e.g. <i class="dashicons dashicons-facebook-alt"></i> */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Smanjeno po zahtevu */
    height: 40px; /* Smanjeno po zahtevu */
    border-radius: 50%;
    background-color: var(--gray-light);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    will-change: transform;
    border: none;
}

.social-links a i {
    font-size: 20px; /* Smanjeno u skladu sa kontejnerom */
    width: 20px; /* Za bolje centriranje */
    height: 20px; /* Za bolje centriranje */
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Header Cart Icon */
.header-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

/* Specifičan override za Dashicon unutar korpe */
.header-cart-link .dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
}

.header-cart-link.is-active {
    color: var(--primary-color);
}

.header-cart-link.is-active:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* ==========================================================================
   14. FAQ ACCORDION
   ========================================================================== */
.faq-section-wrapper {
    margin-top: 40px;
    background-color: var(--body-bg-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-radius: 0; /* Reset default button radius */
}

.faq-question:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}

.faq-icon i {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: none;
}

.faq-answer-inner {
    padding: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.header-cart-link.is-inactive {
    color: #ccc; /* Light gray */
    cursor: default;
}

.header-cart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cart-config-notice {
    font-size: 0.6rem;
    color: #999;
    line-height: 1;
    margin-top: 2px;
    white-space: nowrap;
}

/* Fullscreen Navigation Drawer */
.main-navigation {
    position: fixed;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.main-navigation.is-active { left: 0; }

.nav-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
}

.nav-content {
    position: relative;
    background: var(--white);
    width: 80%; max-width: 400px;
    height: 100%;
    padding: 0; /* Uklonjen padding sa kontejnera */
    display: flex; flex-direction: column;
}

.mobile-menu-header {
    background: var(--white);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Osigurava punu širinu */
    flex-shrink: 0;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-menu-header .site-logo {
    padding: 0;
    justify-content: flex-start;
}

.mobile-menu-header .custom-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-header .site-logo a:hover {
    padding-left: 0; /* Poništava pomeranje ulevo */
    color: var(--black); /* Osigurava da tekstualni logo ne menja boju */
}

.nav-content ul { 
    list-style: none; 
    margin-top: 0; 
    padding: 20px 30px;
    width: 100%;
    overflow-y: auto;
}
.nav-content li { 
    margin-bottom: 15px; 
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}
.nav-content a {
    color: var(--black);
    font-size: 1.4rem;
    font-weight: 800;
    transition: var(--transition);
}

.nav-content a:hover { color: var(--primary-color); padding-left: 10px; }

.close-menu {
    position: static;
    background: none; border: none; color: var(--black);
    font-size: 3rem; cursor: pointer;
    line-height: 0.5;
}

/* --- Mobile Menu Social Icons Positioning --- */

/* Osiguravamo da container menija zauzima punu visinu kako bi gurnuo ikonice na dno */
.nav-content ul {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mobile-social-menu-item {
    margin-top: auto; /* Gura stavku na samo dno */
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light); /* Tanka linija za odvajanje */
    display: flex;
    justify-content: center; /* Centriranje */
}

.mobile-social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--black);
    transition: var(--transition);
    will-change: transform;
}

.mobile-social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    padding-left: 0; /* Sprečava pomeranje udesno */
    color: var(--white); /* Ikona ostaje bela */
}

/* Responsive Header */

/* ==========================================================================
   4. HERO SECTION (FRONT & SINGLE)
   ========================================================================== */
.event-hero-featured {
    position: relative;
    padding: 60px 0 140px 0; /* FIXED: Reduced padding for a narrower hero */
    display: flex;
    align-items: center;
    background-color: var(--hero-bg-color); 
    color: #fff;
    overflow: hidden;
}

/* Specifično za Home Hero */
.home .event-hero-featured {
    padding: 40px 0;
}

/* PURPLE GRADIENT OVERLAY */
.event-hero-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Fallback if customizer CSS fails */
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.95) 30%, rgba(138, 43, 226, 0.4) 100%);
    z-index: 2;
}

.hero-featured__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-featured__bg img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.35;
    filter: blur(5px);
}

.hero-featured__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-featured__content {
    flex: 0 1 65%; /* 2/3 width */
    padding-right: 5%;
}

.event-hero-featured.event-hero-inner .hero-featured__flex {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
}

/* Inner page: 2/3 left content, 1/3 right CTA */
.event-hero-featured.event-hero-inner .hero-featured__content {
    flex: 0 1 65%;
    max-width: 65%;
    width: auto;
}

.event-hero-featured.event-hero-inner .hero-featured__cta {
    flex: 0 1 35%;
    width: auto;
    align-items: flex-end;
}

/* Inner page: stack meta pills vertically like front-page */
.event-hero-featured.event-hero-inner .meta-wrapper {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
}

.hero-featured__cta {
    flex: 0 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.hero-featured__cta .ticket-action {
    width: 100%;
}

@media (max-width: 992px) {
    .hero-featured__cta { justify-content: center; align-items: center; }
}

.badge-new {
    background: var(--secondary-color); 
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

.badge-new:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hero-featured__title {
    font-size: clamp(1.8rem, 3.5vw, 3.2rem); /* Dodatno smanjen font */
    color: #fff;
    margin: 15px 0;
    line-height: 1.25; /* Povećan razmak za 2 reda */
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);

    /* Ograničavanje na 2 reda sa elipsom */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-badges-wrapper {
    margin-bottom: 20px;
}

.event-hero-featured.event-hero-inner .hero-featured__title {
    /* Manji font za unutrašnju stranicu */
    font-size: clamp(2rem, 4vw, 3.6rem);
}

/* Pilule */
.meta-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px; /* Smanjeno sa 45px */
}

.event-meta-strip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Location Pill Link */
a.event-meta-strip.location-pill {
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 15px;
    cursor: pointer;
}

a.event-meta-strip.location-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.view-map-btn {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    line-height: normal;
}

.meta-item i { 
    color: var(--primary-color); 
}

/* Date Display (No Outline) */
.meta-item.date-display {
    padding-left: 22px; /* Align with text of pill below */
}

.btn-featured {
    background: var(--primary-color); 
    color: var(--white);
    padding: 16px 40px;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-featured:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Inner page hero: buy button styled like btn-featured */
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tc_check_tickets_button,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tickera-button,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tc_seating_map_button,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .btn {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 18px 45px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 1.1rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: 1px !important;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Add Ticket Icon */
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tc_check_tickets_button::before,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tickera-button::before,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tc_seating_map_button::before,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .btn::before {
    content: "\f524"; /* Dashicons ticket icon */
    font-family: "dashicons";
    font-weight: normal;
    font-size: 1.4rem;
    line-height: 1;
}

/* Inner page hero: unique yellow color for seating map button only */
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tc_seating_map_button {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tc_check_tickets_button:hover,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tickera-button:hover,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .tc_seating_map_button:hover,
.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action .btn:hover {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
    transform: scale(1.05) !important;
}

/* FIXED: Enlarged Poster */
.hero-featured__poster {
    flex: 0 1 35%; /* 1/3 width */
}

.poster-frame {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    /* Slightly reduced rotation angle for better visibility of the larger image */
    transform: perspective(1200px) rotateY(-6deg); 
    transition: 0.6s ease;
}

.poster-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.poster-frame:hover {
    transform: perspective(1200px) rotateY(0deg) scale(1.02);
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-featured__poster {
        flex: 0 0 380px;
    }
}

@media (max-width: 992px) {
    .hero-featured__flex {
        flex-direction: column;
        text-align: center;
    }
    .hero-featured__content {
        padding-right: 0;
    }
    .meta-wrapper {
        justify-content: center;
    }
    .hero-featured__poster {
        order: -1;
        flex: 0 1 auto; /* Dozvoljava smanjivanje i resetuje fiksnu sirinu */
        width: 100%; /* Osigurava da ne prelazi sirinu ekrana */
        max-width: 380px; /* Veći poster i na tabletu */
        margin: 0 auto 20px auto;
    }
    .poster-frame { transform: none; }
}

@media (max-width: 768px) {
    .meta-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .event-hero-featured {
        padding: 50px 0;
    }
    /* Specifično za Home Hero na mobilnom */
    .home .event-hero-featured {
        padding: 2px 0 40px;
    }
}

.poster-link-wrapper {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Optional: add a slight glow to the poster on hover over any part of the hero */
.event-hero-featured:hover .poster-frame {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 100px rgba(var(--primary-rgb), 0.3);
}

/* ==========================================================================
   HERO SLIDESHOW STYLES
   ========================================================================== */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden; /* Hide overflow for sliding */
}

.hero-slides-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    cursor: default;
    user-select: none;
}

/* Kada se drzi misem */
.hero-slides-track:active {
    cursor: default;
}

.hero-slide {
    min-width: 100%; /* Full width for each slide */
    width: 100%; /* Full width for each slide */
    flex-shrink: 0;
}

/* Next & previous buttons */
.hero-prev, .hero-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.2s ease;
    border-radius: 50%; /* Round arrows */
    user-select: none;
    z-index: 10;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-prev:hover, .hero-next:hover {
    background-color: var(--primary-color);
}

/* The dots/bullets/indicators */
.hero-dots {
    position: relative;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.hero-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.active-dot, .hero-dot:hover {
    background-color: var(--primary-color);
}
/* ==========================================================================
   TICKERA TABLE STYLES (HERO SECTION - NO SEATING CHART)
   ========================================================================== */
.hero-featured__cta .tc-event-table-wrap {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); /* Strong shadow for dark bg */
    width: 100%;
    min-width: 320px;
    max-width: 500px;
    margin: 0 auto; /* Push to right on desktop */
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-featured__cta table.event_tickets {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.hero-featured__cta table.event_tickets th {
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    padding: 0 15px 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
}

.hero-featured__cta table.event_tickets td {
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
    color: var(--black);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-featured__cta table.event_tickets tr:last-child td {
    border-bottom: none;
}

/* Price Column */
.hero-featured__cta table.event_tickets td[data-column="Price"] {
    color: var(--primary-color);
    font-weight: 800;
}

/* Add to Cart Button */
.hero-featured__cta .add_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    border: none;
    white-space: nowrap;
}

.hero-featured__cta .add_to_cart:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-featured__cta .tc-event-table-wrap {
        margin: 20px auto 0;
        max-width: 100%;
    }
}

/* ==========================================================================
   5. EVENTS GRID (FRONT-PAGE)
   ========================================================================== */
.section-header { text-align: center; margin: 40px 0; }
.section-title { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 10px; }
.section-subtitle { color: var(--primary-color); font-weight: 600; }
.section-supertitle {
    font-size: 0.75rem;
    margin-bottom: -10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.events-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; margin-bottom: 80px;
}
.event-card {
    background: var(--white); border-radius: 12px;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.event-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15); }

.event-card__image {
    position: relative; aspect-ratio: 3/4; background: #000;
}
.event-card__image img { width: 100%; height: 100%; object-fit: cover; }
.event-card__overlay {
    position: absolute; inset: 0; background: rgba(var(--primary-rgb), 0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.event-card:hover .event-card__overlay { opacity: 1; }
.btn-ticket { background: #fff; color: #000; padding: 10px 20px; border-radius: 50px; font-weight: bold; }

.event-card__content { padding: 0 20px 20px; }
.event-card__title { 
    font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; color: var(--black);
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card__date { color: #666; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }

.view-all-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Button in View All Wrapper (reusing hero button style but adapted for white bg) */
.view-all-wrapper .btn-featured {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}
.view-all-wrapper .btn-featured:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.no-events-section {
    text-align: center;
    padding: 80px 20px;
}

/* ==========================================================================
   6. SINGLE EVENT PAGE (CONTENT AREA)
   ========================================================================== */
/* Note: Hero section styles are in section 4 */

.event-brand-logo {
    max-width: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}


/* Event Body Layout */
.event-body-wrapper {
    margin-top: -100px; /* Overlap hero */
    position: relative;
    z-index: 10;
}

.event-grid-layout {
    display: grid !important;
    /* Poster levo (1/3), Sadržaj desno (2/3) */
    grid-template-columns: 1fr 2fr !important; 
    gap: 40px;
    align-items: start;
}

/* Prirodni redosled: Poster (prvi u HTML) ide levo, Sadržaj desno */
.event-main-col { grid-column: auto !important; }
.event-booking-col { grid-column: auto !important; }

.event-poster-container .event-poster-link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-poster-container .event-poster-link:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.5);
}
 
.event-share-container {
    margin-top: 30px;
    padding: 8px 25px 25px 25px;
    background-color: var(--share-box-bg-color, var(--primary-color));
    border: none;
}

.event-share-container .small-title {
    margin-bottom: 15px;
    text-align: center;
    color: var(--white);
}

.share-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--gray-light);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    position: relative; /* For tooltip */
    cursor: pointer;
    will-change: transform;
}

.share-link i {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.share-link:hover {
    transform: scale(1.1);
}

.share-link.facebook:hover { background-color: #1877F2; color: var(--white); border-color: #1877F2; }
.share-link.twitter:hover { background-color: #1DA1F2; color: var(--white); border-color: #1DA1F2; }
.share-link.linkedin:hover { background-color: #0A66C2; color: var(--white); border-color: #0A66C2; }
.share-link.copy-link:hover { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

/* Generic Social Icon Hovers (used in header, footer) */
.social-links a.facebook:hover, .social-icon.facebook:hover { background-color: #1877F2; border-color: #1877F2; }
.social-links a.instagram:hover, .social-icon.instagram:hover { background-color: #E4405F; border-color: #E4405F; }
.social-links a.twitter:hover, .social-icon.twitter:hover { background-color: #1DA1F2; border-color: #1DA1F2; }
.social-links a.whatsapp:hover, .social-icon.whatsapp:hover { background-color: #25D366; border-color: #25D366; }

.copy-tooltip { position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background-color: var(--black); color: var(--white); padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s 0.2s; pointer-events: none; }

.copy-link.show-tooltip .copy-tooltip { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }

/* Booking Section */
.event-booking-col .booking-container {
    background: var(--gray-light);
    border: 2px solid var(--primary-color);
}

/* Tickera Overrides */
.tc_check_tickets_button, .tickera-button {
    background-color: var(--primary-color) !important;
    border-radius: var(--border-radius) !important;
    transition: var(--transition) !important;
}

.tc_check_tickets_button:hover {
    background-color: var(--black) !important;
}

.ticket-bar-full {
    width: 100%;
    padding: 30px 0; /* restored spacing */
    background: linear-gradient(90deg, #0b0b0b 0%, #1a1a1a 100%);
    border-bottom: 2px solid #222;
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
    color: #fff;
}

.ticket-bar__inner {
    display: flex;
    justify-content: flex-end; /* keep CTA right aligned */
    align-items: center;
    gap: 22px;
}

.ticket-info-text { display: none; color: #fff; text-align: right; line-height: 1.1; margin-right: 18px; }
.ticket-info-text .ticket-info-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: #aaa; }
.ticket-info-text .ticket-info-cta { font-size: 16px; color: var(--accent-color); display: block; }

@media (min-width: 768px) {
    .ticket-info-text { display: block; }
}

.ticket-action { z-index: 20; }

/* Make Tickera / ticket buttons visually prominent (restore earlier look) */
.ticket-action .tc_check_tickets_button,
.ticket-action .tickera-button,
.ticket-action .btn {
    background: var(--accent-color) !important;
    color: #111 !important;
    padding: 12px 24px !important;
    font-weight: 800 !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45) !important;
}

.ticket-action .tc_check_tickets_button:hover,
.ticket-action .tickera-button:hover,
.ticket-action .btn:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .event-grid-layout { grid-template-columns: 1fr !important; }
    .event-body-wrapper { margin-top: 20px; }

    /* Ensure poster + content stack and don't force min widths */
    .event-booking-col, .event-main-col {
        grid-column: auto !important;
        min-width: 0 !important;
    }

    .event-booking-col .event-poster-container,
    .event-booking-col .event-poster-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Make meta pills wrap and use full width on mobile to avoid overflow (all pages) */
    .event-hero-featured .event-meta-strip {
        width: 100%;
    }

    .event-hero-featured .event-meta-strip .meta-item,
    .event-hero-featured .meta-item.date-display {
        white-space: normal; /* allow line breaks */
        word-break: break-word;
        text-align: left;
    }

    /* Mobile: stack inner hero columns */
    .event-hero-featured.event-hero-inner .hero-featured__flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .event-hero-featured.event-hero-inner .meta-wrapper {
        align-items: center;
    }

    .event-hero-featured.event-hero-inner .hero-featured__content,
    .event-hero-featured.event-hero-inner .hero-featured__cta {
        width: 100%;
        max-width: 100%;
    }

    /* Center hero CTA button vertically and horizontally on mobile */
    .event-hero-featured.event-hero-inner .hero-featured__cta {
        align-items: center !important;
        justify-content: center !important;
        margin-top: 20px;
    }

    .event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action {
        align-self: center !important;
        justify-content: center !important;
    }
}

/* Inner-hero: align CTA right */
.event-hero-featured.event-hero-inner .hero-featured__cta {
    align-items: flex-end;
}

.event-hero-featured.event-hero-inner .hero-featured__cta .ticket-action {
    display: flex;
    justify-content: flex-end;
}
.fields-wrap span {
    margin-top: 10px;
    margin-bottom: 0;
}
table.tickera_table {
  border-collapse: collapse; /* uklanja razmak između thead i tbody */
  border-spacing: 0;         /* dodatno osigurava da nema razmaka */
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg-color, #f3f3f3);
    color: var(--text-color);
    padding: 0; /* Padding is now on inner sections */
    margin-top: 30px;
}
.tickera_additional_info input[type=text], .tickera_additional_info input[type=password], .tickera_additional_info input[type=email] {
        margin: 0;
    }
/* 1. Top Section (Light) */
.footer-top {
    padding: 40px 0 60px 0;
    text-align: center;
}
.footer-follow-text {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.7;
}

.footer-brand-name {
    font-size: 1.8rem;
    margin: 5px 0 25px 0;
    color: inherit;
}

.footer-top .site-logo {
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center; /* Center icons */
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-color);
    border: none;
    will-change: transform;
    transition: var(--transition);
}

.social-icon i {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    transform: scale(1.1);
    color: var(--white) !important;
}

/* Contact Details (in top section) */
.footer-contact-details {
    margin-top: 40px;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
}

.footer-top .footer-inline-contact {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    justify-content: center;
    color: inherit;
}

.footer-top .footer-inline-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-top .footer-inline-contact i {
    color: var(--primary-color);
}

.footer-top .footer-inline-contact a {
    color: inherit;
}
.footer-top .footer-inline-contact a:hover {
    color: var(--primary-color);
}

/* 2. Middle Bar (Copyright & Nav) */
.footer-middle-bar {
    background: var(--footer-bottom-bg-color, #333333);
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--footer-text-color, #cccccc);
}

.footer-middle-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright a {
    color: inherit;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: inherit;
}

.footer-inline-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
}

.footer-inline-menu a {
    color: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.footer-inline-menu a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-middle-bar .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-inline-menu {
        justify-content: center;
        margin: 20px 0;
        line-height: 0px;
    }
}

/* ==========================================================================
   8. CART PAGE STYLING
   ========================================================================== */
/* Limit cart and checkout page width */
.tickera_checkout {
    margin: 0;
}
.content-card:has(#tickera_cart),
.content-card:has(.tickera-checkout) {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

/* Table Header Styling */
.tickera_table thead {
    display: block;
    padding: 0 15px;
}

.tickera_table thead tr {
    display: flex;
    align-items: center;
}

.tickera_table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border: none;
    padding: 0;
}

/* Match columns with tbody */
.tickera_table th:nth-child(1) { flex: 1; min-width: 0; } /* Ticket Type */
.tickera_table th:nth-child(2) { display: block; width: 100px; text-align: center; flex-shrink: 0; } /* Price */
.tickera_table th:nth-child(3) { width: 100px; text-align: center; flex-shrink: 0; margin: 0; } /* Quantity */
.tickera_table th:nth-child(4) { display: block; width: 100px; text-align: center; flex-shrink: 0; } /* Fees */
.tickera_table th:nth-child(5) { width: 100px; text-align: right; flex-shrink: 0; } /* Subtotal */

.tickera-checkout tr th {
    font-size: 9px;
    padding: 0;
}

/* Remove default table styling */
.tickera_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0 25px; /* Increased space between ticket rows */
}

/* Style each ticket item row as a card */
.tickera_table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 30px 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    margin-bottom: 10px;
}
.tickera_table tbody tr:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.1);
}

/* Add a ticket icon to each row */
.tickera_table tbody tr::before {
    display: none;
}

.tickera_table tbody tr:not(.last-table-row):not(:last-child)::before {
    content: '\f524'; /* Dashicon tickets-alt */
    display: block;
    font-family: 'dashicons';
    font-size: 1.8rem;
    color: var(--primary-color);
    background: #f5f4f2;
    border-radius: 8px;
    padding: 15px;
    margin-right: 20px;
}

/* Reset table cell display */
.tickera_table tbody td {
    display: block;
    border: none;
    padding: 5px 0;
    background: transparent !important; /* Override inline styles */
    font-weight: 600;
    color: var(--text-color);
}

/* Ticket Name */
.tickera_table td.ticket-type {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
}

/* Show individual price and fee columns */
.tickera_table td.ticket-price,
.tickera_table td.ticket-fee {
    display: block;
    width: 100px;
    text-align: center;
    flex-shrink: 0;
}

/* Quantity Selector */
.tickera_table td.ticket-quantity {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    margin: 0;
}
/* Hide empty inner-wrap with hidden input */
.ticket_quantity .inner-wrap:has(input[type="hidden"]) {
    display: none;
}

.ticket_quantity .inner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
    height: 50px; /* Fiksna visina za bolju kontrolu */
    flex-wrap: nowrap;
    gap: 0;
}
.ticket_quantity .tickera_button.minus,
.ticket_quantity .tickera_button.plus {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.6rem; /* Povećano */
    font-weight: 400; /* Uklonjen bold */
    height: 100%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
}
.ticket_quantity .quantity {
    border: none;
    text-align: center;
    width: 40px; /* Malo šire */
    font-weight: 600; /* Uklonjen bold */
    font-size: 1.1rem; /* Povećano */
    background: transparent;
    color: var(--text-color);
    height: 100%;
    padding: 0;
}
.ticket_quantity .quantity:focus {
    outline: none;
}

/* Subtotal for the row */
.tickera_table td.ticket-total {
    flex-shrink: 0;
    width: 100px;
    text-align: right;
    color: var(--black);
}

/* Totals Section */
.tickera_table tr.last-table-row {
    display: block;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 20px;
    width: 50%; /* Suženo na 1/3 */
    margin-left: auto; /* Poravnato desno */
}
.tickera_table tr.last-table-row:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.tickera_table tr.last-table-row td {
    padding: 0;
}
.tickera_table .ticket-total-all > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tickera_table .ticket-total-all > p {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    justify-content: space-between
}
.tickera_table .ticket-total-all > div:last-child {
    margin-top: 10px;
    border: none;
}
.ticket-total-all span {
    margin-bottom: 0;
}
.tickera-payment-options {
    margin-left: auto;
}
img.tickera-payment-options {
    margin: 0 auto;
}
.tickera_table .cart_total_price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Actions Section (Coupon, Update, etc.) */
.tickera_table tr:last-child:not(.last-table-row) {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 20px 0;
    padding: 0px;
}
.tickera-checkout .coupon_code {
    min-width: 80px;
    margin: 0;
}
.tickera_table tr:last-child:not(.last-table-row):hover {
    box-shadow: none;
    background: transparent;
    transform: none;
}
.tickera_table td.actions {
    padding: 0;
    width: 100%;
    flex: 0 0 100%;
}
.action-wrap {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.discount-wrap, .update-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1 1 300px;
}
.discount-wrap .tickera-input-field {
    flex: 1;
    width: auto;
}
.update-wrap {
    justify-content: flex-end;
}
.tickera_empty {
    background: #cccccc !important; /* Light gray color */
    color: var(--white) !important;
}
.tickera_empty:hover {
    background: #999999 !important; /* Darker gray on hover */
    transform: scale(1.05);
}

/* Modern Form Styling */
.tickera_additional_info {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    border: 1px solid var(--gray-light);
    margin: 40px 0;
    clear: both;
    overflow: hidden;
}

.info_section {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    margin: 0;
    clear: both;
    overflow: hidden;
}

.info_section h3, .info_section h2 {
    font-size: 1.8rem;
    border-left: none; /* Uklonjena leva linija */
    padding-left: 0;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ikonica za Buyer Info (User) */
.tickera_buyer_info h3::before {
    content: "\f110"; /* dashicons-admin-users */
    font-family: "dashicons";
    color: var(--primary-color);
    font-size: 2rem;
}

/* Ikonica za Karte (Ticket) */
.tickera_owner_info h2::before {
    content: "\f524"; /* dashicons-tickets-alt */
    font-family: "dashicons";
    color: var(--primary-color);
    font-size: 2rem;
}

/* Hide Owner Info section if it contains only hidden inputs (no labels) */
.tickera_owner_info.info_section:not(:has(label)),
.tc-form-ticket-fields-wrap:not(:has(label)) {
    display: none !important;
}

.owner-info-wrap {
    padding: 0;
    border: none;
    margin-top: 20px;
    background: transparent;
}
.owner-info-wrap h5 {
    margin: 0 0 25px 0;
    font-size: 1.2rem;
}
.fields-wrap {
    margin-bottom: 20px;
}
.fields-wrap label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

/* Final Checkout Button */
#tickera_cart .tickera_buyer_info {
    border-bottom: none;
}
    #tickera_cart .proceed-to-checkout-container {
    clear: both;
}
.proceed-to-checkout-container {
    display: flex;
    justify-content: center;
    margin: 0 0 40px;
}
.tickera_checkout {
    background: var(--primary-color) !important;
    padding: 18px 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease !important;
}
.tickera_checkout:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.05) !important;
}
.tickera_table td.actions .tickera-button {
    border-radius: 50px !important;
}

/* ==========================================================================
   12. GUTENBERG BLOCKS STYLES (PERFORMER CARD)
   ========================================================================== */
.event-description p {
    margin-bottom: 25px;
}
   .performer-card {
    background: #ffffff;
    padding: 30px 15px;
    border-radius: 12px;
    margin-top: 40px;
    border-left: 10px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Kružna slika */
.performer-card .performer-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gray-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin: 0 auto;
}

/* Responsive za mobilne uređaje */
@media (max-width: 600px) {
    .performer-card .wp-block-columns {
        flex-direction: column !important;
    }
    .performer-card .performer-image {
        margin-bottom: 20px;
    }
}

/* Podnaslov (Lead Text) */
.event-lead-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    font-weight: 800;
}

/* Naslov sekcije izvođača - odvajanje od gornjeg sadržaja */
h3.performer-heading {
    margin-top: 60px;
}



/* ==========================================================================
   9. ORDER DETAILS PAGE
   ========================================================================== */
/* The main container already uses .card-style, which is good. */

/* Style the summary box */
#order_details > p:first-of-type {
    background: var(--gray-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    line-height: 1.8;
}

#order_details > p:first-of-type label {
    display: block;
    font-size: 1rem;
}

#order_details > p:first-of-type .order_details_title {
    font-weight: 700;
    color: var(--black);
    display: inline-block;
    min-width: 120px; /* Aligns the values */
}

/* Style the "Tickets" heading */
#order_details h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 10px;
}

/* Style the tickets table, mimicking .event_tickets */
table.order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden; /* To clip content to the rounded corners */
}

table.order-details th {
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    padding: 15px 20px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    background: #fafafa;
}

table.order-details td {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
}

table.order-details tr:last-child td {
    border-bottom: none;
}

table.order-details tr.alternate {
    background: #fdfdfd;
}

/* Style the "Download" button, mimicking .add_to_cart */
table.order-details td[data-column="Ticket"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    border: none;
    white-space: nowrap;
}

table.order-details td[data-column="Ticket"] a:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    color: var(--white) !important;
}

/* ==========================================================================
   10. LIGHTBOX
   ========================================================================== */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(var(--primary-rgb), 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.image-lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-lightbox-overlay.is-active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.lightbox-close:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* ==========================================================================
   11. PAYMENT PAGE STYLING
   ========================================================================== */
   .tc-cart-seat-wrap br {
    display: none;
}
/* Center the entire payment form area */
#tc_payment_form {
    text-align: center;
    max-width: 800px;
}

.tickera-payment-gateways {
    background: var(--white);
    padding: 40px 0;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    border: 1px solid var(--gray-light);
    display: inline-block; /* Helps with centering if width is not 100% */
    width: 100%;
}

/* Gateway Title/Label */
.tickera-payment-gateways .plugin-title {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

/* Payment Button - Match .tickera_checkout */
.tc_payment_confirm {
    background: var(--primary-color) !important;
    padding: 18px 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease !important;
    color: var(--white) !important;
    border: none;
    margin-top: 10px;
    cursor: pointer;
}

.tc_payment_confirm:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.05) !important;
}

/* Responsive Cart */
@media (max-width: 768px) {
    /* Adjust Header for Mobile */
    .tickera_table thead { padding: 0 10px; margin-bottom: 5px; }
    .tickera_table thead tr { gap: 5px; }
    .tickera_table th { font-size: 0.55rem; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
    .tickera_table th:nth-child(2) { display: block; width: 50px; } /* Price */
    .tickera_table th:nth-child(3) { margin: 0; width: 50px; text-align: center; flex-shrink: 0; } /* Match compact quantity */
    .tickera_table th:nth-child(4) { display: block; width: 50px; } /* Fee */
    .tickera_table th:nth-child(5) { width: 50px; text-align: right; flex-shrink: 0; }

    .tickera_table tbody tr {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 5px;
        padding: 10px;
    }
    .tickera_table tbody tr::before {
        display: none; /* Hide icon on mobile */
    }

    /* Ticket Name */
    .tickera_table td.ticket-type {
        font-size: 0.8rem;
        line-height: 1.2;
        padding-right: 2px;
        width: auto;
        flex: 1;
        min-width: 0;
        white-space: normal;
        word-wrap: break-word;
    }

    .tickera_table td.ticket-price {
        display: block;
        width: 50px;
        font-size: 0.75rem;
    }
    
    .tickera_table td.ticket-fee {
        display: block;
        width: 50px;
        font-size: 0.75rem;
    }

    .tickera_table td.ticket-quantity {
        margin: 0;
        width: 50px;
        flex-shrink: 0;
    }
    /* Compact Quantity Selector */
    .ticket_quantity .inner-wrap { height: 30px; }
    .ticket_quantity .tickera_button.minus, .ticket_quantity .tickera_button.plus { padding: 0; width: 18px; font-size: 1rem; justify-content: center; }
    .ticket_quantity .quantity { width: 19px; font-size: 0.9rem; }

    .tickera_table td.ticket-total {
        width: 50px;
        text-align: right;
        margin-top: 0;
        flex-shrink: 0;
    }

    /* Smaller remove icon */
    .tc_cart_remove_icon { width: 24px; height: 24px; margin-right: 5px; }
    .tc_cart_remove_icon::after { font-size: 14px; }
    .tc_cart_remove_icon.tc_cart_ticket_remove::after { font-size: 16px; }

    .action-wrap {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .discount-wrap {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
        .tickera-checkout .discount-wrap {
        flex-direction: row;
    }

    .discount-wrap .tickera-input-field {
        width: auto !important;
        flex: 0 1 auto;
        min-width: 150px;
    }

    .discount-wrap input[type="submit"] {
        width: auto !important;
    }

    .update-wrap {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    .update-wrap input[type="submit"] {
        width: auto !important;
    }

    .proceed-to-checkout-container {
        justify-content: center;
    }
    .tickera_checkout {
        width: 100%;
        text-align: center;
    }

    .tickera_checkout,
    .tc_payment_confirm {
        font-size: 0.9rem !important;
        padding: 16px 30px !important;
    }
    .tickera_table tr.last-table-row {
        width: 100%; /* Full width na mobilnom */
        margin-left: 0;
    }
    .tickera_additional_info {
        padding: 20px;
    }

    /* Fix Actions Row (Coupon/Update) to be full width without padding */
    .tickera_table tbody tr:last-child:not(.last-table-row) {
        display: block;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        width: 100%;
        box-sizing: border-box;
    }
    .tickera_table tbody tr:last-child:not(.last-table-row) td.actions {
        width: auto;
        display: block;
    }
.tickera_table tbody tr:not(.last-table-row):not(:last-child)::before {
    display: none;
}
}

/* Remove Icon Styling */
.tc-single-cart-seat {
    display: flex;
    align-items: center; /* Vertikalno centriranje */
    justify-content: flex-start; /* Poravnanje lijevo */
    width: auto; /* Širina prema sadržaju */
    margin-top: 5px;
    max-width: 100%;
}

.tc_cart_remove_icon {
    order: -1; /* Centriraj lijevo (prije imena) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffebee;
    color: #d32f2f;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px; /* Razmak od teksta */
}
.tc_cart_remove_icon:hover {
    background: #d32f2f;
    color: #fff;
}
.tc_cart_remove_icon i { display: none; }
.tc_cart_remove_icon::after {
    content: '\f182'; /* dashicons-trash */
    font-family: 'dashicons';
    font-size: 16px;
}
.tc_cart_remove_icon.tc_cart_ticket_remove::after {
    content: '\f158'; /* dashicons-no */
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}
.tc_cart_remove_icon.tc_cart_ticket_remove {
    background: transparent;
    border: 2px solid var(--primary-color);
}
    .tc_cart_seat_remove {
    margin-left: 0;
}

/* ==========================================================================
   13. PAGINATION
   ========================================================================== */
.pagination-wrapper {
    margin: 60px 0 80px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50%; /* Kružni oblik */
    font-weight: 600;
    transition: var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.pagination .prev,
.pagination .next {
    font-size: 1.2rem;
}
