/* ==========================================================
 * ExpoQueijo Programação — Premium Schedule CSS
 * Card-based timeline with elegant transitions
 * ========================================================== */

/* ── Container ── */
.expo-programacao {
    background: var(--expo-off-white, #F8F5F0);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 23, 20, 0.08), 0 2px 8px rgba(26, 23, 20, 0.04);
    margin: 0 auto;
    max-width: var(--container-max, 1200px);
    border-radius: 20px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    border: 1px solid rgba(197, 165, 114, 0.15);
}

/* ── Header: Gradient with subtle pattern ── */
.expo-programacao .expo-prog-header {
    color: var(--expo-branco, #fff);
    padding: 3.5rem 2.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.expo-programacao .expo-prog-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.expo-programacao .expo-prog-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.expo-programacao .expo-prog-header h2 {
    margin: 0 0 0.8rem 0;
    font-family: var(--font-heading, 'DM Serif Display', serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.expo-programacao .expo-prog-header p {
    margin: 0;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Day Bar: Elegant ribbon ── */
.expo-programacao .expo-prog-day {
    color: var(--expo-branco, #fff);
    padding: 1rem 2.5rem;
    font-family: var(--font-heading, 'DM Serif Display', serif);
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-align: left;
    letter-spacing: 0.02em;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.expo-programacao .expo-prog-day::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.expo-programacao .expo-prog-day::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
}

/* ── Table ── */
.expo-programacao .expo-prog-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.expo-programacao .expo-prog-table th {
    background: var(--expo-off-white, #F8F5F0);
    padding: 0.9rem 1.5rem;
    text-align: left;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-weight: 600;
    color: var(--expo-marrom, #7A4E2D);
    border-bottom: 2px solid var(--expo-bege, #C5A572);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.expo-programacao .expo-prog-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(197, 165, 114, 0.12);
    vertical-align: middle;
    font-family: var(--font-body, 'Montserrat', sans-serif);
}

.expo-programacao .expo-prog-table tbody tr {
    background: #fff;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expo-programacao .expo-prog-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(248,245,240,0.8), rgba(197,165,114,0.06));
    transform: scale(1.002);
}

.expo-programacao .expo-prog-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Time Badge: Pill with soft glow ── */
.expo-programacao .expo-prog-time {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--expo-vermelho, #B22234);
    white-space: nowrap;
    min-width: 80px;
    background: rgba(178, 34, 52, 0.06);
    border-radius: 24px;
    text-align: center;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(178, 34, 52, 0.1);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

/* Clock icon via inline SVG */
.expo-programacao .expo-prog-time::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B22234' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    opacity: 0.6;
}

.expo-programacao .expo-prog-table tbody tr:hover .expo-prog-time {
    background: rgba(178, 34, 52, 0.1);
    box-shadow: 0 2px 8px rgba(178, 34, 52, 0.08);
}

/* ── Activity ── */
.expo-programacao .expo-prog-activity {
    color: var(--expo-preto, #1A1714);
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ── Location ── */
.expo-programacao .expo-prog-location {
    color: var(--expo-cinza, #999089);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expo-programacao .expo-prog-location::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999089' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

/* ── Highlight Row: elegant gold accent ── */
.expo-programacao .expo-prog-destaque {
    background: linear-gradient(135deg, rgba(197, 165, 114, 0.08), rgba(197, 165, 114, 0.03)) !important;
    border-left: 3px solid var(--expo-bege, #C5A572) !important;
    position: relative;
}

.expo-programacao .expo-prog-destaque::after {
    content: "★";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--expo-bege, #C5A572);
    font-size: 0.7rem;
    opacity: 0.5;
}

.expo-programacao .expo-prog-destaque .expo-prog-activity {
    font-weight: 600;
    color: var(--expo-preto, #1A1714);
}

.expo-programacao .expo-prog-destaque .expo-prog-time {
    background: rgba(197, 165, 114, 0.12);
    color: var(--expo-marrom, #7A4E2D);
    border-color: rgba(197, 165, 114, 0.25);
    font-weight: 700;
}

.expo-programacao .expo-prog-destaque .expo-prog-time::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A4E2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

/* ── Empty State ── */
.expo-programacao .expo-prog-empty {
    text-align: center;
    padding: 5rem 1.5rem;
    color: var(--expo-cinza, #999089);
    font-style: italic;
    font-size: 1rem;
}

/* ── Mobile: wrapper para scroll horizontal ── */
.expo-prog-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
 * RESPONSIVO
 * ============================================ */

/* ── Tablet ── */
@media (max-width: 768px) {
    .expo-programacao {
        border-radius: 16px;
    }

    .expo-programacao .expo-prog-header {
        padding: 2.5rem 1.5rem 2rem;
    }

    .expo-programacao .expo-prog-header h2 {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
    }

    .expo-programacao .expo-prog-day {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }

    .expo-programacao .expo-prog-table th,
    .expo-programacao .expo-prog-table td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .expo-programacao .expo-prog-time {
        min-width: 70px;
        font-size: 0.82rem;
        padding: 4px 12px;
    }

    .expo-programacao .expo-prog-location {
        width: auto;
    }
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .expo-programacao {
        border-radius: 12px;
    }

    .expo-programacao .expo-prog-header {
        padding: 1.8rem 1.2rem 1.5rem;
    }

    .expo-programacao .expo-prog-header h2 {
        font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    }

    .expo-programacao .expo-prog-table th,
    .expo-programacao .expo-prog-table td {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .expo-programacao .expo-prog-day {
        font-size: 1rem;
        padding: 10px 16px;
    }

    .expo-programacao .expo-prog-day::after {
        left: 16px;
        right: 16px;
    }

    .expo-programacao .expo-prog-destaque::after {
        display: none;
    }

    .expo-prog-table-scroll {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .expo-prog-table-scroll .expo-prog-table {
        min-width: 260px;
    }
}

/* ── Entrance animation ── */
@keyframes progSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expo-programacao .expo-prog-table tbody tr {
    animation: progSlideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.expo-programacao .expo-prog-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.expo-programacao .expo-prog-table tbody tr:nth-child(10) { animation-delay: 0.5s; }