/* Főoldali Számológép CSS - Glassmorphism Design */

/* Alap stílusok */
.fooldali-szamologep-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

/* Számológép konténer */
.calculator {
    background: rgba(255, 255, 255, 0.25);
    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: 400px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Kijelző terület */
.calculator-display {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: right;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.calculator-history {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    min-height: 20px;
    font-family: 'Courier New', monospace;
}

.calculator-current {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    word-wrap: break-word;
    overflow: hidden;
}

/* Gombok konténer */
.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Alap gomb stílusok - JAVÍTOTT KONTRASZT */
.calc-btn {
    border: none;
    border-radius: 15px;
    padding: 20px 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.calc-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Szám gombok - JAVÍTOTT */
.calc-btn-number {
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    color: #333333;
    border: 1px solid #d0d0d0;
}

.calc-btn-number:hover {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    color: #000000;
}

/* Operátor gombok - JAVÍTOTT */
.calc-btn-operator {
    background: linear-gradient(145deg, #ff9500, #ff8000);
    color: #ffffff;
    border: 1px solid #e67300;
}

.calc-btn-operator:hover {
    background: linear-gradient(145deg, #ffaa33, #ff9500);
    color: #ffffff;
}

/* Funkció gombok - JAVÍTOTT */
.calc-btn-function {
    background: linear-gradient(145deg, #8e8e93, #7a7a7a);
    color: #ffffff;
    border: 1px solid #6a6a6a;
}

.calc-btn-function:hover {
    background: linear-gradient(145deg, #a0a0a0, #8e8e93);
    color: #ffffff;
}

/* Egyenlő gomb - JAVÍTOTT */
.calc-btn-equals {
    background: linear-gradient(145deg, #34c759, #30d158);
    color: #ffffff;
    border: 1px solid #28a745;
    grid-column: span 2;
}

.calc-btn-equals:hover {
    background: linear-gradient(145deg, #40d469, #34c759);
    color: #ffffff;
}

/* Hiba állapot */
.calculator.error .calculator-current {
    color: #ff3b30;
    animation: shake 0.5s ease-in-out;
}

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Reszponzív design */
@media (max-width: 480px) {
    .calculator {
        padding: 20px;
        margin: 10px;
    }
    
    .calc-btn {
        padding: 15px 8px;
        font-size: 16px;
    }
    
    .calculator-current {
        font-size: 28px;
    }
    
    .calculator-history {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .calculator {
        padding: 15px;
    }
    
    .calc-btn {
        padding: 12px 6px;
        font-size: 14px;
    }
    
    .calculator-current {
        font-size: 24px;
    }
}

/* Témák támogatása */
.fooldali-szamologep-container[data-theme="dark"] {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.fooldali-szamologep-container[data-theme="dark"] .calculator {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fókusz állapotok */
.calc-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

/* Disabled állapot */
.calc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Nyomtatási stílusok */
@media print {
    .fooldali-szamologep-container {
        background: white;
    }
    
    .calculator {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}