/* ============================================
   WFT26 ConfEx - 동적 컨텐츠 스타일
   (컨퍼런스 프로그램, 팝업 모달, 공지사항)
   ============================================ */

/* ============================================
   1. 컨퍼런스 프로그램 (10트랙)
   ============================================ */

.track-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.track-legend-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(125,211,216,0.15);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: start;
}
.track-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-top: 6px;
  grid-row: 1 / 3;
}
.track-legend-item strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: block;
}
.track-room {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.track-legend-item p {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  grid-column: 2;
  margin: 0;
}

.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  scrollbar-width: thin;
}
.day-tab {
  flex: 1;
  min-width: 130px;
  padding: 16px 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.day-tab:hover { color: rgba(255,255,255,0.85); }
.day-tab.active {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}
.day-tab-num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.day-tab-date {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.day-contents { position: relative; }
.day-content {
  display: none;
  animation: fadeIn 0.4s ease;
}
.day-content.active { display: block; }
.day-content-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: -0.02em;
}

.slot {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.slot:first-child { border-top: none; padding-top: 0; }
.slot-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan-soft);
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.slot-sessions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.session-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid #4D96FF;
  border-radius: 8px;
  padding: 14px 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100px;
  transition: all 0.2s;
}
.session-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.session-track-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.session-room {
  display: inline-block;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  background: rgba(125,211,216,0.08);
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.session-host {
  font-size: 11px;
  color: var(--cyan-soft);
  margin-bottom: 4px;
  font-weight: 600;
}
.session-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}
.session-category {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.session-speakers {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.speaker {
  margin-bottom: 4px;
  font-size: 11px;
}
.speaker strong {
  display: block;
  color: #fff;
  font-weight: 600;
}
.speaker span {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
}

/* 개막식·시상식 특별 슬롯 */
.slot-special {
  background: linear-gradient(135deg, rgba(212, 168, 42, 0.08), rgba(157, 78, 221, 0.04));
  border: 1px solid rgba(212, 168, 42, 0.2);
  border-radius: 12px;
  padding: 24px 28px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
}
.slot-special-body h4 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.slot-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.slot-venue {
  font-size: 12px;
  color: var(--cyan-soft);
  margin-top: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 모바일 반응형 */
@media (max-width: 1024px) {
  .slot-sessions { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 768px) {
  .slot, .slot-special {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .slot-time { font-size: 14px; }
  .slot-sessions { grid-template-columns: 1fr 1fr; }
  .day-tab { min-width: 110px; }
  .day-tab-date { font-size: 13px; }
}
@media (max-width: 480px) {
  .slot-sessions { grid-template-columns: 1fr; }
}

/* ============================================
   2. 팝업 모달
   ============================================ */

/* 공통 */
.popup {
  opacity: 0;
  transition: all 0.3s ease;
}
.popup.popup-show { opacity: 1; }

/* 중앙 모달 */
.popup-center {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-center .popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 13, 40, 0.78);
  backdrop-filter: blur(8px);
}
.popup-center .popup-inner {
  position: relative;
  background: linear-gradient(135deg, #122550, #1d3a73);
  border: 1px solid rgba(125,211,216,0.2);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 36px 32px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.popup-show.popup-center .popup-inner { transform: scale(1); }

/* 우하단 코너 */
.popup-corner {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9998;
  max-width: 340px;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.popup-corner.popup-show { transform: translateY(0); }
.popup-corner .popup-inner {
  position: relative;
  background: linear-gradient(135deg, #1d3a73, #2a4a8c);
  border: 1px solid rgba(125,211,216,0.25);
  border-radius: 16px;
  padding: 20px 22px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* 상단 배너 */
.popup-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9997;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.popup-banner.popup-show { transform: translateY(0); }
.popup-banner .popup-inner {
  background: linear-gradient(90deg, #FF4E8E, #FF8C42, #FFD93D);
  padding: 14px 60px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}
.popup-banner .popup-content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.popup-banner .popup-title { display: inline; font-size: 14px; color: #fff; margin: 0; font-weight: 700; }
.popup-banner .popup-body { display: inline; font-size: 13px; color: rgba(255,255,255,0.9); margin: 0; }

/* 컨텐츠 */
.popup-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.popup-corner .popup-title { font-size: 16px; }
.popup-subtitle {
  font-size: 13px;
  color: var(--cyan-soft);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.popup-body {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0 0 20px;
}
.popup-corner .popup-body { font-size: 13px; margin-bottom: 14px; }
.popup-image { margin: -36px -32px 20px; border-radius: 20px 20px 0 0; overflow: hidden; }
.popup-image img { width: 100%; height: auto; display: block; }

.popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

.popup-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}
.popup-close:hover { color: #fff; }

.popup-dismiss {
  display: block;
  margin: 14px 0 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}
.popup-dismiss:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 600px) {
  .popup-corner {
    left: 16px; right: 16px;
    max-width: none;
  }
  .popup-banner .popup-inner { padding-left: 16px; padding-right: 48px; }
}

/* ============================================
   3. 동적 공지사항 리스트
   ============================================ */
.notice-pinned { background: rgba(255, 217, 61, 0.04); border-left: 3px solid #FFD93D; }
.notice-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.notice-toggle:hover {
  background: rgba(125,211,216,0.1);
  border-color: var(--cyan-soft);
  color: var(--cyan-soft);
}
.notice-full {
  flex-basis: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.notice-full p { margin: 0; }

.error-msg {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 40px;
}

/* 세션 운영 규칙 박스 */
.session-rule-box {
  margin-top: 40px;
  padding: 24px 28px;
  background: rgba(125, 211, 216, 0.05);
  border: 1px solid rgba(125, 211, 216, 0.2);
  border-radius: 12px;
}
.session-rule-box h4 {
  font-size: 14px;
  color: var(--cyan-soft);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.session-rule-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.session-rule-box li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
  line-height: 1.6;
}
.session-rule-box li strong { color: #fff; }

.conference-program { margin-top: 20px; }
.loading-msg { text-align: center; padding: 40px; color: rgba(255,255,255,0.4); }
