/* ==================== Schedule Page Specific Styles ==================== */

/* ==================== Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', 'Prompt', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7eb 100%);
    color: var(--text-dark);
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ==================== Schedule Section ==================== */
.schedule-section {
    padding: 60px 0;
    background: transparent;
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== Date Section ==================== */
.date-section {
    margin-bottom: 50px;
    animation: slideIn 0.6s ease-out;
}

.date-title {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 25px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 212, 161, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.date-title:hover {
    transform: translateX(5px);
    box-shadow: 0 7px 20px rgba(0, 212, 161, 0.4);
}

/* ==================== Schedule Table ==================== */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-white);
}

.schedule-table thead {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}

.schedule-table th {
    padding: 20px 25px;
    text-align: left;
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.schedule-table tbody tr {
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.schedule-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.schedule-table tbody tr:hover {
    background: rgba(0, 212, 161, 0.08);
    transform: scale(1.01);
    box-shadow: 0 3px 15px rgba(0, 212, 161, 0.2);
}

.schedule-table td {
    padding: 22px 25px;
    border-bottom: 1px solid #e0e7eb;
    transition: all 0.3s ease;
    vertical-align: top;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== Table Cells ==================== */
.time-cell {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.15em;
    white-space: nowrap;
    width: 220px;
    position: relative;
    padding-left: 40px;
}

.time-cell::before {
    content: '🕐';
    position: absolute;
    left: 25px;
    font-size: 1.3em;
}

.activity-cell {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05em;
}

.activity-cell strong {
    color: var(--primary-dark);
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

.activity-cell ul {
    margin: 12px 0 12px 25px;
    list-style-type: disc;
}

.activity-cell li {
    margin: 10px 0;
    position: relative;
    padding-left: 8px;
}

.activity-cell li::marker {
    color: var(--accent-color);
    font-size: 1.3em;
}

/* ==================== Special Elements ==================== */
.speaker {
    color: var(--primary-light);
    font-weight: 500;
    margin-top: 10px;
    display: block;
    padding: 10px 0 10px 18px;
    border-left: 3px solid var(--accent-color);
    font-style: italic;
    line-height: 1.6;
    background: rgba(0, 212, 161, 0.03);
    border-radius: 4px;
}

.break-row {
    background: linear-gradient(90deg, rgba(0, 212, 161, 0.12) 0%, rgba(0, 212, 161, 0.05) 100%) !important;
    font-weight: 600;
}

.break-row:hover {
    background: linear-gradient(90deg, rgba(0, 212, 161, 0.18) 0%, rgba(0, 212, 161, 0.08) 100%) !important;
}

.break-row td {
    color: var(--accent-hover);
}

.badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0, 212, 161, 0.3);
    transition: all 0.3s ease;
}

.badge:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 161, 0.4);
}

/* ==================== Download Button ==================== */
.schedule-download {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e0e7eb;
}

.schedule-download .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    padding: 15px 35px;
    box-shadow: 0 5px 20px rgba(0, 212, 161, 0.3);
}

.schedule-download .btn i {
    font-size: 1.2em;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .schedule-section {
        padding: 40px 0;
    }

    .date-section {
        margin-bottom: 35px;
    }

    .date-title {
        font-size: 1.3em;
        padding: 12px 20px;
        display: block;
        text-align: center;
    }

    .schedule-table {
        font-size: 0.95em;
        border-radius: 8px;
    }

    /* Mobile Table Layout */
    .schedule-table thead {
        display: none;
    }

    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tr {
        margin-bottom: 20px;
        border: 1px solid #e0e7eb;
        border-radius: 10px;
        padding: 20px;
        background: var(--bg-white);
    }

    .schedule-table td {
        padding: 12px 0;
        border: none;
        text-align: left;
    }

    .time-cell {
        width: 100%;
        font-size: 1.1em;
        margin-bottom: 15px;
        padding: 12px 15px;
        background: rgba(0, 212, 161, 0.08);
        border-radius: 8px;
        border-left: 4px solid var(--accent-color);
        padding-left: 40px;
    }

    .time-cell::before {
        left: 15px;
    }

    .activity-cell {
        font-size: 1em;
        padding-top: 10px;
    }

    .badge {
        display: block;
        margin: 12px 0;
        width: fit-content;
    }

    .schedule-download {
        margin-top: 35px;
        padding-top: 30px;
    }

    .schedule-download .btn {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .date-title {
        font-size: 1.2em;
        padding: 10px 15px;
    }

    .schedule-table {
        font-size: 0.9em;
    }

    .time-cell {
        font-size: 1em;
        padding: 10px 12px;
        padding-left: 35px;
    }

    .time-cell::before {
        font-size: 1.2em;
        left: 12px;
    }

    .activity-cell strong {
        font-size: 1.05em;
    }

    .speaker {
        font-size: 0.95em;
        padding: 8px 0 8px 15px;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .schedule-table tbody tr:hover {
        transform: none;
        box-shadow: none;
        background: var(--bg-white) !important;
    }

    .date-title:hover {
        transform: none;
    }

    .schedule-download {
        display: none;
    }

    header, footer {
        display: none;
    }
}