/**
 * RTS Grilla TV – Estilos públicos
 *
 * Requiere Bootstrap 5 cargado en el tema.
 * Inspirado en el diseño de rtsmedios.com.ar/grilla-programacion/
 */

/* ── CONTENEDOR PRINCIPAL ──────────────────────── */
.rts-grilla-tv-container {
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ── TABS (nav-pills) ──────────────────────────── */
.rts-grilla-tabs {
    gap: 4px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rts-grilla-tabs .nav-link {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: #333;
    background-color: #e9ecef;
    border: 1px solid transparent;
    transition: background-color 0.2s, color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rts-grilla-tabs .nav-link:hover:not(.active):not(.disabled) {
    background-color: #d1d5db;
    color: #111;
}

/* .rts-grilla-tabs .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
} */

.rts-grilla-tabs .nav-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── TABLA DE PROGRAMACIÓN ─────────────────────── */
.rts-grilla-tabla {
    width: 100%;
    border-collapse: collapse;
}

.rts-grilla-tabla tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s;
}

.rts-grilla-tabla tbody tr:last-child {
    border-bottom: none;
}

.rts-grilla-tabla tbody tr:hover {
    background-color: #f0f4ff;
}

.rts-grilla-celda-hora {
    width: 80px;
    min-width: 65px;
    padding: 0.65rem 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0d6efd;
    white-space: nowrap;
    vertical-align: middle;
}

.rts-grilla-celda-programa {
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    color: #1f2937;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* ── ESTADO VACÍO ──────────────────────────────── */
.rts-grilla-empty {
    text-align: center;
    color: #6b7280;
    padding: 2rem 1rem;
    font-style: italic;
}

/* ── MODO DÍA ÚNICO (sin tabs) ─────────────────── */
.rts-grilla-modo-dia .rts-grilla-dia-titulo {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #0d6efd;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 576px) {
    .rts-grilla-tabs .nav-link {
        font-size: 0.78rem;
        padding: 0.4rem 0.6rem;
    }

    .rts-grilla-celda-hora,
    .rts-grilla-celda-programa {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }

    .rts-grilla-celda-hora {
        width: 60px;
        min-width: 55px;
    }
}

@media (max-width: 400px) {
    .rts-grilla-tabs .nav-link {
        font-size: 0.7rem;
        padding: 0.35rem 0.45rem;
    }
}
