/* Estilos específicos para el kalkulator zaokrągleń */
.calculator-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Calculadora */
.calculator {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* Opciones de redondeo */
.rounding-options {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    cursor: pointer;
}

/* Resultados */
.results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.result-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* Métodos de redondeo */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.method-box:hover {
    transform: translateY(-3px);
}

.method-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.example {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    font-family: monospace;
}

/* Tips section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tip-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-box ul {
    list-style: none;
    padding: 0;
}

.tip-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tip-box li::before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* FAQ section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .calculator {
        padding: 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .methods-grid,
    .tips-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .calculator-section {
        margin: 1rem auto;
    }

    .calculator {
        margin: 0 -1rem;
        border-radius: 0;
        padding: 1.2rem;
    }

    .rounding-options,
    .results {
        margin: 1rem -0.5rem;
        padding: 1rem;
    }

    .method-box,
    .tip-box,
    .faq-item {
        padding: 1rem;
    }
} 