/* ===== EVENTS CONTAINER ===== */
.vex-events-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 5px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.vex-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.vex-events-header h1 {
    font-size: 35px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    margin: 20px auto;
}

.vex-events-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.vex-events-filters {
    display: flex;
    gap: 10px;
}

.vex-filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.vex-filter-btn:hover {
    border-color: var(--success);
    color: var(--success);
}

.vex-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border: none;
}

/* Search */
.vex-events-search {
    position: relative;
    width: 60%;
}

.vex-events-search svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-400);
}

.vex-events-search input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-primary);
}

.vex-events-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.vex-events-search input::placeholder {
    color: var(--gray-400);
}

/* Events Grid */
.vex-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.vex-events-filters-grid {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
}

.vex-event-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
    background: var(--white);
}

.vex-event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vex-event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.vex-event-image-placeholder {
    width: 100%;
    height: 220px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vex-event-image-placeholder svg {
    width: 60px;
    height: 60px;
    color: rgba(0, 0, 0, 0.3);
}

.vex-event-body {
    padding: 20px;
}

.vex-event-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-dark);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.vex-event-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.vex-event-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vex-event-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vex-event-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 13px;
}

.vex-event-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

.vex-event-stats {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.vex-event-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.vex-event-stat svg {
    width: 16px;
    height: 16px;
}

.vex-event-stat strong {
    color: var(--success);
    font-weight: 600;
}

/* Loading */
.vex-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
    font-size: 16px;
}

/* Pagination */
.vex-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.vex-page-btn {
    padding: 10px 15px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.vex-page-btn:hover {
    border-color: var(--success);
    color: var(--success);
}

.vex-page-btn.active {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

/* Modal */
.vex-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.vex-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vex-modal-dialog {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.vex-modal-xl {
    max-width: 1000px;
}

.vex-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.vex-modal-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.vex-modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--gray-200);
}

.vex-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.vex-modal-body {
    padding: 25px;
}

.vex-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form */
.vex-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.vex-form-group {
    margin-bottom: 15px;
}

.vex-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.vex-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-primary);
}

.vex-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Buttons */
.vex-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.vex-btn-primary {
    background: var(--success);
    color: var(--white);
}

.vex-btn-primary:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.vex-btn-secondary {
    background: var(--gray-200);
    color: var(--text-muted);
}

.vex-btn-secondary:hover {
    background: var(--gray-300);
}

/* Toast */
.vex-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transition: bottom 0.3s;
    box-shadow: var(--shadow-lg);
}

.vex-toast.show {
    bottom: 30px;
}

.vex-toast svg {
    width: 20px;
    height: 20px;
}

.vex-toast.error {
    background: var(--danger);
}

.vex-toast.success {
    background: var(--success);
}

/* Event Actions */
.vex-event-actions {
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.vex-btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vex-event-image-wrapper {
    position: relative;
    overflow: hidden;
}

.vex-event-image-wrapper:hover .vex-event-image {
    transform: scale(1.05);
}

.vex-event-image {
    transition: transform 0.3s ease;
}

.vex-event-title:hover {
    color: var(--primary);
}

/* Tab Tickets */
.vex-tickets-grid {
    display: grid;
    gap: 20px;
}

.vex-ticket-card-front {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    background: var(--white);
    transition: all 0.3s;
}

.vex-ticket-card-front:hover {
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.vex-ticket-card-front.sold-out {
    opacity: 0.6;
    pointer-events: none;
}

.vex-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.vex-ticket-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.vex-ticket-price-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
}

.vex-ticket-price-large.free {
    color: var(--primary);
}

.vex-ticket-description {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.vex-ticket-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.vex-ticket-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vex-ticket-info-item svg {
    width: 16px;
    height: 16px;
}

.vex-ticket-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vex-quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.vex-qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
}

.vex-qty-btn:hover {
    background: var(--success);
    color: var(--white);
}

.vex-qty-input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    background: transparent;
    color: var(--text-primary);
}

