/* Worker Rights Workshop — Dark Projection Theme */

:root {
  --bg:           #0f172a;
  --header-bg:    #1e3a5f;
  --card-bg:      #1e3a5f;
  --card-border:  #3b82f6;
  --text-white:   #ffffff;
  --text-en:      #94a3b8;
  --text-muted:   #64748b;
  --accent:       #3b82f6;
  --accent-dark:  #2563eb;
  --pill-bg:      #1d4ed8;
  --green:        #22c55e;
  --green-bg:     rgba(34,197,94,0.12);
  --green-border: rgba(34,197,94,0.5);
  --red:          #ef4444;
  --red-bg:       rgba(239,68,68,0.12);
  --red-border:   rgba(239,68,68,0.5);
  --font:         system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --focus-ring:   #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

.noscript-msg { padding: 2rem; font-size: 1.2rem; text-align: center; }

.skip-to-main {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-main:focus-visible { top: 0.5rem; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────── */
.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(59,130,246,0.3);
  flex-shrink: 0;
  min-height: 46px;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slide-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Slides Area ─────────────────────────────────────── */
.slides-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 2.5rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.slide.active { display: flex; }

.slide-inner {
  max-width: 900px;
  width: 100%;
}

.slide-centered .slide-inner { text-align: center; }

/* ── Footer ──────────────────────────────────────────── */
.slide-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 1.5rem;
  background: var(--header-bg);
  border-top: 1px solid rgba(59,130,246,0.2);
  flex-shrink: 0;
}

.progress-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
.dot.active { background: var(--accent); transform: scale(1.5); }
.dot.done   { background: var(--accent); opacity: 0.4; }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.key-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-btn {
  background: none;
  border: 1px solid rgba(59,130,246,0.35);
  color: var(--text-en);
  font-size: 1.4rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.nav-btn:hover:not(:disabled) {
  background: rgba(59,130,246,0.15);
  color: var(--text-white);
  border-color: var(--accent);
}
.nav-btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ── Topic Badge / Pill ──────────────────────────────── */
.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 14px;
  background: var(--pill-bg);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

/* ── Chinese Headline + English Subtitle ─────────────── */
.zh-headline {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.en-subtitle {
  font-size: clamp(13px, 1.5vw, 18px);
  color: var(--text-en);
  font-weight: 400;
  margin-bottom: 1.4rem;
  line-height: 1.4;
}

/* ── Info Cards Grid ─────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.card-number {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.card-zh {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.card-en {
  font-size: 0.85rem;
  color: var(--text-en);
  line-height: 1.35;
}

/* ── Note Block ──────────────────────────────────────── */
.note-block {
  margin-top: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(59,130,246,0.1);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: clamp(13px, 1.5vw, 17px);
  color: var(--text-en);
  line-height: 1.5;
}
.note-block strong { color: var(--text-white); }

/* ── Icon List (rights slides) ───────────────────────── */
.icon-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: clamp(14px, 1.8vw, 20px);
  color: var(--text-white);
  line-height: 1.45;
}
.icon-list li:last-child { border-bottom: none; }
.icon-list .li-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1em;
  font-style: normal;
}
.icon-list .li-sub {
  font-size: 0.82em;
  color: var(--text-en);
  display: block;
  margin-top: 0.15em;
}

/* ── Scenario / Quiz: Question block ─────────────────── */
.scenario-text {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin: 0.85rem 0;
}
.scenario-text .zh-text {
  font-size: clamp(17px, 2.3vw, 26px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.45rem;
  line-height: 1.45;
}
.scenario-text .en-text {
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--text-en);
  font-style: italic;
  line-height: 1.4;
}

.discuss-prompt {
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--accent);
  font-weight: 600;
  margin: 0.65rem 0 1.1rem;
}

/* ── Reveal Button ───────────────────────────────────── */
.reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, transform 0.1s;
}
.reveal-btn:hover { background: var(--accent-dark); }
.reveal-btn:active { transform: scale(0.97); }
.reveal-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* ── Answer Block (two-phase reveal) ─────────────────── */
.answer-block {
  display: none;
  margin-top: 1rem;
  background: rgba(59,130,246,0.08);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.slide[data-phase="answer"] .answer-block { display: block; }
.slide[data-phase="answer"] .reveal-btn   { display: none; }

.answer-heading {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.answer-items {
  list-style: none;
  padding: 0;
}
.answer-items li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  font-size: clamp(13px, 1.6vw, 18px);
  color: var(--text-white);
  line-height: 1.45;
  list-style: none;
}
.answer-items li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  position: absolute;
  left: 0;
  top: 0.05em;
}
.answer-items .law-cite {
  font-size: 0.84em;
  color: var(--text-en);
  display: block;
  margin-top: 0.1em;
}

/* ── True / False Quiz ───────────────────────────────── */
.quiz-statement {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.75rem 1.75rem;
  margin: 0.85rem 0;
  text-align: center;
}
.quiz-statement .zh-text {
  font-size: clamp(18px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.quiz-statement .en-text {
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--text-en);
  font-style: italic;
}

.vote-prompt {
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--text-muted);
  margin: 0.65rem 0 1.1rem;
  text-align: center;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.5rem;
  border-radius: 999px;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.verdict-true  { background: var(--green-bg);  color: var(--green); border: 2px solid var(--green-border); }
.verdict-false { background: var(--red-bg);    color: var(--red);   border: 2px solid var(--red-border); }

.answer-explanation {
  font-size: clamp(13px, 1.6vw, 18px);
  color: var(--text-white);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}
.answer-explanation .law-cite {
  color: var(--text-en);
  font-size: 0.85em;
}

/* ── Resources Slide ─────────────────────────────────── */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.resource-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  text-align: center;
}

.resource-org {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-en);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.resource-phone {
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.resource-web {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.resource-web:hover { text-decoration: underline; }
.resource-web:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }

.resource-desc {
  font-size: 0.8rem;
  color: var(--text-en);
  margin-top: 0.2rem;
}

.qr-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

#qr-container {
  flex-shrink: 0;
}
#qr-container canvas,
#qr-container img {
  border-radius: 6px;
  display: block;
}

.qr-info .qr-zh {
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}
.qr-info .qr-url {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: monospace;
  word-break: break-all;
}

.closing-msg {
  margin-top: 1rem;
  text-align: center;
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 800;
  color: var(--text-white);
}
.closing-msg .en-part {
  font-size: 0.78em;
  color: var(--text-en);
  display: block;
  font-weight: 400;
  margin-top: 0.15rem;
}

/* ── Title Slide ─────────────────────────────────────── */
.title-slide { cursor: pointer; }

.csc-name {
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.main-title {
  font-size: clamp(42px, 7.5vw, 84px);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.main-subtitle {
  font-size: clamp(18px, 2.8vw, 34px);
  color: var(--text-en);
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.date-line {
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.start-hint {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--accent);
  font-weight: 600;
  border: 2px solid rgba(59,130,246,0.4);
  border-radius: 999px;
  padding: 0.45rem 1.5rem;
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .slide          { padding: 1.25rem 1.25rem; }
  .cards-grid     { grid-template-columns: 1fr 1fr; }
  .resource-cards { grid-template-columns: 1fr; }
  .qr-row         { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .slide          { padding: 1rem; }
  .cards-grid     { grid-template-columns: 1fr; }
  .resource-cards { grid-template-columns: 1fr; }
}
