/**
 * DQA Sessions & Schedule
 * Calendario, sesiones próximas y filtros de sesiones
 */

/* ========================================= */
/* Schedule Slider */
/* ========================================= */
.dqa-schedule-slider {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    font-family: var(--fuentePrincipalDash) !important;
}

.dqa-schedule-slider.slick-initialized {
    visibility: visible;
    opacity: 1;
}

/* Grid para el contenedor del slide (3 columnas por defecto) */
.dqa-schedule-slider .dqa-slide-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
}

/* Tarjeta de sesión */
.dqa-session-card {
    width: auto !important;
}

.dqa-schedule-slider .card-content {
    background-color: var(--colorVerde);
    padding: 2.2rem 2.7rem;
    min-height: 6rem;
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    align-content: center;
}

.dqa-schedule-slider .card-content .card-title {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
}

.dqa-schedule-slider .card-content .card-date-time {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 1.4rem;
    font-weight: 400;
    color: #000;
}

@media screen and (min-width: 1024px) {
    .dqa-schedule-slider .card-content {
        min-height: 10rem;
        border-radius: 1rem;
    }
    .dqa-schedule-slider .card-content .card-title {
        font-size: 1.8rem;
    }
    .dqa-schedule-slider .card-content .card-date-time {
        font-size: 1.6rem;
    }
}

/* Responsive: Tablet (768px y abajo) - 2 columnas */
@media (max-width: 768px) {
    .dqa-schedule-slider .dqa-slide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Responsive: Móvil (480px y abajo) - 1 columna */
@media (max-width: 480px) {
    .dqa-schedule-slider .dqa-slide-grid {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }
}

/* ========================================= */
/* Filtros de Sesiones */
/* ========================================= */
.dqa-filtered-sessions-component {
    margin-bottom: 0;
}

.dqa-filters-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.4rem;
}

.dqa-filter-select {
    padding: 1rem 4rem;
    border-radius: 1rem;
    border: 1px solid var(--colorLavandaClaro2);
    font-size: 1.6rem;
    background-color: var(--colorLavandaClaro2);
    cursor: pointer;
    display: none; /* Oculto porque usamos Select2 */
}

/* Select2 custom styles */
.select2-container {
    display: inline-block;
}

.page-id-2438 .select2-container .select2-selection {
    border-radius: 10rem !important;
    border-color: rgba(0,0,0,0.3) !important;
}

.page-id-2438 .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 2rem;
}

.page-id-2438 .select2-container--default .select2-results__option--highlighted[aria-selected],
.page-id-2438 .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--colorVerde2);
    color: #000;
}

.page-id-2438 .select2-container--default .select2-results__option[aria-selected=true],
.page-id-2438 .select2-container--default .select2-results__option[data-selected=true] {
    background-color: var(--colorVerde2);
    color: #000;
}

.page-id-2438 .select2-container--default .select2-search--dropdown .select2-search__field {
    font-size: 2rem;
    border-radius: 2rem;
}

.page-id-2438 .select2-container .select2-dropdown,
.page-id-2438 .select2-container .select2-selection {
    border-color: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid;
}

.page-id-2438 .select2-container.select2-container--open .select2-dropdown--below {
    border-top: 1px solid;
}

/* ========================================= */
/* Lista de Sesiones Filtradas */
/* ========================================= */

/* Contenedor de sesiones de un alumno */
.dqa-student-sessions-container {
    margin-bottom: 5rem;
}

/* Wrapper que contiene el CARD y el BOTÓN */
.dqa-session-row-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

@media screen and (min-width: 1024px) {
    .dqa-session-row-wrapper {
        flex-direction: row;
        gap: 4rem;
    }
}

/* Card de la Sesión (Topic | Date) */
.dqa-session-card-content {
    flex-direction: column;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--colorVerde2);
    border-radius: 1rem;
    padding: 2.2rem 4rem;
    width: 100%;
    height: auto;
}

@media screen and (min-width: 1024px) {
    .dqa-session-card-content {
        flex-direction: row;
        height: 7rem;
    }
}

/* Nombre del producto/tema */
.dqa-row-topic {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    flex-basis: 60%;
    flex-shrink: 0;
}

/* Fecha/hora */
.dqa-row-date {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 1.4rem;
    font-weight: 500;
    color: #000;
    text-align: right;
    flex-basis: 40%;
    flex-shrink: 0;
}

/* Contenedor del Botón 'Go live' */
.dqa-row-button {
    flex-shrink: 0;
    width: 12rem;
}

/* Botón 'Go live' */
.dqa-go-live-button {
    font-family: var(--fuentePrincipalDash) !important;
    background-color: var(--colorVerde);
    color: #000;
    padding: 1rem 4rem;
    border-radius: 1rem;
    text-decoration: none;
    font-size: 1.6rem !important;
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

/* Nombre del alumno */
.dqa-current-session-title {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 2rem !important;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

@media screen and (min-width: 1024px) {
    .dqa-row-topic {
        font-size: 1.8rem;
    }
    .dqa-row-date {
        font-size: 1.6rem;
    }
}

/* ========================================= */
/* Teacher-Student Sessions Slider (Student Overview) */
/* ========================================= */
.dqa-teacher-student-sessions-slider {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    font-family: var(--fuentePrincipalDash) !important;
}

.dqa-teacher-student-sessions-slider.slick-initialized {
    visibility: visible;
    opacity: 1;
}

/* Grid para el contenedor del slide (3 columnas por defecto) */
.dqa-teacher-student-sessions-slider .dqa-slide-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
}

/* Tarjeta de sesión */
.dqa-teacher-student-sessions-slider .dqa-session-card {
    width: auto !important;
}

.dqa-teacher-student-sessions-slider .card-content {
    background-color: var(--colorVerde);
    padding: 2.2rem 2.7rem;
    min-height: 6rem;
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    align-content: center;
}

.dqa-teacher-student-sessions-slider .card-content .card-title {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
}

.dqa-teacher-student-sessions-slider .card-content .card-date-time {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 1.4rem;
    font-weight: 400;
    color: #000;
}

@media screen and (min-width: 1024px) {
    .dqa-teacher-student-sessions-slider .card-content {
        min-height: 10rem;
        border-radius: 1rem;
    }
    .dqa-teacher-student-sessions-slider .card-content .card-title {
        font-size: 1.8rem;
    }
    .dqa-teacher-student-sessions-slider .card-content .card-date-time {
        font-size: 1.6rem;
    }
}

/* Responsive: Tablet (768px y abajo) - 2 columnas */
@media (max-width: 768px) {
    .dqa-teacher-student-sessions-slider .dqa-slide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Responsive: Móvil (480px y abajo) - 1 columna */
@media (max-width: 480px) {
    .dqa-teacher-student-sessions-slider .dqa-slide-grid {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }
}
