/* UWM Blueprints V3 - Custom Styles with Electromechanical Enhancements */

* {
    font-family: 'Space Mono', monospace;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9000;
    transition: opacity 0.3s;
    max-width: 250px;
    white-space: normal;
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

/* Step Indicator Styles */
.step-indicator {
    transition: all 0.3s ease;
}

.step-indicator.active {
    background-color: #000;
    color: #fff;
    animation: pulse-ring 2s infinite;
}

.step-indicator.completed {
    background-color: #374151;
    color: #fff;
}

/* Capacity Card Styles */
.capacity-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.capacity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.capacity-card.selected {
    background-color: #000;
    color: #fff;
    border-color: #000;
    animation: pulse-ring 2s infinite;
}

/* Addon Category Styles */
.addon-category {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-left: 4px solid #000;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.addon-category h3 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Addon Card Styles */
.addon-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-card:hover:not(.cursor-not-allowed) {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-width: 3px;
}

.addon-card.bg-black {
    position: relative;
    animation: pulse-ring 2s infinite;
}

.addon-card.bg-black::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.addon-card.cursor-not-allowed {
    transform: none;
}

.addon-card.cursor-not-allowed:hover {
    transform: none;
    box-shadow: none;
    border-width: 2px;
}

/* File Download Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.file-item {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.file-item:hover {
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-item.mandatory {
    border-color: #f59e0b;
    background: linear-gradient(to right, #fef3c7, #ffffff);
}

.file-item.addon {
    border-color: #3b82f6;
    background: linear-gradient(to right, #dbeafe, #ffffff);
}

/* Enhanced Button Hover Effects */
.btn-hover-lift {
    transition: all 0.3s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Solution Type Cards */
.solution-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.solution-card:hover::before {
    left: 100%;
}

/* Technology Cards Enhanced */
.tech-card {
    transition: all 0.3s ease;
    border-width: 2px;
}

.tech-card:hover {
    border-width: 3px;
}

.tech-card.selected {
    border-width: 3px;
    position: relative;
    animation: pulse-ring 2s infinite;
}

.tech-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
}

/* Active Selections Bar Enhanced */
.selections-bar {
    border-left: 4px solid #000;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    animation: fade-in 0.3s ease-out;
}

/* Configuration Summary Card */
.config-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #000;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.config-summary h3 {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Download Section Enhancements */
.download-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e5e7eb;
}

.download-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.download-section.mandatory {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
}

.download-section.addon {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
}

/* Enhanced Animations */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.pulse-subtle {
    animation: pulse-subtle 2s infinite;
}

/* Progress Indicator */
.progress-indicator {
    background: linear-gradient(90deg, #000 0%, #374151 100%);
    height: 4px;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Modal Enhancements */
.modal-overlay {
    backdrop-filter: blur(4px);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Government Logo Styles */
.gov-logos img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.gov-logos img:hover {
    filter: grayscale(0%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .addon-category {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .addon-card {
        min-height: 100px;
    }
    
    .file-grid {
        grid-template-columns: 1fr;
    }
    
    .gov-logos {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gov-logos img {
        height: 3rem;
    }
    
    .config-summary {
        padding: 16px;
    }
    
    .download-section {
        padding: 16px;
    }
}

/* Focus States for Accessibility */
button:focus,
.capacity-card:focus,
.solution-card:focus,
.tech-card:focus,
.addon-card:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .tooltip-content {
        background-color: #fff;
        color: #000;
    }
    
    .tooltip-content::after {
        border-color: #fff transparent transparent transparent;
    }
}

/* Print Styles */
@media print {
    .step-indicator,
    .gov-logos,
    button {
        display: none !important;
    }
    
    .modal-overlay {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}