/* fuel-calculator.css */
/* Основные стили для калькулятора топлива */

/* Общие стили для страницы */
body.fuel-calculator-page { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 16px; 
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
    background: #f5f5f5;
}

/* Хлебные крошки */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Заголовок страницы */
.fuel-calculator-page h1 { 
    margin: 16px 0; 
    text-align: center;
    color: #333;
}

/* Контейнер калькулятора */
.calculator-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calculator-container h2 {
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

/* Секция ввода данных */
.input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.input-group label { 
    font-size: 14px; 
    color: #495057; 
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input, 
.input-group select { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #e9ecef; 
    border-radius: 8px; 
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus, 
.input-group select:focus {
    outline: none;
    border-color: #007bff;
}

/* Кнопка расчета */
.calculate-btn {
    background: linear-gradient(90deg, #28a745, #20c997);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.calculate-btn:hover {
    background: linear-gradient(90deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Результаты */
.results {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.results h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.result-label {
    color: #6c757d;
    font-size: 14px;
}

/* Сравнение */
.comparison {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* Экономия топлива */
.fuel-efficiency {
    margin-top: 30px;
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    padding: 20px;
}

.fuel-efficiency h3 {
    color: #155724;
    margin-bottom: 15px;
}

.efficiency-item {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.efficiency-item:before {
    content: "🌱";
    position: absolute;
    left: 0;
}

/* Полезные советы */
.tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.tips h3 {
    color: #856404;
    margin-bottom: 15px;
}

.tip-item {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tip-item:before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .input-section {
        grid-template-columns: 1fr;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
    }
    
    .fuel-calculator-page {
        padding: 12px;
    }
    
    .calculator-container {
        padding: 16px;
    }
    
    .calculate-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}