/* =============================================================================
   LMC Radio — Parrilla semanal de programación
   Shortcode [lmc_radio_schedule]
   ============================================================================= */

/* ── Contenedor principal ─────────────────────────────────────────────────── */

.lmc-schedule {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

/* Wrapper con scroll horizontal en pantallas pequeñas */
.lmc-schedule__scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--color-border, #e5e7eb);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

/* ── Grid de 7 columnas ──────────────────────────────────────────────────── */

.lmc-schedule__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(148px, 1fr));
    gap: 0;
    min-width: 780px;
    background: var(--color-border, #e5e7eb);
}

/* ── Columna de día ──────────────────────────────────────────────────────── */

.lmc-schedule__day {
    background: #fff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border, #e5e7eb);
}

.lmc-schedule__day:last-child {
    border-right: none;
}

.lmc-schedule__day--today {
    background: #fffef7;
}

/* ── Cabecera de día ─────────────────────────────────────────────────────── */

.lmc-schedule__day-header {
    padding: 0.65rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg-alt, #f9fafb);
    position: sticky;
    top: 0;
    z-index: 1;
}

.lmc-schedule__day--today .lmc-schedule__day-header {
    background: #fef9e7;
}

.lmc-schedule__day-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-text-muted, #6b7280);
}

.lmc-schedule__day--today .lmc-schedule__day-name {
    color: #92700a;
}

.lmc-schedule__today-badge {
    font-size: 0.6rem;
    font-weight: 700;
    background: #C49102;
    color: #fff;
    padding: 1px 6px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* ── Lista de slots ──────────────────────────────────────────────────────── */

.lmc-schedule__slots {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lmc-schedule__empty {
    padding: 1.25rem 0.5rem;
    font-size: 0.73rem;
    color: var(--color-text-muted, #9ca3af);
    text-align: center;
    margin: 0;
}

/* ── Slot individual ─────────────────────────────────────────────────────── */

.lmc-schedule__slot {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.65rem;
    border-radius: 8px;
    background: var(--color-bg-alt, #f4f5f7);
    border: 1px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lmc-schedule__slot--active {
    background: #fffbeb;
    border-color: var(--slot-color, #C49102);
    box-shadow: 0 0 0 2px rgba(196, 145, 2, 0.12);
}

/* Portada del programa */
.lmc-schedule__slot-cover {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.lmc-schedule__slot-cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-border, #e5e7eb);
    color: var(--color-text-muted, #9ca3af);
}

/* Cuerpo del slot */
.lmc-schedule__slot-body {
    flex: 1;
    min-width: 0;
}

.lmc-schedule__slot-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.67rem;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 2px;
    line-height: 1.3;
}

.lmc-schedule__slot-dur {
    font-size: 0.6rem;
    color: var(--color-text-muted, #9ca3af);
    flex-shrink: 0;
}

.lmc-schedule__slot-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.lmc-schedule__slot--active .lmc-schedule__slot-title {
    color: #92700a;
}

/* Badge "Al aire" */
.lmc-schedule__on-air {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--slot-color, #C49102);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lmc-schedule__on-air::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--slot-color, #C49102);
    animation: lmc-sched-blink 1.1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes lmc-sched-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.15; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* En pantallas medianas reducir el mínimo de columna para mostrar más días */
@media (max-width: 960px) {
    .lmc-schedule__grid {
        grid-template-columns: repeat(7, minmax(130px, 1fr));
    }
}

/* Indicador visual de que hay scroll horizontal (gradiente en los bordes) */
@media (max-width: 768px) {
    .lmc-schedule__scroll-wrap {
        /* Pequeña sombra interior a la derecha como pista de scroll */
        background:
            linear-gradient(to right, #fff 20px, transparent 60px) left center / 60px 100% no-repeat,
            linear-gradient(to left,  #fff 20px, transparent 60px) right center / 60px 100% no-repeat;
    }
}