.vex-add-to-cart-btn {
    flex: 1;
}

/* Cart Badge */
.vex-header-cart {
    position: relative;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
}

.vex-header-cart:hover {
    color: var(--success);
}

.vex-header-cart svg {
    width: 24px;
    height: 24px;
}

.vex-cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--warning);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mini Cart */
.vex-mini-cart {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-2xl);
    z-index: 9998;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vex-mini-cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vex-mini-cart-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.vex-mini-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.vex-mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.vex-mini-cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 10px;
}

.vex-mini-cart-item-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.vex-mini-cart-item-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.vex-mini-cart-item-price {
    text-align: right;
}

.vex-mini-cart-item-price strong {
    font-size: 16px;
    color: var(--success);
}

.vex-mini-cart-item-qty {
    font-size: 13px;
    color: var(--text-muted);
}

.vex-mini-cart-item-remove {
    background: none;
    border: none;
    color: var(--warning);
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
}

.vex-mini-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.vex-mini-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-primary);
}

.vex-mini-cart-total strong {
    color: var(--success);
    font-size: 24px;
}

.vex-mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

/* === EVENT CARD OVERLAY === */
.vex-event-image-overlay {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.vex-event-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vex-event-card:hover .vex-event-image-overlay img {
    transform: scale(1.05);
}

/* Data Badge Verticale */
.vex-event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 15px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    color: var(--text-primary);
    border-radius: 12px;
}

.vex-event-date-day {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.vex-event-date-month {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Titolo Overlay */
.vex-event-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(1px);
    padding: 8px 23px 0px;
    color: var(--white);
    z-index: 2;
    height: 50px;
    text-align: center;
   background: rgb(255 255 255 / 32%);
}

.vex-event-title-overlay h3 {
font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgb(0 0 0 / 84%);
}

.vex-event-title-overlay p {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

/* === EVENT DETAIL PAGE === */
.vex-event-detail-page {
    min-height: 100vh;
    background: var(--bg-body);
}

/* Banner con overlay info */
.vex-banner-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.vex-event-detail-overlay {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    box-shadow: var(--shadow-2xl);
    z-index: 10;
    animation: slideInRight 0.8s ease-out;
}

@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(--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;
}

.vex-event-detail-meta svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Grid Layout */
.vex-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vex-event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.vex-event-detail-main {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

/* Tabs */
.vex-detail-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 30px;
    overflow-x: auto;
}

.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;
    transition: all 0.3s;
    white-space: nowrap;
}

.vex-detail-tab svg {
    width: 18px;
    height: 18px;
}

.vex-detail-tab:hover {
    color: var(--primary);
}

.vex-detail-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.vex-detail-tab-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 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 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.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: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.vex-cart-widget-item {
    padding: 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
}

.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(--primary);
}

.vex-cart-widget-footer {
    padding: 20px;
    border-top: 2px 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(--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(--primary);
}

.vex-next-event-item {
    display: block;
    padding: 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.vex-next-event-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.vex-next-event-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 8px 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;
}

/* Responsive */
@media (max-width: 1024px) {
    .vex-event-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .vex-event-detail-overlay {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        margin: -100px 20px 0;
    }
    
    .vex-cart-widget {
        position: relative;
        top: 0;
    }
    
    .vex-banner-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .vex-banner-slider {
        height: 500px;
    }
    
    .vex-events-search {
        width: 100%;
    }
    
    .vex-events-grid {
        grid-template-columns: 1fr;
    }
    
    .vex-events-header {
		padding: 10px;
        font-size: 20px !important;
        text-align: center !important;
    }
	
	.vex-events-filters-grid{
	display:none;
	}
    
    .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-form-row {
        grid-template-columns: 1fr;
    }
    
    .vex-mini-cart {
        width: calc(100% - 40px);
        right: 20px;
    }
}