/* 컨퍼런스 세션 목록 (사용자 화면) */

.conf_session_wrap { font-family: inherit; color: #111827; }

/* 첫 조회 전 : 일자 탭 / 칩이 만들어지기 전까지 숨김 */
.conf_filter.is_loading { visibility: hidden; }

/* ===== 일자 탭 ===== */
.conf_date_tabs { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.conf_date_icon { flex: 0 0 22px; width: 22px; height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat center / contain; }
.conf_date_tab_list { display: flex; flex-wrap: wrap; gap: 10px; }
.conf_date_tab { min-width: 96px; height: 38px; padding: 0 20px; border: 1px solid #d1d5db; border-radius: 19px; background: #fff;
    font-size: 14px; font-weight: 600; color: #1f2937; cursor: pointer; transition: background .15s, color .15s; }
.conf_date_tab:hover { border-color: #111827; }
.conf_date_tab.active { background: #0f172a; border-color: #0f172a; color: #fff; }

/* ===== 컨퍼런스 칩 (필터) / 배지 (카드) : 동일한 형태 ===== */
.conf_chip_list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.conf_chip,
.conf_badge { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 22px; border: 1px solid transparent; border-radius: 17px;
    background: #f3f4f6; font-size: 14px; font-weight: 600; color: #1f2937; white-space: nowrap; }
/* 필터 칩 : 선택 전에는 모두 흰 배경 (색상은 카드 배지에만 적용) */
.conf_chip { background: #fff; border-color: #d1d5db; cursor: pointer; transition: background .15s, color .15s; }
.conf_chip:hover { border-color: #0f172a; }
/* 카드 배지는 칩보다 낮게 */
.conf_badge { height: 26px; padding: 0 14px; border-radius: 13px; font-size: 12px; }

/* 칩 / 배지 색상 : 컨퍼런스(카테고리)는 순서대로, 구분은 코드별 (기본 배경보다 우선 적용) */
.conf_color_category_0 { background: #fde2cf; color: #9a3412; }
.conf_color_category_1 { background: #fef3c7; color: #92400e; }
.conf_color_category_2 { background: #fce7f3; color: #9d174d; }
.conf_color_category_3 { background: #e0f2fe; color: #075985; }
.conf_color_category_4 { background: #ecfccb; color: #3f6212; }
.conf_color_type_intl { background: #dbeafe; color: #1e40af; }
.conf_color_type_collaboration { background: #d1fae5; color: #065f46; }
.conf_color_type_tech { background: #ede9fe; color: #5b21b6; }
.conf_color_type_youth { background: #f1f5f9; color: #64748b; }

/* 선택된 칩 : 일자 탭 / 전체와 동일하게 짙은 배경 + 흰 글자 (색상 클래스보다 우선) */
.conf_chip.active { background: #0f172a; border-color: #0f172a; color: #fff; }

/* ===== 세션 카드 ===== */
.conf_session_list { display: flex; flex-direction: column; gap: 14px; }
/* 첫 조회 전 : 템플릿 노출 방지 */
.conf_session_list.is_loading { visibility: hidden; min-height: 140px; }
.conf_session_card { position: relative; display: flex; gap: 24px; padding: 22px 24px; border: 1px solid #e5e7eb; border-radius: 10px;
    background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.conf_session_card:hover,
.conf_session_card:focus-visible { border-color: #543492; box-shadow: 0 4px 14px rgba(84, 52, 146, .12); outline: none; }

.conf_session_side { flex: 0 0 180px; padding-right: 24px; border-right: 1px solid #e5e7eb; }
.conf_session_time { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 10px; white-space: nowrap; }
.conf_session_badges { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.conf_session_info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.conf_session_title { font-size: 22px; font-weight: 700; line-height: 1.4; color: #111827; }
.conf_session_subtitle { margin-top: 4px; font-size: 17px; font-weight: 500; color: #1f2937; }
.conf_session_desc { max-width: 800px; margin-top: 10px; font-size: 13px; line-height: 1.7; color: #4b5563; white-space: pre-line;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.conf_session_meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: auto; padding-top: 14px; font-size: 13px; color: #374151; }
.conf_meta_item { position: relative; padding-left: 22px; }
.conf_meta_item::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
    background-repeat: no-repeat; background-position: center; background-size: contain; }
.conf_meta_item.speaker::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.conf_meta_item.place::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.8'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.conf_meta_item.speaker:not(:empty) + .conf_meta_item.place { padding-left: 42px; }
.conf_meta_item.speaker:not(:empty) + .conf_meta_item.place::before { left: 20px; }
.conf_meta_item.speaker:not(:empty) + .conf_meta_item.place::after { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; transform: translateY(-50%); background: #d1d5db; }

/* 템플릿(data-wv-template) 에서 값이 없는 항목은 숨김 */
.conf_session_subtitle:empty,
.conf_session_desc:empty,
.conf_badge:empty,
.conf_meta_item:empty { display: none; }

/* ===== 상세 팝업 ===== */
.conf_popup_overlay { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: center; align-items: center; background: rgba(15, 23, 42, .55); }
.conf_popup_content { position: relative; width: 92%; max-width: 860px; max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; }
.conf_popup_close { position: absolute; top: 14px; right: 18px; z-index: 1; width: 32px; height: 32px; border: 0; background: none; font-size: 28px; line-height: 1; color: #374151; cursor: pointer; }
.conf_popup_body { padding: 36px 40px; overflow-y: auto; }

.conf_popup_header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-right: 32px; }

/* 상단 좌측 : {달력} 날짜(굵게) 시간 {위치} 장소 */
.conf_popup_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 15px; color: #000; }
.conf_popup_meta_item { position: relative; display: inline-flex; align-items: center; gap: 8px; padding-left: 24px; }
.conf_popup_meta_item::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
    background-repeat: no-repeat; background-position: center; background-size: contain; }
.conf_popup_meta_item.date { color: #543492; }
.conf_popup_meta_item.date::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23543492' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.conf_popup_meta_item.place::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.conf_popup_date { font-weight: 700; }
.conf_popup_time { font-weight: 400; }
.conf_popup_host { margin-top: 6px; font-size: 14px; color: #000; }
.conf_popup_header .conf_session_badges { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }

.conf_popup_title_area { padding: 20px 0 14px; }
.conf_popup_title { font-size: 22px; font-weight: 700; line-height: 1.4; color: #111827; }
.conf_popup_subtitle { margin-top: 4px; font-size: 16px; color: #000; }
.conf_popup_desc { font-size: 14px; line-height: 1.8; color: #374151; white-space: pre-line; }

/* 프로그램 표 / 연사 표 */
.conf_popup_table_section { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.conf_popup_section_title { margin-bottom: 14px; font-size: 18px; font-weight: 700; color: #000; }
.conf_popup_table_wrap { border: 1px solid #e5e7eb; border-radius: 10px; overflow-x: auto; }
.conf_popup_table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; color: #111827; }
.conf_popup_table th { padding: 12px 16px; background: rgba(84, 52, 146, 0.05); border-bottom: 1px solid #e5e7eb; font-weight: 600; text-align: left; white-space: nowrap; }
.conf_popup_table td { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; text-align: left; }
.conf_popup_table tbody tr:last-child td { border-bottom: 0; }
.conf_popup_table th + th,
.conf_popup_table td + td { border-left: 1px solid #e5e7eb; }

/* 프로그램 표 : 시간 / 세션명 / 연사 */
.conf_popup_program_table col.time { width: 130px; }
.conf_popup_program_table col.speaker { width: 42%; }
.conf_popup_program_table td.time { white-space: nowrap; }
.conf_popup_program_table td.program { font-weight: 600; }
.conf_popup_program_table td.speaker { padding-top: 10px; padding-bottom: 10px; }

/* 연사 : 1행(역할 배지 + 성명) / 2행(직함 · 소속, 성명 위치에 맞춰 들여쓰기) */
.conf_popup_speaker_line { padding: 6px 0; }
.conf_popup_speaker_top { display: flex; align-items: center; gap: 10px; }
.conf_popup_speaker_top .role { flex: 0 0 66px; padding: 3px 0; border-radius: 11px; background: #ede9fe; color: #6b21a8;
    font-size: 12px; font-weight: 600; text-align: center; }
.conf_popup_speaker_top .role:empty { background: none; }
.conf_popup_speaker_top .name { font-weight: 700; color: #111827; line-height: 1.5; }
.conf_popup_speaker_line .detail { margin-top: 2px; margin-left: 76px; color: #6b7280; line-height: 1.5; }

/* ===== 반응형 ===== */
@media (max-width: 767px) {
    .conf_date_tabs { align-items: flex-start; }
    .conf_date_tab { min-width: 0; padding: 0 14px; }
    .conf_session_card { flex-direction: column; gap: 12px; padding: 18px; }
    .conf_session_side { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #e5e7eb; }
    .conf_session_time { margin-bottom: 0; }
    .conf_session_badges { flex-direction: row; flex-wrap: wrap; }
    .conf_popup_body { padding: 28px 20px; }
}
