/* Listeo Multi-Ticket Frontend Styles */

.multi-ticket-selection {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.multi-ticket-selection h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.ticket-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.ticket-type-row:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.ticket-type-row.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ticket-type-row.insufficient-stock {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ticket-info {
    flex: 1;
    min-width: 0;
}

.ticket-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-name strong {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.ticket-price {
    color: #059669;
    font-weight: 700;
    font-size: 20px;
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
}

.ticket-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
    font-style: italic;
}

.ticket-stock {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.sold-out {
    color: #dc2626;
    font-weight: 700;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insufficient-stock {
    color: #d97706;
    font-weight: 600;
}

.ticket-quantity {
    margin-left: 20px;
    min-width: 120px;
}

.ticket-quantity label {
    display: block;
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    margin-bottom: 5px;
}

.ticket-quantity-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #1f2937;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ticket-quantity-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ticket-quantity-select:hover {
    border-color: #9ca3af;
}

.quantity-unavailable {
    display: inline-block;
    padding: 10px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.multi-ticket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.multi-ticket-total .total-label {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.total-amount {
    color: #059669;
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.multi-ticket-breakdown {
    margin: 15px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.item-name {
    color: #374151;
    font-weight: 500;
}

.item-total {
    color: #059669;
    font-weight: 600;
}

.selected-quantity {
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
}

/* Animations and transitions */
.ticket-type-row {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multi-ticket-selection.has-selection .multi-ticket-total {
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .multi-ticket-selection {
        margin: 15px 0;
        padding: 15px;
        border-radius: 8px;
    }
    
    .ticket-type-row {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    
    .ticket-quantity {
        margin-left: 0;
        margin-top: 15px;
        min-width: auto;
    }
    
    .ticket-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ticket-name strong {
        font-size: 16px;
    }
    
    .ticket-price {
        font-size: 18px;
        align-self: flex-start;
    }
    
    .multi-ticket-total {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .total-amount {
        font-size: 24px;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .multi-ticket-selection h3 {
        font-size: 20px;
    }
    
    .ticket-type-row {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .ticket-quantity-select {
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* Loading states */
.ticket-type-row.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ticket-quantity-select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Error states */
.ticket-type-row.error {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Success states */
.ticket-type-row.success {
    border-color: #059669;
    background: #ecfdf5;
}

/* Focus and accessibility */
.ticket-quantity-select:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.ticket-type-row:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ticket-type-row {
        border-width: 3px;
    }
    
    .ticket-price {
        border-width: 2px;
    }
    
    .multi-ticket-total {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ticket-type-row,
    .ticket-quantity-select,
    .multi-ticket-total {
        transition: none;
    }
    
    .ticket-type-row:hover {
        transform: none;
    }
    
    @keyframes fadeIn {
        from, to {
            opacity: 1;
            transform: none;
        }
    }
}