/**
 * Frontend Stilovi - Dark Vintage Theme
 *
 * @package Takovska17\Repertoar
 */

:root {
    --t17-primary-color: #f3c245;
    --t17-dark-bg: #1a1a1a;
    --t17-darker-bg: #0f0f0f;
    --t17-text-color: #ffffff;
    --t17-text-muted: #aaaaaa;
    --t17-border-color: #333333;
}

/* UTF-8 i Ćirilica podrška */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
input,
textarea,
select,
button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variant-ligatures: normal;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"],
textarea {
    unicode-bidi: plaintext;
}

/* Archive & Grid */
.t17-archive-predstave {
    padding: 40px 0;
}

.t17-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.t17-archive-title {
    font-size: 3em;
    color: var(--t17-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.t17-archive-description {
    color: var(--t17-text-muted);
    font-size: 1.1em;
}

/* Grid Layout */
.t17-predstave-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.t17-grid-columns-1 {
    grid-template-columns: 1fr;
}

.t17-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.t17-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.t17-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card Predstave */
.t17-predstava-card {
    background: var(--t17-dark-bg);
    border: 1px solid var(--t17-border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.t17-predstava-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(243, 194, 69, 0.2);
    border-color: var(--t17-primary-color);
}

.t17-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.t17-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.t17-predstava-card:hover .t17-card-thumbnail img {
    transform: scale(1.05);
}

.t17-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.t17-card-title {
    margin: 0 0 15px;
    font-size: 1.5em;
    font-weight: 700;
}

.t17-card-title a {
    color: var(--t17-text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.t17-card-title a:hover {
    color: var(--t17-primary-color);
}

.t17-card-excerpt {
    color: var(--t17-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.t17-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.t17-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(243, 194, 69, 0.1);
    border: 1px solid var(--t17-primary-color);
    color: var(--t17-primary-color);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.t17-badge i,
.t17-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.t17-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--t17-border-color);
}

.t17-card-price {
    font-size: 1.2em;
    color: var(--t17-primary-color);
    font-weight: 700;
}

/* Buttons */
.t17-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--t17-primary-color);
    cursor: pointer;
    font-size: 1em;
}

.t17-btn-primary {
    background: var(--t17-primary-color);
    color: var(--t17-darker-bg);
}

.t17-btn-primary:hover {
    background: transparent;
    color: var(--t17-primary-color);
}

.t17-btn-outline {
    background: transparent;
    color: var(--t17-primary-color);
}

.t17-btn-outline:hover {
    background: var(--t17-primary-color);
    color: var(--t17-darker-bg);
}

.t17-btn-phone,
.t17-btn-email {
    background: transparent;
    color: var(--t17-primary-color);
}

.t17-btn-phone:hover,
.t17-btn-email:hover {
    background: var(--t17-primary-color);
    color: var(--t17-darker-bg);
}

/* Single Predstava */
.t17-predstava-single {
    background: var(--t17-dark-bg);
    border-radius: 8px;
    overflow: hidden;
}

.t17-predstava-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    background: var(--t17-darker-bg);
}

.t17-predstava-thumbnail img {
    width: 100%;
    border-radius: 8px;
}

.t17-predstava-title {
    font-size: 2.5em;
    color: var(--t17-primary-color);
    margin: 0 0 20px;
    font-weight: 700;
}

.t17-predstava-synopsis {
    color: var(--t17-text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.t17-predstava-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.t17-predstava-content {
    padding: 40px;
}

.t17-predstava-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--t17-border-color);
}

.t17-predstava-section:last-child {
    border-bottom: none;
}

.t17-predstava-section h2,
.t17-predstava-section h3 {
    color: var(--t17-primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.t17-predstava-crew strong {
    color: var(--t17-primary-color);
}

.t17-cast-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.t17-cast-list li {
    padding: 12px 18px;
    background: rgba(243, 194, 69, 0.08);
    border-left: 4px solid var(--t17-primary-color);
    color: var(--t17-text-color);
    border-radius: 0 6px 6px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.t17-cast-list li:hover {
    background: rgba(243, 194, 69, 0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(243, 194, 69, 0.2);
}

.t17-cast-list li::before {
    content: "⭐";
    margin-right: 8px;
    color: var(--t17-primary-color);
    font-size: 14px;
}

/* Schedule List (old style) */
.t17-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.t17-schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(243, 194, 69, 0.05) 0%, rgba(243, 194, 69, 0.02) 100%);
    border: 2px solid rgba(243, 194, 69, 0.3);
    border-radius: 8px;
    color: var(--t17-text-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.t17-schedule-item:hover {
    border-color: var(--t17-primary-color);
    background: rgba(243, 194, 69, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 194, 69, 0.15);
}

.t17-schedule-item i,
.t17-schedule-item .dashicons {
    color: var(--t17-primary-color);
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Dates Cards - Novi Dizajn (za Dynamic Tag) */
.t17-dates-cards-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    padding: 5px 0;
}

.t17-dates-cards {
    display: flex;
    gap: 15px;
    padding: 5px;
}

.t17-date-card {
    min-width: 140px;
    max-width: 140px;
    background: var(--t17-darker-bg);
    border: 2px solid var(--t17-primary-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.t17-date-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(243, 194, 69, 0.4);
    border-color: var(--t17-primary-color);
}

.t17-date-card-header {
    background: transparent;
    color: var(--t17-primary-color);
    text-align: center;
    padding: 15px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.t17-date-day {
    font-size: 2.5em;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--t17-primary-color);
}

.t17-date-month {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--t17-primary-color);
}

.t17-date-card-time {
    text-align: center;
    padding: 15px 10px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--t17-primary-color);
    background: rgba(243, 194, 69, 0.05);
}

/* Horizontal scroll za mobilne */
.t17-dates-cards-wrapper::-webkit-scrollbar {
    height: 8px;
}

.t17-dates-cards-wrapper::-webkit-scrollbar-track {
    background: rgba(243, 194, 69, 0.1);
    border-radius: 10px;
}

.t17-dates-cards-wrapper::-webkit-scrollbar-thumb {
    background: var(--t17-primary-color);
    border-radius: 10px;
}

.t17-dates-cards-wrapper::-webkit-scrollbar-thumb:hover {
    background: #e5b33d;
}

/* No Dates Message */
.t17-no-dates-message {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 350px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.t17-no-dates-message p {
    margin: 0;
    font-size: 16px;
    color: #A0A0A0;
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive no dates message */
@media (max-width: 768px) {
    .t17-no-dates-message {
        padding: 15px;
        margin: 15px 0;
    }
    
    .t17-no-dates-message p {
        font-size: 14px;
    }
}

/* Taxonomy Lists - Zanr, Uzrast, Trajanje */
.t17-zanr-list,
.t17-uzrast-list,
.t17-trajanje-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.t17-zanr-list li,
.t17-uzrast-list li,
.t17-trajanje-list li {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--t17-primary-color);
    color: var(--t17-primary-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.t17-zanr-list li:hover,
.t17-uzrast-list li:hover,
.t17-trajanje-list li:hover {
    background: var(--t17-primary-color);
    color: var(--t17-darker-bg);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(243, 194, 69, 0.3);
}

/* Linkovi unutar taksonomija */
.t17-zanr-list a,
.t17-uzrast-list a,
.t17-trajanje-list a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--t17-primary-color);
    color: var(--t17-primary-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.t17-zanr-list a:hover,
.t17-uzrast-list a:hover,
.t17-trajanje-list a:hover {
    background: var(--t17-primary-color);
    color: var(--t17-darker-bg);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(243, 194, 69, 0.3);
}

/* Gallery */
.t17-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.t17-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

.t17-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.t17-gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.t17-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.t17-lightbox-overlay.active {
    display: flex;
}

.t17-lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.t17-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.t17-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--t17-primary-color);
    color: var(--t17-darker-bg);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reservation */
.t17-reservation-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background: var(--t17-dark-bg);
    border: 1px solid var(--t17-border-color);
    color: var(--t17-text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--t17-primary-color);
    color: var(--t17-darker-bg);
    border-color: var(--t17-primary-color);
}

/* Read More Link */
.t17-read-more-link {
    color: var(--t17-primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--t17-primary-color);
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 3px;
}

.t17-read-more-link:hover {
    color: #fff;
    border-bottom-color: #fff;
    transform: translateX(3px);
}

/* Sinopsis Formatting (iz WYSIWYG editora) */
.elementor-widget-text-editor strong,
.t17-predstava-synopsis strong,
.t17-card-excerpt strong {
    font-weight: 700;
    color: var(--t17-primary-color);
}

.elementor-widget-text-editor em,
.t17-predstava-synopsis em,
.t17-card-excerpt em {
    font-style: italic;
    color: var(--t17-text-muted);
}

/* Headings unutar sinopsisa */
.elementor-widget-text-editor h2,
.t17-predstava-synopsis h2 {
    font-size: 1.8em;
    margin: 25px 0 15px;
    font-weight: 700;
    color: var(--t17-primary-color);
    border-bottom: 2px solid var(--t17-primary-color);
    padding-bottom: 10px;
}

.elementor-widget-text-editor h3,
.t17-predstava-synopsis h3 {
    font-size: 1.4em;
    margin: 20px 0 12px;
    font-weight: 700;
    color: var(--t17-text-color);
}

.elementor-widget-text-editor h4,
.t17-predstava-synopsis h4 {
    font-size: 1.2em;
    margin: 15px 0 10px;
    font-weight: 600;
    color: var(--t17-text-color);
}

/* Paragrafi */
.elementor-widget-text-editor p,
.t17-predstava-synopsis p {
    margin: 0 0 15px;
    line-height: 1.7;
}

/* Liste */
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.t17-predstava-synopsis ul,
.t17-predstava-synopsis ol {
    margin: 15px 0;
    padding-left: 30px;
    line-height: 1.7;
}

.elementor-widget-text-editor li,
.t17-predstava-synopsis li {
    margin: 8px 0;
}

.elementor-widget-text-editor ul li,
.t17-predstava-synopsis ul li {
    list-style-type: disc;
    color: var(--t17-text-color);
}

/* Blockquote */
.elementor-widget-text-editor blockquote,
.t17-predstava-synopsis blockquote {
    margin: 20px 0;
    padding: 15px 25px;
    border-left: 4px solid var(--t17-primary-color);
    background: rgba(243, 194, 69, 0.05);
    font-style: italic;
    color: var(--t17-text-muted);
}

/* Text Alignment */
.elementor-widget-text-editor .alignleft {
    text-align: left;
}

.elementor-widget-text-editor .aligncenter {
    text-align: center;
}

.elementor-widget-text-editor .alignright {
    text-align: right;
}

/* No Results */
.t17-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--t17-text-muted);
    font-size: 1.2em;
}

.t17-error {
    background: rgba(220, 50, 50, 0.1);
    border: 1px solid #dc3232;
    color: #dc3232;
    padding: 15px 20px;
    border-radius: 5px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .t17-grid-columns-4,
    .t17-grid-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .t17-predstava-header {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .t17-predstava-content {
        padding: 30px 20px;
    }
    
    .t17-grid-columns-4,
    .t17-grid-columns-3,
    .t17-grid-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .t17-archive-title {
        font-size: 2em;
    }
    
    .t17-predstava-title {
        font-size: 1.8em;
    }
    
    .t17-cast-list,
    .t17-schedule-list {
        grid-template-columns: 1fr;
    }
    
    .t17-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

