/* =========================================================
   코딩두잇 온라인 수업 (WEB-INF/chat/chatViewRoom.jsp)
   공통 헤더·하단·색상 변수는 resources/main/style.css를 그대로 사용
   제목 영역·좌우 여백은 멘토 찾기(resources/mentor/mentor.css)와 같은 값
   ========================================================= */
.online-page { --pl: 80px; --pr: 34px; --navy: #121a2f; background: linear-gradient(180deg, #f3f8fe 0, #fff 420px); padding-bottom: 80px; }
.online-page .wrap { padding-left: var(--pl); padding-right: var(--pr); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 제목 ---------- */
.o-top { padding: 28px 0 26px; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #4b5563; }
.crumb a { display: grid; place-items: center; color: #1f2937; }
.crumb a:hover { color: var(--blue); }
.o-top h1 { margin-top: 26px; font-size: 38px; font-weight: 800; letter-spacing: -1.2px; color: var(--navy); }
.o-top p { margin-top: 10px; font-size: 17px; color: #4b5563; }

/* ---------- 이용 안내 ---------- */
.o-guide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.o-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.o-steps li { display: flex; gap: 12px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(30, 70, 140, .06); }
.o-steps b { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-size: 15px; font-weight: 800; }
.o-steps strong { display: block; font-size: 16px; font-weight: 800; color: var(--navy); }
.o-steps p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: #4b5563; }
.o-steps em { font-style: normal; font-weight: 700; color: var(--blue); }
.o-tip { padding: 18px 20px; border-radius: 18px; background: linear-gradient(120deg, #eaf2ff, #f5f9ff); }
.o-tip strong { font-size: 16px; font-weight: 800; color: var(--navy); }
.o-tip small { font-size: 13px; font-weight: 600; color: var(--muted); }
.o-tip ol { margin-top: 8px; padding-left: 18px; font-size: 14px; line-height: 1.6; color: #374151; }
.o-tip ol b { font-weight: 700; color: var(--blue-ink); }
.o-note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- 강의실 목록 ---------- */
.o-rooms { margin-top: 34px; }
.o-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.o-bar h2 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.o-bar h2 span { margin-left: 4px; font-size: 16px; font-weight: 700; color: var(--blue); }
.o-bar p { font-size: 14.5px; color: var(--muted); }
.o-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.o-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(30, 70, 140, .06); transition: .2s; }
.o-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30, 70, 140, .12); }
.o-card-head { display: flex; align-items: center; gap: 12px; }
.o-ico { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-tint); color: var(--blue); }
.o-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -.4px; color: var(--navy); }
.o-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 700; color: #0f8a4b; }
.o-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-wait .o-badge { color: #c27803; }
.is-full .o-badge { color: #d92d20; }
.o-spec { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.o-spec li { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: #f3f6fa; font-size: 12.5px; font-weight: 600; color: #374151; }
.o-spec b { font-weight: 500; color: #8a94a6; }
.o-time { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.o-btn { margin-top: 14px; height: 44px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: .15s; }
.o-btn:hover { background: var(--blue-d); }
.o-btn:focus-visible { outline: 3px solid rgba(17, 102, 240, .35); outline-offset: 2px; }
.is-wait .o-btn { background: #12a150; }
.is-wait .o-btn:hover { background: #0e8a44; }
.o-btn:disabled, .o-btn:disabled:hover { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.o-card.is-full:hover { transform: none; }
.o-empty { margin-top: 16px; padding: 48px 20px; border: 1px dashed #cfdcf0; border-radius: 18px; background: #fbfdff; text-align: center; }
.o-empty h3 { font-size: 19px; font-weight: 800; color: var(--navy); }
.o-empty p { margin-top: 8px; font-size: 15px; color: #4b5563; }

/* ---------- 하단 안내·링크 버튼 ---------- */
.o-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(120deg, #eaf2ff, #f5f9ff); }
.o-cta strong { font-size: 17px; font-weight: 800; color: var(--navy); }
.o-cta p { margin-top: 4px; font-size: 14.5px; color: #4b5563; }
.o-cta-act { display: flex; gap: 8px; flex-shrink: 0; }
.o-link { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: .15s; }
.o-link:hover { background: var(--blue-d); }
.o-link.ghost { background: #fff; border: 1px solid #cfd8e6; color: #374151; }
.o-link.ghost:hover { border-color: var(--blue); color: var(--blue); }
.o-link[hidden] { display: none; }

/* 안내 창 */
.o-dialog { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(17, 24, 39, .45); }
.o-dialog[hidden] { display: none; }
.o-dialog-box { width: min(100%, 380px); padding: 26px 22px 20px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(17, 24, 39, .25); text-align: center; }
.o-dialog-box p { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.o-dialog-act { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { .o-card:hover { transform: none; } }

/* ---------- 반응형 ---------- */
@media (max-width: 1240px) { .online-page { --pl: 32px; --pr: 24px; } .o-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .online-page { --pl: 20px; --pr: 20px; } .o-guide { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .online-page { --pl: 16px; --pr: 16px; } .o-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .online-page { padding-bottom: 48px; }
  .o-top { padding: 18px 0 20px; }
  .crumb { font-size: 13.5px; }
  .o-top h1 { margin-top: 16px; font-size: 26px; }
  .o-top p { font-size: 14.5px; }
  .o-steps { grid-template-columns: 1fr; gap: 8px; }
  .o-steps li { padding: 14px; }
  .o-rooms { margin-top: 26px; }
  .o-bar h2 { font-size: 19px; }
  .o-cta { flex-direction: column; align-items: stretch; padding: 18px; }
  .o-cta-act .o-link { flex: 1; }
}
@media (max-width: 560px) {
  .o-grid { grid-template-columns: 1fr; gap: 12px; }
}
