/* faq-pep-prep/theme.css — Unified design system matching historia-cantada */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body.clickup-chrome-ext_installed {
    background: #bcbcbc;
}

/* Color Scheme - Matching "A História Cantada da AIDS" */
:root {
  --bg: #bcbcbc;
  --bg-2: #f4f4f4;
  --text: #5d5d5d;
  --muted: #5d5d5d;
  --panel: #f4f4f4;
  --panel-strong: #f4f4f4;
  --border: rgba(0,0,0,0.08);
  --glow: 0 10px 30px rgba(0,0,0,0.1);
  --primary: #ff0000;
  --primary-2: #ff0000;
  --green: #10b981;
  --purple: #8b5cf6;
  --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;

  /* Legacy vars for compatibility */
  --text-primary: #5d5d5d;
  --text-secondary: #6b7280;
  --text-dim: #6b7280;
  --background: #bcbcbc;
  --surface: rgba(255, 255, 255, 0.95);
}

/* Dark theme overrides */
:root[data-theme="dark"] {
  --bg: #0f172a;
  --panel: rgba(30,41,59,0.6);
  --panel-strong: rgba(30,41,59,0.8);
  --border: rgba(148,163,184,0.2);
  --glow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim: #94a3b8;
  --background: #0f172a;
  --surface: rgba(30,41,59,0.6);
}

:root[data-theme="dark"] .choice-desc {
  color: #ffffff !important;
}
:root[data-theme="dark"] .choice-title {
  color: #ffffff !important;
}

/* Light theme overrides */
:root[data-theme="light"] {
  --bg: #bcbcbc;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: rgba(255, 255, 255, 1);
  --border: rgba(0, 0, 0, 0.08);
  --glow: 0 10px 30px rgba(0,0,0,0.1);
  --text: #5d5d5d;
  --muted: #6b7280;
  --text-primary: #5d5d5d;
  --text-secondary: #6b7280;
  --text-dim: #6b7280;
}

*{box-sizing:border-box}
html,body{height:100%;min-height:100vh}
html,body{
  background-color: var(--bg);
  color: var(--text);
  margin:0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root[data-theme="dark"] html,
:root[data-theme="dark"] body {
  background-color: #0f172a;
  color: #fff;
}

:root[data-theme="light"] html,
:root[data-theme="light"] body {
  background-color: #bcbcbc;
  color: #5d5d5d;
}

.app-shell, .app-root {
  min-height: 100vh;
}

.page{max-width:1120px;margin:48px auto;padding:0 24px}
.fade-in{animation:fade .25s ease-out}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Theme toggle button - Fixed position top-right */
.theme-toggle-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}
.theme-toggle-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: scale(1.1);
}
.theme-toggle-btn:active {
  transform: scale(1.05);
}

:root[data-theme="light"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
}

:root[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Language toggle button - Fixed position top-right */
.language-toggle-btn {
  position: fixed;
  top: 1.5rem;
  right: calc(1.5rem + 48px + 20px);
  height: 48px;
  padding: 0 0.75rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.language-toggle-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: scale(1.05);
}

.language-toggle-btn:active {
  transform: scale(1.02);
}

:root[data-theme="light"] .language-toggle-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

:root[data-theme="light"] .language-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

/* Footer language toggle */
.footer-lang-toggle {
  margin-left: 12px;
  font-size: 0.875rem;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.footer-lang-toggle:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.glass-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .glass-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(148, 163, 184, 0.2);
}

/* HERO (top of /#home) */
.hero{padding:28px;border-radius:16px;margin-bottom:16px}
.hero-gradient{
  background: var(--panel);
  border:1px solid var(--border);
}

:root[data-theme="dark"] .hero-gradient {
  background:
    radial-gradient(1000px 400px at 20% -10%, rgba(93,209,255,0.10), transparent 60%),
    radial-gradient(1000px 400px at 80% -10%, rgba(125,92,255,0.10), transparent 60%),
    rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-heading, system-ui);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ff0000 !important;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}

:root[data-theme="dark"] .hero-title {
  color: #ffffff !important;
}

.hero-lede,
.hero-desc {
  margin: 0 0 12px;
  color: #6b0300 !important;
  font-size: 17px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

:root[data-theme="dark"] .hero-lede,
:root[data-theme="dark"] .hero-desc {
  color: #ffffff !important;
}

/* HOME choice cards (2-up grid) */
.home-cards{margin-top:28px}
.cards-2col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:900px){ .cards-2col{grid-template-columns:1fr} }

