/* === VARIABLES === */
:root {
    --vex-primary: #8b5cf6;
    --vex-primary-dark: #7c3aed;
    --vex-primary-light: #a78bfa;
    --vex-success: #10b981;
    --vex-danger: #ef4444;
    --vex-warning: #f59e0b;
    --vex-info: #3b82f6;
    --vex-secondary: #6b7280;
    --vex-light: #f9fafb;
    --vex-border: #e5e7eb;
    --vex-text: #1f2937;
    --vex-text-light: #6b7280;
    --vex-bg: #ffffff;
    --vex-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --vex-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --vex-radius: 6px;
    --vex-transition: all 0.2s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--vex-text);
    background: var(--bg-body);
    line-height: 1.6;
}

/* === EVENT DETAIL PAGE === */
.vex-event-detail-page {
    min-height: 100vh;
    background: var(--bg-body);
}

/* === BANNER SLIDER === */
.vex-banner-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--gray-900);
}

.vex-banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vex-banner-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vex-banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Banner Content (sinistra) */
.vex-banner-content {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 750px;
    z-index: 5;
    color: var(--white);
}

.vex-banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation-fill-mode: both;
}

.vex-banner-description {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation-fill-mode: both;
}

.vex-banner-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation-fill-mode: both;
}

.vex-banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}



@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.vex-event-detail-date {
    display: inline-block;
    background: var(--vex-primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.vex-event-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.vex-event-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
    font-size: 15px;
}

.vex-event-detail-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.vex-event-detail-meta svg {
    width: 18px;
    height: 18px;
    color: var(--vex-primary);
    flex-shrink: 0;
}

/* Banner Navigation */
.vex-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-primary);
}

.vex-banner-nav:hover {
    background: var(--vex-primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.vex-banner-prev {
    left: 20px;
}

.vex-banner-next {
    right: 20px;
}

.vex-banner-nav svg {
    width: 24px;
    height: 24px;
}

/* Banner Dots */
.vex-banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.vex-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vex-banner-dot.active {
    background: var(--vex-primary);
    width: 40px;
    border-radius: 6px;
}

.vex-banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === MAIN CONTENT === */
.vex-container {
    max-width: 1370px;
    margin: 0 auto;
    padding: 20px 20px;
}

.vex-event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 15px;
    align-items: start;
}

/* === TABS === */
.vex-detail-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.vex-detail-tabs::-webkit-scrollbar {
    height: 4px;
}

.vex-detail-tabs::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.vex-detail-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--vex-transition);
    white-space: nowrap;
}

.vex-detail-tab svg {
    width: 18px;
    height: 18px;
}

.vex-detail-tab:hover {
    color: var(--text-primary);
}

.vex-detail-tab.active {
    color: var(--vex-primary);
    border-bottom-color: var(--vex-primary);
}

.vex-detail-tab-content {
    animation: fadeIn 0.3s ease-in;
    background: var(--white);
    border-radius: 12px;
    padding: 10px;
}

.vex-event-detail-main {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === TICKETS === */
.vex-tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.vex-ticket-card-front {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 25px;
    background: var(--white);
    transition: all 0.3s ease;
}

.vex-ticket-card-front:hover {
    border-color: var(--vex-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.vex-ticket-card-front.sold-out {
    opacity: 0.6;
    background: var(--gray-50);
}

.vex-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    gap: 25px;
}

.vex-ticket-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.vex-ticket-description {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.access-sm {
    text-align: center;
    color: var(--text-muted);
    border: 1px solid var(--gray-300);
    padding: 10px;
    border-radius: 10px;
}

#eventsToastMessage {
    color: var(--vex-primary);
}

.vex-ticket-price-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--vex-primary);
}

.vex-ticket-price-large.free {
    color: var(--primary);
}

.vex-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.vex-ticket-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.vex-ticket-info-item svg {
    width: 16px;
    height: 16px;
    color: var(--vex-primary);
}

.vex-ticket-actions-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.vex-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--vex-radius);
    overflow: hidden;
}

.vex-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vex-transition);
    text-align: center;
}

.vex-qty-btn:hover {
    background: var(--vex-primary);
    color: var(--white);
}

.vex-qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: var(--white);
    color: var(--text-primary);
}

.vex-add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === BUTTONS === */
.vex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--vex-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vex-transition);
    text-decoration: none;
}

.vex-btn-primary {
    color: var(--white);
}

.vex-btn-primary:hover {
    background: var(--vex-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--vex-shadow-lg);
}

.vex-btn-block {
    width: 100%;
}

/* === CART WIDGET === */
.vex-cart-widget {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
}

.vex-cart-widget-header {
    color: var(--white);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
	border-bottom: 1px solid var(--gray-200);
}

.vex-cart-widget-header svg {
    width: 24px;
    height: 24px;
}

.vex-cart-widget-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.vex-cart-widget-body {
    padding: 0px 7px 8px 7px;
    max-height: 400px;
    overflow-y: auto;
}

.vex-cart-widget-body::-webkit-scrollbar {
    width: 6px;
}

.vex-cart-widget-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.vex-cart-widget-item {
    background: var(--gray-50);
    border-radius: 10px;
    margin-bottom: 8px;
}

