@charset "UTF-8";
/*
Theme Name: ChatTeacher Shell
Theme URI: https://chatteacher.co.kr
Description: ChatTeacher V9 UI - Tailwind CDN (Light default + Dark toggle)
Author: Brian
Version: 1.0.9-tailwind
Text Domain: chatteacher-shell
*/
html .ct-logo-white {
  display: block;
}

html .ct-logo-black {
  display: none;
}

html.dark .ct-logo-white {
  display: none;
}

html.dark .ct-logo-black {
  display: block;
}

body > main > section {
  border: 0px;
  padding: 0px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Header */
#ct-header-child-select-wrap {
  display: flex !important;
}

/* 다크모드에서 select option 가독성 보장 */
.dark select option {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* 가상 차트 배경  */
.ct-trend-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* 캔버스를 배경 느낌으로 */
#ct-trend-chart {
  display: block;
  width: 100%;
  height: 140px;
  opacity: 0.55; /* 배경처럼 살짝 흐리게 */
  filter: saturate(0.9);
}

/* 위에 얹는 레이어 (텍스트/버튼) */
.ct-trend-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none; /* 기본은 클릭 방해 안 하게 */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px;
}

/* 데이터 없을 때 배경 격자 느낌(선택) */
.ct-trend-stage.is-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px) 0 0/100% 20px, linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px) 0 0/40px 100%;
  opacity: 0.35;
  pointer-events: none;
}

/* =====================================================
* 테마 
* ===================================================== */
/* 다크모드 대응(원하면 조절) */
html.dark .ct-trend-stage.is-empty::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0/100% 20px, linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0/40px 100%;
}

/* ===== 선택됨 (라이트) ===== */
.ct-lang[data-active=true] {
  border-color: none;
}

/* ===== 다크 모드 ===== */
html.dark .ct-lang {
  background: none;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

html.dark .ct-highlight {
  background: #1f6d3a;
}

html.dark .ct-lang[data-active=true] {
  background: none; /* brand-500 */
  color: #ffffff;
  border-color: none;
}

/* =====================================================
* 첨삭페이지
* ===================================================== */
/* 첨삭 AI 오늘의 루틴 질문 */
.ct-routine-question,
#ct-routine-question {
  white-space: normal !important;
}

/* Dashboard Plan Visibility  */
/* Basic: 전부 숨김 */
.ct-plan-basic .ct-detail-btn {
  display: none !important;
}

/* Correct-result-card */
.correct-card {
  margin-top: 0px !important;
}

.card-result-correct {
  max-height: 500px;
  overflow-y: auto;
}

/* Card */
.card-header-point {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(153, 153, 153, 0.6) !important;
}

.card-report-menu {
  margin-top: 5px !important;
}

.ct-highlight {
  background: #aaebc1;
  padding: 2px 4px;
  border-radius: 6px;
  font-weight: 800;
}

.ct-highlight::after {
  content: attr(data-tooltip);
  display: none;
  position: absolute;
  background: #1e293b;
  color: white;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  transform: translateY(120%);
  z-index: 50;
}

.ct-highlight:hover::after {
  display: block;
}

.result-area {
  display: flex;
  flex-direction: column;
}

.result-area .result-tag {
  border-radius: 10px;
  white-space: normal;
  word-break: auto-phrase;
}

.ct-trial-intro,
.ct-trial-quota {
  display: none;
}

/* ===== 한국 영어 토글 버튼 ===== */
.ct-lang {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
}
.ct-lang img {
  width: 20px !important;
  height: 20px !important;
}

.ct-card-collapsible,
.ct-card-detail {
  width: 100%;
}

.correct-card .ct-card-toggle-icon {
  transition: transform 0.2s ease;
}

.correct-card.is-open .ct-card-toggle-icon {
  transform: rotate(180deg);
}

/* =====================================================
* 대시보드
* ===================================================== */
/* 가격 페이지  */
.page-price .price-basic .price-card,
.page-price .price-standard .price-card,
.page-price .price-premium .price-card {
  min-height: 140px !important;
}

/* Dashboard Plan Visibility  */
/* Basic: 전부 숨김 */
.ct-plan-basic .ct-standard-plus,
.ct-plan-basic .ct-premium-only {
  display: none !important;
}

/* Standard: Premium 전용만 숨김 */
.ct-plan-standard .ct-premium-only {
  display: none !important;
}

.ct-upgrade-hint {
  border: 1px dashed #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  text-align: center;
  font-weight: 700;
}

.ct-plan-premium:not(.ct-trial) .ct-card.ct-upgrade-hint {
  display: none;
}

/* =====================================================
* 히스토리 디테일 차트
* ===================================================== */
/* 첨삭 이미지 */
.ct-detail-header {
  display: flex;
  gap: 12px;
}
.ct-detail-header #ct-detail-image-wrap {
  width: 200px;
}

/* 차트 부모 컨테이너 */
.ct-radar-stage {
  display: flex;
  justify-content: center;
  height: 300px;
}

.ct-trend-stage {
  display: flex;
  justify-content: center;
  height: 200px;
}

.ct-chart-box {
  position: relative;
  width: 100%;
  height: 260px; /* 기본 높이 */
}

/* 확대/축소 대응 */
@media (max-width: 768px) {
  .ct-chart-box {
    height: 220px;
  }
}
/* canvas는 무조건 부모 기준 100% */
.ct-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* =====================================================
* 모달 
* ===================================================== */
.modal {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* 배경 어둡게 */
  padding-top: 60px;
}
.modal .modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}
.modal .close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.modal .close-btn:hover,
.modal .close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* =====================================================
* 첨삭효과 이벤트
* ===================================================== */
/* 폭죽효과 */
.score-pop {
  animation: pop 0.25s ease-out;
}

@keyframes pop {
  from {
    transform: scale(0.95);
  }
  to {
    transform: scale(1);
  }
}
/* Legend overlay 90점 이상 오로라 효과 */
.ct-legend-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ct-legend-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 22%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.78) 100%);
  animation: ctSpotFadeIn 220ms ease-out forwards;
}

.ct-legend-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
  text-align: center;
  transform: translateY(6px) scale(0.98);
  opacity: 0;
  animation: ctLegendPop 420ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.ct-legend-crown {
  font-size: 44px;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
  animation: ctCrownFloat 1100ms ease-in-out infinite;
}

.ct-legend-title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
}

.ct-legend-sub {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.ct-legend-pill {
  margin-top: 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 800;
}

@keyframes ctLegendPop {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes ctSpotFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes ctCrownFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}
/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ct-legend-spotlight,
  .ct-legend-card,
  .ct-legend-crown {
    animation: none !important;
  }
}
/* assets/css/chatteacher-print.css */
/* 기본 화면에서는 숨김 */
.print-only {
  display: none !important;
}

/* 인쇄 / PDF에서만 표시 */
@media print {
  body * {
    visibility: hidden !important;
  }
  .print-only {
    display: block !important;
  }
  #printCardWrapper,
  #printCardWrapper * {
    visibility: visible !important;
  }
  #printCardWrapper {
    position: absolute;
    inset: 0;
    padding: 24px;
    background: white;
  }
  #printModal {
    position: static !important;
  }
  .print-ui {
    display: none !important;
  }
}
/* =====================================================
* 첨삭결과 공유
* ===================================================== */
/* 틀린 원문 */
.ct-fix-before {
  color: #dc2626; /* red-600 */
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  margin-right: 4px;
}

/* 수정된 문장 */
.ct-fix-after {
  background-color: #dcfce7; /* green-100 */
  color: #166534; /* green-800 */
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}/*# sourceMappingURL=style.css.map */