/**
 * LuxEvent Frontend Styles
 * Professional seating chart display
 */

/* Seating Chart Container */
.luxevent-seating-chart {
    max-width: 1400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.luxevent-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.luxevent-venue-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.luxevent-event-name {
    margin: 5px 0 0 0;
    font-size: 16px;
    opacity: 0.9;
}

.luxevent-selected-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.luxevent-selected-count {
    font-size: 14px;
    font-weight: 600;
}

.luxevent-total-price {
    font-size: 24px;
    font-weight: 700;
}

/* Controls */
.luxevent-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    gap: 20px;
    flex-wrap: wrap;
}

.luxevent-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
}

.luxevent-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.luxevent-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.luxevent-filter-group select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.luxevent-filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.luxevent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* Price Slider */
.luxevent-price-slider {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.luxevent-range-input {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.luxevent-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.luxevent-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #5568d3;
}

.luxevent-price-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
}

/* Zoom Controls */
.luxevent-zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.luxevent-zoom-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.luxevent-zoom-btn:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.luxevent-zoom-level {
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* Map Container */
.luxevent-map-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-top: none;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.luxevent-seating-map {
    width: 100%;
    height: 600px;
    cursor: grab;
}

.luxevent-seating-map:active {
    cursor: grabbing;
}

/* Seats */
.luxevent-seat {
    cursor: pointer;
    transition: all 0.2s;
}

.luxevent-seat:hover {
    stroke-width: 3;
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Legend */
.luxevent-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    flex-wrap: wrap;
}

.luxevent-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.luxevent-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #1e293b;
}

/* Actions */
.luxevent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.luxevent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.luxevent-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.luxevent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.luxevent-btn-secondary {
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.luxevent-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Loading */
.luxevent-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.luxevent-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.luxevent-loading p {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* Tooltips */
.tippy-box[data-theme~='luxevent'] {
    background: #1e293b;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.tippy-box[data-theme~='luxevent'][data-placement^='top']>.tippy-arrow::before {
    border-top-color: #1e293b;
}

.luxevent-tooltip-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .luxevent-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .luxevent-selected-info {
        align-items: flex-start;
    }

    .luxevent-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .luxevent-filters {
        flex-direction: column;
    }

    .luxevent-zoom-controls {
        justify-content: center;
    }

    .luxevent-map-container {
        min-height: 400px;
    }

    .luxevent-seating-map {
        height: 400px;
    }

    .luxevent-actions {
        flex-direction: column;
    }

    .luxevent-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.luxevent-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Accessibility */
.luxevent-seat:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}