/* THM Kalkulátor CSS - Modern Design */

/* Alap stílusok */
.thm-kalkulator-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Kalkulátor konténer */
.calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.calculator h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.calculator-description {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 16px;
}

/* Input szekció */
.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-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.input-hint {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
    font-style: italic;
}

/* Számítás gomb */
.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.calculate-btn:hover {
    background: linear-gradient(145deg, #ff5252, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Eredmények */
.results {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.results h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #ff6b6b;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item.primary {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.result-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.result-item .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
}

.result-item.primary .value {
    font-size: 24px;
    color: #ff4757;
}

/* Költségek lebontása */
.cost-breakdown {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
}

.cost-breakdown h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: #ff6b6b;
}

.cost-chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.cost-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.cost-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.cost-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.cost-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ff6b6b;
}

/* THM magyarázat */
.thm-explanation {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #ff6b6b;
}

.thm-explanation h4 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 18px;
}

.thm-explanation p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.thm-explanation ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.thm-explanation li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.thm-explanation strong {
    color: #ff6b6b;
}

/* Hiba üzenet */
.error-message {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.4);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.error-message p {
    color: #ff3b30;
    font-weight: 600;
    margin: 0;
}

/* Loading állapot */
.calculator.loading .calculate-btn {
    background: #8e8e93;
    cursor: not-allowed;
}

.calculator.loading .calculate-btn::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reszponzív design */
@media (max-width: 768px) {
    .thm-kalkulator-container {
        padding: 10px;
    }
    
    .calculator {
        padding: 20px;
    }
    
    .input-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cost-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .calculator h2 {
        font-size: 24px;
    }
    
    .calculator-description {
        font-size: 14px;
    }
    
    .input-group input,
    .input-group select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .calculate-btn {
        font-size: 16px;
        padding: 12px;
    }
    
    .result-item .value {
        font-size: 18px;
    }
    
    .result-item.primary .value {
        font-size: 20px;
    }
}

/* Témák támogatása */
.thm-kalkulator-container[data-theme="dark"] .calculator {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.thm-kalkulator-container[data-theme="dark"] .input-group input,
.thm-kalkulator-container[data-theme="dark"] .input-group select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.thm-kalkulator-container[data-theme="dark"] .input-group input:focus,
.thm-kalkulator-container[data-theme="dark"] .input-group select:focus {
    background: rgba(255, 255, 255, 0.2);
}

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.result-item.primary {
    animation: pulse 2s infinite;
}

/* Nyomtatási stílusok */
@media print {
    .thm-kalkulator-container {
        background: white;
        color: black;
    }
    
    .calculator {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .calculate-btn {
        display: none;
    }
    
    .results {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
    
    .result-item.primary {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
} 