/* =====================================
   SUMMARY
===================================== */

/* Styles for final summary */
.summary-accordion {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* más separación entre items */
}

.summary-container {
    margin-bottom: 1.5rem; /* aumentar separación entre términos */
    border-radius: 8px;
    overflow: visible; /* permitir sombra exterior */
    width: 100%;
    margin-left: auto;
    margin-right: auto; /* Center the cards */
    padding: 0.25rem 0; /* pequeño padding para separación interior */
    background: transparent;
}

/* Asegurar que summary-item (usado en fase A) también tenga separación y sombra */
.summary-item {
    margin-bottom: 0.5rem;
    border-radius: 8px;
    padding: 0.25rem 0;
    overflow: visible;
}

.summary-content {
    display: none;
    padding: 1.5rem 1.5rem 0rem;
    background: white;
    width: 99%;
    box-sizing: border-box;
    transition: height 0.3s;
    overflow: hidden;
    border-left: var(--color-primary-dark) 2px solid;
    border-bottom-left-radius: var(--border-radius);
    margin-left: auto;
}

.summary-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--color-primary-dark);
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    margin: 0.2rem 0; /* Añadido margen para separación */
}


.summary-header:hover {
    background-color: #e6f5ff;
}

.summary-header .toggle-icon {
    transition: transform 0.3s;
}


.linguistic-summary {
    border-radius: 10px;
    outline: none;
    /* top right bottom left */
    padding: 0rem 1rem 0rem;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.08);*/
}

.linguistic-summary p {
    margin-bottom: 1rem;
}


.evaluation-details {
    /* border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); */
    border-radius: 10px;
    overflow: hidden;
    padding: 1rem;
    margin-bottom: 1rem;
}


.detail-title {
    color: var(--color-secondary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 10px;
}

.detail-content {
    /* top right bottom left */
    padding: 1rem 2rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}


.instructions {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* Open state of accordion */
.summary-item.active .summary-header {
    background-color: #d2ecff;
}

.summary-item.active .toggle-icon {
    transform: rotate(180deg);
}

.evaluation-columns {
    display: flex;
    column-gap: 2rem;
    row-gap: 0.1rem;
    margin-bottom: 0rem;
    flex-wrap: wrap;
    width: 100%;

}
.evaluation-columns .evaluation-details {
    flex: 1 1 0;
    min-width: 250px;
}

.evaluation-details {
    padding: 0;
}

.evaluation-toggle {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    /*background: #f8fbff;*/
    background: white;
    /*border-left: 2px solid black;*/
    outline: none;
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.evaluation-toggle .toggle-evaluation-icon {
    transition: transform 0.3s;
    transform: rotate(0deg); /* <-- Añade esto */
}

.evaluation-details.active .toggle-evaluation-icon {
    transform: rotate(180deg);
}

.evaluation-content {
    display: none;
    padding: 1rem 1.5rem;
    transition: height 0.3s;
    overflow: hidden;
}

.final-summary {
    background-color: var(--color-primary-lighter);
    padding: 1rem;
    border-radius: 10px;
}

/* Chips para valores como Grado de uso, Clasificación, etc. */
.chip {
    display: inline-block;
    padding: 0.28rem 0.6rem;
    margin-right: 0.45rem;
    background: rgba(36, 59, 74, 0.072); /* fallback light tone */
    color: var(--color-secondary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none;
}

/* Variantes específicas (ejemplos). Puedes añadir más según los valores reales que aparezcan. */
.chip-bastante-usado { background: rgba(36,59,74,0.08); color: rgba(60, 97, 122, 0.95); }
.chip-usado { background: rgba(36,59,74,0.06); color: rgba(33, 54, 68, 0.9); }
.chip-poco-usado { background: rgba(36,59,74,0.04); color: rgba(29, 47, 59, 0.85); }

.chip-es-nuevo { background: rgba(102, 78, 38, 0.08); color: rgba(128, 101, 53, 0.95); }
.chip-ya-lo-había-visto-pero-con-otro-significado { background: rgba(102, 78, 38, 0.08); color: rgba(82, 65, 36, 0.95); }
.chip-sin-clasificar { background: rgba(102,78,38,0.04); color: rgba(102,78,38,0.85); }

.chip-muy-recomendable { background: rgba(38,102,78,0.08); color: rgba(45, 133, 101, 0.95); }
.chip-recomendable { background: rgba(38,102,78,0.06); color: rgba(34, 89, 69, 0.9); }
.chip-poco-recomendable { background: rgba(38,102,78,0.04); color: rgba(29, 77, 60, 0.85); }

.chip-creo-que-su-significado-ha-cambiado { background: rgba(78,38,102,0.08); color: rgba(78,38,102,0.95); }
.chip-no-tengo-muy-claro-que-se-escriba-así { background: rgba(78,38,102,0.08); color: rgba(108, 86, 120, 0.95); }
.chip-no-tengo-muy-claro-lo-que-significa { background: rgba(78,38,102,0.04); color: rgba(78,38,102,0.85); } 

/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-container {
        max-width: 100%; /* Full width on mobile */
        margin-bottom: 1.5rem; /* Slightly less space on small screens */
    }
}