.vex-cart-widget-item:last-child {
    margin-bottom: 0;
}

.vex-cart-widget-item h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.vex-cart-widget-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
}

.vex-cart-widget-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--vex-primary);
}

.vex-cart-widget-footer {
    padding: 0px 15px 15px 20px;
    border-top: 1px solid var(--gray-200);
}

.vex-cart-widget-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-primary);
}

.vex-cart-widget-total strong {
    font-size: 24px;
    font-weight: 700;
    color: var(--vex-primary);
}

/* === NEXT EVENTS === */
.vex-next-events {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.vex-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.vex-sidebar-title svg {
    width: 20px;
    height: 20px;
    color: var(--vex-primary);
}

.vex-next-event-item {
    display: block;
    padding: 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--vex-radius);
    margin-bottom: 12px;
    transition: var(--vex-transition);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--white);
}

.vex-next-event-item:last-child {
    margin-bottom: 0;
}

.vex-next-event-item:hover {
    border-color: var(--vex-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.vex-next-event-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--vex-primary);
    margin: 0 0 5px 0;
}

.vex-next-event-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vex-next-event-item svg {
    width: 14px;
    height: 14px;
}

/* === LOADING === */
.vex-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 16px;
}

/* === TOAST === */
.vex-toast {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--vex-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: bottom 0.3s ease;
    z-index: 9999;
    border-left: 4px solid var(--vex-primary);
}

.vex-toast.show {
    bottom: 20px;
}

.vex-toast.success {
    border-left-color: var(--success);
}

.vex-toast.success svg {
    color: var(--success);
}

.vex-toast.error {
    border-left-color: var(--danger);
}

.vex-toast.error svg {
    color: var(--danger);
}

.vex-toast.info {
    border-left-color: var(--info);
}

.vex-toast.info svg {
    color: var(--info);
}

.vex-toast svg {
    width: 20px;
    height: 20px;
}

/* === VIDEO BANNER === */

/* Background blur */
.vex-banner-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(0.95);
    filter: blur(13px);
    opacity: 0.8;
    z-index: 0;
}

/* Video principale */
.vex-banner-video-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.vex-banner-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === INVITATION BOX === */
.vex-invitation-box {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.vex-inv-alert {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.vex-inv-alert.vex-inv-info {
    border-top: 4px solid var(--vex-primary);
}

.vex-inv-alert.vex-inv-success {
    border-top: 4px solid var(--success);
}

.vex-inv-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
}

.vex-inv-close:hover {
    color: var(--text-primary);
}

.vex-inv-icon {
    font-size: 40px;
    text-align: center;
    padding: 20px 20px 10px;
}

.vex-inv-content {
    padding: 0 20px 20px;
}

.vex-inv-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-primary);
}

.vex-inv-content p {
    margin: 0 0 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.vex-inv-field {
    margin-bottom: 12px;
}

.vex-inv-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.vex-inv-field select,
.vex-inv-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    color: var(--text-primary);
    background: var(--white);
}

.vex-inv-field select:focus,
.vex-inv-field textarea:focus {
    outline: none;
    border-color: var(--vex-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.vex-inv-btn {
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vex-inv-btn:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
}

.vex-inv-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

.vex-inv-barcode {
    text-align: center;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    margin: 15px 0;
}

.vex-inv-code {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
}

/* === CART WIDGET ITEM STRUCTURE === */
.vex-cart-widget-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0px 0;
}

.vex-cart-widget-item:last-child {
    border-bottom: none;
    margin-top: 10px;
}

.vex-cart-widget-item-info {
    flex: 1;
    padding: 10px;
}

.vex-cart-widget-item-info h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.vex-cart-widget-item-price {
    font-size: 13px;
    color: var(--vex-primary);
    font-weight: 600;
}

/* Cart Quantity Controls */
.vex-cart-widget-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vex-cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-primary);
}

.vex-cart-qty-btn:hover {
    background: var(--vex-primary);
    color: var(--white);
    border-color: var(--vex-primary);
}

.vex-cart-qty-value {
    min-width: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.vex-cart-remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: 4px;
}

.vex-cart-remove-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .vex-event-detail-grid {
        grid-template-columns: 1fr;
    }

    .vex-banner-content {
        left: 30px;
        max-width: 500px;
    }

    .vex-event-detail-overlay {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        margin: -80px 20px 20px;
    }

    .vex-cart-widget {
        position: relative;
        top: 0;
    }

    .vex-banner-title {
        font-size: 36px;
    }

    .vex-banner-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .vex-banner-slider {
        height: 200px;
    }

    .vex-banner-content {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .vex-banner-title {
        font-size: 28px;
    }
	
	.vex-event-detail-main {
		padding:0px;
	}
	.vex-container {
    margin: 0 auto;
    padding: 0px 0px;
}

    .vex-banner-description {
        font-size: 16px;
    }

    .vex-event-detail-title {
        font-size: 24px;
    }

    .vex-tickets-grid {
        grid-template-columns: 1fr;
    }

    .vex-ticket-actions-row {
        flex-direction: column;
    }

    .vex-quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .vex-invitation-box {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}