/* css/presenter.css - 발표자 전용 화면 (?view=presenter) */
body.presenter-mode {
  background-color: #F0F4F8;
  overflow: auto;
}

body.presenter-mode #viewport {
  display: none !important;
}

#presenter-window {
  display: none;
}

body.presenter-mode #presenter-window {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  padding: 16px 24px;
  gap: 16px;
  background-color: #F0F4F8;
}

/* 발표자 상단 컨트롤 바 */
.presenter-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 12px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #D9E2EC;
}

.presenter-timer-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.presenter-sw-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sw-label {
  font-size: 16px;
  font-weight: 700;
  color: #627D98;
  white-space: nowrap;
}

.sw-time {
  font-size: 34px;
  font-weight: 800;
  color: #102A43;
  font-variant-numeric: tabular-nums;
  min-width: 95px;
}

.sw-btn {
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #BCCCDC;
  background: #FFFFFF;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.sw-btn:hover {
  background: #F0F4F8;
}

.presenter-target-time-badge {
  font-size: 16px;
  font-weight: 600;
  color: #334E68;
  background: #E8F3EE;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #C1E2D4;
  white-space: nowrap;
}

.presenter-next-action-banner {
  font-size: 16px;
  font-weight: 700;
  color: #D96B27;
  background: #FFF3EB;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #FCD9C2;
  white-space: nowrap;
}

.presenter-nav-btns {
  display: flex;
  gap: 10px;
}

.p-nav-btn {
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: #1F7A5C;
  color: #FFFFFF;
  cursor: pointer;
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
  transition: background 0.15s;
}

.p-nav-btn:hover {
  background: #155540;
}

/* 2단 메인 레이아웃 */
.presenter-main-split {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

/* 좌측 열: 미니 미리보기 & 슬라이드 선택 */
.presenter-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.presenter-preview-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #D9E2EC;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-header {
  font-size: 15px;
  font-weight: 700;
  color: #627D98;
}

.preview-screen-box {
  width: 446px;
  height: 251px; /* 16:9 ratio */
  background: #1A1F24;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.presenter-quick-nav-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #D9E2EC;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.nav-header {
  font-size: 15px;
  font-weight: 700;
  color: #627D98;
}

.jump-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
}

.presenter-jump-btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.presenter-jump-btn:hover {
  background: #E8F3EE;
  border-color: #1F7A5C;
}

.presenter-jump-btn.is-active {
  background: #1F7A5C;
  color: #FFFFFF;
  border-color: #1F7A5C;
}

/* 우측 열: 대사 & 학생 반응 & 유의점 */
.presenter-right-col {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #D9E2EC;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.script-header-info h2 {
  font-size: 26px;
  font-weight: 800;
  color: #102A43;
  margin-bottom: 6px;
}

.script-sub-meta {
  display: flex;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #627D98;
}

.script-section-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-label.t-tag {
  color: #1F7A5C;
}

.section-label.s-tag {
  color: #F28C5B;
}

.section-label.tip-tag {
  color: #B78103;
}

.script-text {
  font-size: 20px;
  line-height: 1.6;
  color: #243B53;
  word-break: keep-all;
}

.tips-box {
  background: #FFFBEA;
  border: 1px solid #F6E05E;
}
