/* css/components/_calculators.css */

/* Accordion Styles */
.calculators-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.open {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.accordion-button:hover {
    background: var(--input-bg-color);
}

.accordion-button i {
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.accordion-item.open .accordion-button i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    display: none; /* NASCOSTO DI DEFAULT */
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

.accordion-item.open .accordion-content {
    display: block; /* VISIBILE SE APERTO */
}

/* Layout Griglie Interne */
.calculator-grid-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .calculator-grid-double { grid-template-columns: 1fr; }
}

.category-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex; 
    align-items: center; 
    gap: 10px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}