.choice-card{padding:24px;display:flex;flex-direction:column;gap:8px;cursor:pointer}
.choice-card:hover{outline:1px solid rgba(125,92,255,.35); background:var(--panel-strong)}
.card-hover:hover {
  transform: translateY(-4px);
}

/* Icon container - LAVENDER background like reference */
.choice-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: #e8e4f3;
  border:1px solid var(--border);
  font-size:22px;
}

:root[data-theme="dark"] .choice-icon {
  background: rgba(99,138,255,.18);
}

.choice-title{margin:2px 0 0;font-weight:700;font-size:22px;color:#ff0000 !important;}
.choice-desc{margin:2px 0 10px;color:#6b0300 !important;flex-grow:1;}

/* Buttons */
.btn{
  width: 100%;
  border-radius: 0.5rem;
  min-height: 2.5rem;
  border: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  color: #fff;
  margin-top: auto;
  text-align: center;
  padding: 0.75rem 1.5rem;
}
.btn-primary{
  background: linear-gradient(to right, #3b82f6, #6366f1);
}
.btn-green{
  background: linear-gradient(to right, #10b981, #14b8a6);
}
.btn-purple{
  background: linear-gradient(to right, #6366f1, #8b5cf6);
}

.actions{display:flex; gap:10px; margin-top:12px}

/* Page headers / panels */
.page-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.page-header-content{flex:1; text-align: center;}
.page-subtle{margin:0;color:#6B0305;text-align:center;}
:root[data-theme="dark"] .page-subtle{color:#94a3b8;}
.page-title{
  font-size:28px;
  font-weight:800;
  margin:0;
  color:#ff0000 !important;
  text-align: center;
  flex: 1;
}
.page-subtitle {
  color: #f59e0b !important;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin: 0.25rem 0 0;
  width: 100%;
}

:root[data-theme="dark"] .page-subtitle {
  color: #fbbf24 !important;
}

:root[data-theme="dark"] .page-title {
  color: #ffffff !important;
}

.back-link{
  background:rgba(255,255,255,.9);
  border:1px solid var(--border);
  color:var(--text);
  padding:8px 16px;
  border-radius:10px;
  cursor:pointer;
  text-decoration: none;
  display: inline-block;
  position: absolute;
  left: 0;
}
.back-link:hover{background:rgba(255,255,255,1)}

:root[data-theme="dark"] .back-link {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

:root[data-theme="dark"] .back-link:hover {
  background: rgba(30, 41, 59, 1);
}

h2 {
    color: #ff0000;
}

:root[data-theme="dark"] h2 {
  color: #ffffff;
}

/* Theme transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* LIGHT THEME OVERRIDES */
:root[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .glass-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .choice-card {
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .choice-card:hover {
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .hero-gradient {
  background:
    radial-gradient(1000px 400px at 20% -10%, rgba(255,0,0,0.08), transparent 60%),
    rgba(255, 255, 255, 0.9);
}

/* Presentation page styles */
.presentation-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.presentation-heroimg-wrapper {
  background-color: #E31E24;
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  aspect-ratio: 16/6;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.presentation-heroimg-wrapper img,
.hero-image {
  max-width: 60%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.presentation-textblock {
  color: var(--text);
  line-height: 1.7;
}

.presentation-textblock p {
  margin: 0 0 1rem;
}

.audio-row {
  margin-top: 1.5rem;
  text-align: left;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.audio-btn:hover {
  background: #2563eb;
}

/* FAQ Section Styles */
.faq-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.faq-search {
  width: 100%;
  padding: 12px 2.5rem 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
}

.search-clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.search-clear-btn:hover {
  opacity: 1;
  color: #ff0000;
}

.faq-search::placeholder {
  color: var(--muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq-question-text {
  flex: 1;
}

.faq-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  margin-left: 1rem;
}

.faq-audio-btn.is-playing {
  background: linear-gradient(to right, #10b981, #14b8a6);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.state-message {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.state-error {
  color: #ef4444;
}

.muted {
  color: var(--muted);
}

/* Hero Blue (used on FAQ page) */
.hero-blue {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background-color: #10b981; }
.dot-blue { background-color: #3b82f6; }
.dot-purple { background-color: #8b5cf6; }

/* Theme transition helper */
.theme-transition {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Footer */
.app-footer-line {
  border-top: 1px solid var(--border);
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 2rem;
}

:root[data-theme="light"] .app-footer-line {
  color: #6b7280;
}

:root[data-theme="dark"] .app-footer-line {
  color: #94a3b8;
}
