/* Alapanyagcsere Kalkulátor CSS - Modern Health Design */

/* Alap stílusok */
.alapanyagcsere-kalkulator-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

/* Kalkulátor konténer */
.calculator {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 100%;
    max-width: 900px;
    animation: fadeIn 0.5s ease-in-out;
}

.calculator h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2em;
    font-weight: 700;
}

.calculator-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* 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;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1em;
}

.input-group input,
.input-group select {
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #ffffff;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-hint {
    font-size: 0.85em;
    color: #95a5a6;
    margin-top: 5px;
}

/* Egység választó csoportok */
.weight-input-group,
.height-input-group {
    display: flex;
    gap: 10px;
}

.weight-input-group input,
.height-input-group input {
    flex: 1;
}

.weight-input-group select,
.height-input-group select {
    width: 80px;
    min-width: 80px;
}

/* Számítás gomb */
.calculate-btn {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Eredmény szekció */
.result-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.result-header h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* BMR érték megjelenítés */
.bmr-value {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    color: white;
}

.bmr-number {
    font-size: 3.5em;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.bmr-unit {
    font-size: 1.3em;
    opacity: 0.9;
}

/* Részletes információk */
.bmr-details {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bmr-details h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
}

.detail-value {
    font-weight: 700;
    color: #3498db;
    font-size: 1.1em;
}

/* Kalória felhasználás lebontása */
.bmr-breakdown {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bmr-breakdown h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breakdown-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
    font-size: 0.9em;
}

.breakdown-bar {
    flex: 1;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 10px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

.breakdown-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.breakdown-percentage {
    font-weight: 700;
    color: #3498db;
    min-width: 40px;
    text-align: right;
    font-size: 0.9em;
}

/* Javaslatok */
.bmr-recommendations {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bmr-recommendations h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.recommendations-content {
    color: #34495e;
    line-height: 1.6;
}

.recommendations-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.recommendations-content li {
    margin-bottom: 8px;
}

/* Információs szekció */
.calculator-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #dee2e6;
}

.calculator-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.calculator-info p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

.calculator-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.calculator-info li {
    color: #34495e;
    margin-bottom: 8px;
    line-height: 1.5;
}

.calculator-info code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

.disclaimer {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.disclaimer p {
    color: #c0392b;
    margin: 0;
    font-weight: 500;
}

/* Aktivitási szint jelzők */
.activity-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.activity-indicator.sedentary { background: #e74c3c; }
.activity-indicator.light { background: #f39c12; }
.activity-indicator.moderate { background: #f1c40f; }
.activity-indicator.very-active { background: #27ae60; }
.activity-indicator.extremely-active { background: #3498db; }

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-section {
    animation: slideIn 0.5s ease-in-out;
}

/* Progress bar animáció */
@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--progress-width); }
}

.breakdown-fill {
    animation: progressFill 1s ease-out;
}

/* Reszponzív dizájn */
@media (max-width: 768px) {
    .alapanyagcsere-kalkulator-container {
        padding: 10px;
    }
    
    .calculator {
        padding: 20px;
    }
    
    .input-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bmr-number {
        font-size: 2.8em;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breakdown-label {
        min-width: auto;
    }
    
    .breakdown-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .calculator {
        padding: 15px;
    }
    
    .calculator h2 {
        font-size: 1.8em;
    }
    
    .bmr-number {
        font-size: 2.2em;
    }
    
    .weight-input-group,
    .height-input-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .weight-input-group select,
    .height-input-group select {
        width: 100%;
    }
    
    .breakdown-chart {
        gap: 20px;
    }
}

/* Sötét téma */
.alapanyagcsere-kalkulator-container[data-theme="dark"] {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.alapanyagcsere-kalkulator-container[data-theme="dark"] .calculator {
    background: rgba(44, 62, 80, 0.95);
    color: #ecf0f1;
}

.alapanyagcsere-kalkulator-container[data-theme="dark"] .calculator h2,
.alapanyagcsere-kalkulator-container[data-theme="dark"] .calculator h3,
.alapanyagcsere-kalkulator-container[data-theme="dark"] .calculator h4 {
    color: #ecf0f1;
}

.alapanyagcsere-kalkulator-container[data-theme="dark"] .input-group label {
    color: #ecf0f1;
}

.alapanyagcsere-kalkulator-container[data-theme="dark"] .input-group input,
.alapanyagcsere-kalkulator-container[data-theme="dark"] .input-group select {
    background: rgba(52, 73, 94, 0.8);
    border-color: #34495e;
    color: #ecf0f1;
}

.alapanyagcsere-kalkulator-container[data-theme="dark"] .result-section,
.alapanyagcsere-kalkulator-container[data-theme="dark"] .calculator-info {
    background: rgba(52, 73, 94, 0.8);
    border-color: #34495e;
}

.alapanyagcsere-kalkulator-container[data-theme="dark"] .bmr-details,
.alapanyagcsere-kalkulator-container[data-theme="dark"] .bmr-breakdown,
.alapanyagcsere-kalkulator-container[data-theme="dark"] .bmr-recommendations {
    background: rgba(52, 73, 94, 0.8);
}

/* Fókusz és accessibility */
.calculate-btn:focus,
.input-group input:focus,
.input-group select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print stílusok */
@media print {
    .alapanyagcsere-kalkulator-container {
        background: white;
        padding: 0;
    }
    
    .calculator {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .calculate-btn {
        display: none;
    }
    
    .result-section {
        display: block !important;
    }
}

/* Loading állapot */
.calculator.loading {
    position: relative;
    pointer-events: none;
}

.calculator.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.calculator.loading::before {
    content: 'Számítás...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-weight: 600;
    color: #3498db;
}

/* Hiba állapotok */
.input-group input.invalid,
.input-group select.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.calculator-error {
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: 500;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
} 