/* FTL Acceleration Calculator Styles */
.ftl-accel-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ftl-accel-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 20px;
}

.ftl-accel-header {
    text-align: center;
    margin-bottom: 24px;
}

.ftl-accel-header h2 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 700;
}

.ftl-accel-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

.ftl-accel-unit-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ftl-accel-unit-btn {
    padding: 8px 20px;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.ftl-accel-unit-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.ftl-accel-unit-btn:hover:not(.active) {
    border-color: #2563eb;
    color: #2563eb;
}

.ftl-accel-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ftl-accel-input-group {
    display: flex;
    flex-direction: column;
}

.ftl-accel-input-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.ftl-accel-input-group input,
.ftl-accel-input-group select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.ftl-accel-input-group input:focus,
.ftl-accel-input-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.ftl-accel-input-group .unit-suffix {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

.ftl-accel-calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.ftl-accel-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.ftl-accel-results {
    display: none;
    margin-top: 24px;
    animation: fadeIn 0.4s ease;
}

.ftl-accel-results.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ftl-accel-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ftl-accel-result-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.ftl-accel-result-card.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #2563eb;
}

.ftl-accel-result-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ftl-accel-result-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
}

.ftl-accel-result-unit {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 4px;
}

.ftl-accel-chart-container {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.ftl-accel-chart-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    text-align: center;
}

.ftl-accel-comparison-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ftl-accel-comparison-label {
    width: 100px;
    font-size: 0.85rem;
    color: #6b7280;
}

.ftl-accel-comparison-track {
    flex: 1;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ftl-accel-comparison-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.6s ease;
}

.ftl-accel-comparison-fill.fast {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.ftl-accel-comparison-fill.medium {
    background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
}

.ftl-accel-comparison-fill.slow {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.ftl-accel-comparison-value {
    width: 80px;
    text-align: right;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.ftl-accel-whatif {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
}

.ftl-accel-whatif-title {
    font-weight: 600;
    color: #166534;
    margin-bottom: 12px;
}

.ftl-accel-whatif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ftl-accel-whatif-item {
    text-align: center;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ftl-accel-whatif-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ftl-accel-speed-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.ftl-accel-speed-fast { background: #22c55e; }
.ftl-accel-speed-medium { background: #eab308; }
.ftl-accel-speed-slow { background: #ef4444; }

.ftl-accel-traction-note {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #1e40af;
}

@media (max-width: 640px) {
    .ftl-accel-card {
        padding: 16px;
    }
    
    .ftl-accel-result-value {
        font-size: 1.5rem;
    }
    
    .ftl-accel-whatif-grid {
        grid-template-columns: 1fr;
    }
}
