/* Manchester Alloys Vehicle Selector Styles */

/* Variables */
.ma-vehicle-selector-wrapper {
    --primary-black: #000000;
    --primary-yellow: #FFD700;
    --dark-yellow: #FFC107;
    --light-yellow: #FFF59D;
    --gray-dark: #0a0a0a;
    --gray-medium: #1a1a1a;
    --gray-light: #333333;
    --white: #ffffff;
    --glass-bg: rgba(255, 215, 0, 0.05);
    --glass-border: rgba(255, 215, 0, 0.15);
    --glow-yellow: rgba(255, 215, 0, 0.5);
    --glow-intense: rgba(255, 215, 0, 0.8);
    --text-light: #cccccc;
}

/* Reset for selector area */
.ma-vehicle-selector-wrapper * {
    box-sizing: border-box;
}

/* Main container */
.ma-vehicle-selector-wrapper {
    background: var(--primary-black);
    color: var(--white);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Futuristic background */
.ma-vehicle-selector-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--glow-yellow) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--glass-bg) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

.selector-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(50px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px var(--glow-yellow),
                   inset 0 0 20px rgba(255, 215, 0, 0.1);
    }
    50% { 
        box-shadow: 0 0 40px var(--glow-intense),
                   inset 0 0 30px rgba(255, 215, 0, 0.2);
    }
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Header */
.selector-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
}

.selector-header h1 {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--dark-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.selector-subtitle {
    color: var(--text-light);
    font-size: 18px;
    opacity: 0.8;
}

/* Progress bar */
.progress-bar {
    max-width: 600px;
    margin: 0 auto 50px;
    height: 4px;
    background: var(--gray-medium);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--glow-yellow);
}

/* Loading state */
.loading-container {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading-container.show {
    display: block;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-yellow);
    border-radius: 50%;
    animation: loadingPulse 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    color: var(--primary-yellow);
    font-size: 18px;
    font-weight: 500;
}

/* Selection steps */
.selection-step {
    max-width: 800px;
    margin: 0 auto;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.selection-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gray-medium);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    line-height: 36px;
    font-weight: 600;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.step-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.step-subtitle {
    color: var(--text-light);
    font-size: 16px;
    opacity: 0.8;
}

/* Options grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.option-button {
    background: var(--gray-medium);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.option-button:hover::before {
    left: 100%;
}

.option-button:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.05);
}

.option-button.selected {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.option-button.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.option-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.option-count {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.7;
}

/* Navigation */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.back-button {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

/* Vehicle summary */
.vehicle-summary {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: none;
    backdrop-filter: blur(10px);
}

.vehicle-summary.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.summary-title {
    font-size: 20px;
    color: var(--primary-yellow);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.summary-label {
    color: var(--text-light);
    font-size: 14px;
}

.summary-value {
    color: var(--primary-yellow);
    font-weight: 600;
}

/* Search section */
.search-section {
    max-width: 800px;
    margin: 40px auto 0;
    display: none;
}

.search-section.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.search-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.search-btn {
    padding: 25px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--primary-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.search-btn-icon {
    font-size: 36px;
}

.btn-wheels {
    background: linear-gradient(135deg, var(--primary-yellow), var(--dark-yellow));
}

.btn-tyres {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: var(--white);
}

.btn-packages {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: var(--white);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .selector-header h1 {
        font-size: 32px;
    }
    
    .options-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .option-button {
        padding: 15px;
    }
    
    .option-name {
        font-size: 16px;
    }
    
    .search-buttons {
        grid-template-columns: 1fr;
    }
    
    .summary-specs {
        grid-template-columns: 1fr;
    }
}
.debug-console {
    background: #111;
    color: #FFD700;
    font-family: monospace;
    font-size: 12px;
    margin-top: 30px;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.debug-console .debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.debug-console .debug-log-body {
    max-height: 250px;
    overflow-y: scroll;
    padding-right: 10px;
}

.debug-console button {
    background: #FFD700;
    color: #111;
    border: none;
    padding: 4px 8px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}
