/* ==========================================================================
   TOUR GUIDE Master Suite, 2027 Schedule & English Interview Styling
   ========================================================================== */

/* Master Top Navigation */
.master-nav-wrapper {
  background: #0f172a;
  border-bottom: 2px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.master-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.master-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.master-brand-icon {
  font-size: 24px;
}

.master-brand-title {
  font-size: 18px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.5px;
}

.master-brand-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  margin-left: 2px;
}

.master-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.master-tabs::-webkit-scrollbar { display: none; }

.master-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.master-tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.master-tab-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.master-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-gemini-key {
  background: #1e293b;
  color: #f59e0b;
  border: 1px solid #d97706;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-gemini-key:hover {
  background: #292524;
  border-color: #f59e0b;
}

/* Master Views */
.tourguide-view {
  display: none;
  animation: fadeInView 0.25s ease-out;
}
.tourguide-view.active {
  display: block;
}

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

/* -------------------------------------------------------------
   2027 SCHEDULE VIEW
   ------------------------------------------------------------- */
.schedule-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.schedule-dday-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.schedule-dday-card:hover {
  transform: translateY(-2px);
}

.dday-badge-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.dday-val-text {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.timeline-roadmap-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.schedule-table th, .schedule-table td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  text-align: left;
}
.schedule-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

/* -------------------------------------------------------------
   2ND ROUND ENGLISH INTERVIEW ROOM
   ------------------------------------------------------------- */
.interview-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .interview-layout {
    grid-template-columns: 1fr;
  }
}

.interview-main-stage {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* Category Filter Bar */
.interview-cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.interview-cat-bar::-webkit-scrollbar { display: none; }

.interview-cat-tab {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.interview-cat-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

/* Question Header Card */
.interview-q-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(15,23,42,0.15);
  position: relative;
}

.q-category-tag {
  background: #3b82f6;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

.q-en-heading {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  color: #f8fafc;
  margin-bottom: 8px;
}

.q-ko-sub {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 12px;
}

.interview-keyword-chip {
  background: rgba(255,255,255,0.12);
  color: #93c5fd;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

/* Controls & Timer Bar */
.interview-control-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.timer-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-countdown {
  font-size: 26px;
  font-weight: 900;
  color: #059669;
  letter-spacing: -0.5px;
  min-width: 80px;
}

.timer-bar-track {
  width: 140px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  width: 100%;
  background: #10b981;
  transition: width 0.3s linear, background 0.3s;
}

/* Mic Action Button */
.btn-mic-record {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
  transition: all 0.2s;
}

.recording-pulse {
  animation: pulseMic 1.2s infinite ease-in-out;
}

@keyframes pulseMic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Transcript Area */
.answer-textarea-box {
  width: 100%;
  margin-bottom: 16px;
}

.interview-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  color: #0f172a;
  background: #ffffff;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.interview-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Evaluation Report Card */
.eval-report-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  margin-top: 20px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
}

.score-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.score-metric-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}

.correction-item {
  background: #fff;
  border-left: 3px solid #dc2626;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 0 8px 8px 0;
  background: #fef2f2;
}

.model-answer-box {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 14px;
  color: #1e3a8a;
  line-height: 1.6;
  font-size: 13.5px;
}

/* Follow-up Interactive Box */
.followup-interactive-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 16px;
  color: #78350f;
}

/* Charlie's History Card */
.charlie-history-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
