/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #4f46e5;
    --accent-light: #ede9fe;
    --bg: #f8f8fb;
    --bg-card: #ffffff;
    --text: #18181b;
    --text-2: #52525b;
    --text-3: #a1a1aa;
    --border: #e4e4e7;
    --radius: 10px;
    --trans: 0.2s ease;
}

body {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* ===== Page Header ===== */
.page-header {
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.page-header-inner {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.page-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 3px;
}

/* ===== 3-Column Schedule Grid ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

/* ===== Day Column ===== */
.day-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.column-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: #f4f4f6;
}

.col-day-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent);
    margin-bottom: 2px;
}

.col-day-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.col-day-date {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 1px;
}

/* ===== Timeline ===== */
.timeline {
    padding: 0;
}

/* ===== Timeline Item (row style) ===== */
.timeline-item {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--trans);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item:hover {
    background: #f9f9fb;
}

.timeline-time {
    flex-shrink: 0;
    width: 46px;
    padding: 10px 0 10px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    padding-top: 12px;
}

.timeline-body {
    flex: 1;
    padding: 10px 12px;
    border-left: 1px solid var(--border);
    min-width: 0;
}

.timeline-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-desc {
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-location {
    font-size: 11px;
    color: var(--text-3);
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transform: translateY(16px);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    background: #f4f4f6;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid var(--border);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: background var(--trans);
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    padding-right: 32px;
}

.modal-body {
    padding: 16px;
}

.modal-detail {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 14px;
}

.modal-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-2);
    background: #f4f4f6;
    padding: 8px 12px;
    border-radius: 8px;
}

@media (max-width: 800px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}