/* Global theme: unified design system with new color scheme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

/* New Color Scheme - "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;
}

/* 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;
}

:root[data-theme="dark"] .choice-desc {
  color: #ffffff !important;
}
:root[data-theme="dark"] .choice-title {
  color: #ffffff !important;
}
/* Removed duplicate - hero dark theme styles defined below */

/* 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;
}

*{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;
}

.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);
}

.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 header section - biblioteca style */
.home-hero {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  margin: 1rem;
}

:root[data-theme="dark"] .home-hero {
  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);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.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;
  text-transform: uppercase;
}

: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;
}
.hero-badges{display:flex;gap:16px;flex-wrap:wrap}
.badge{
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  color:#cfe3ff;
  padding:6px 10px;border-radius:999px;font-size:12px
}


.badge::before{
  content:'•'; margin-right:6px;opacity:.9
}
.badge.dot-green::before{color:var(--green)}
.badge.dot-blue::before{color:var(--primary)}
.badge.dot-purple::before{color:var(--purple)}

/* 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);
}

.choice-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
  background: rgba(99,138,255,.18); border:1px solid var(--border); font-size:22px}
.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;
}
.btn-primary{
  background: #3b82f6;
}
.btn-primary:hover{
  background: #2563eb;
}
.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;
}
.btn-green{
  background: linear-gradient(to right, #10b981, #14b8a6);
}
.btn-purple{
  background: linear-gradient(to right, #6366f1, #8b5cf6);
}

/* Page headers / panels */
.page-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.page-header-content{flex:1}
.page-title{font-size:28px;font-weight:800;margin:0;color:#ff0000 !important; text-align: center; flex: 1;}
p.page-subtle {
    text-align: center;
}

.page-subtle{margin:0;color:var(--muted)}
.panel{padding:20px; border-radius:16px; border:1px solid var(--border); background:var(--panel);}

/* Toolbar + input */
.toolbar{margin:12px 0 16px}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.input{
  width:100%; padding:12px 2.5rem 12px 14px; background:rgba(255,255,255,.04);
  border:1px solid var(--border); border-radius:12px; color:var(--text);
}
.input::placeholder{color:#8ea4c0}

.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;
}

:root[data-theme="light"] .input {
  background: rgba(255, 255, 255, 0.9);
  color: #5d5d5d;
}

:root[data-theme="light"] .input::placeholder {
  color: #9ca3af;
}

/* Grid of music cards (Faixas) */
.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:1100px){ .cards-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:720px){ .cards-grid{grid-template-columns:1fr} }

h2 {
    color: #ff0000;
}

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

p.page-subtle {
    color: #6B0305;
}

:root[data-theme="dark"] p.page-subtle {
  color: #94a3b8;
}

.music-card{
  padding:14px;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--border);
}

:root[data-theme="dark"] .music-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.music-cover{    width: 320px;
    height: 300px; object-fit:cover; border-radius:12px; border:1px solid var(--border); background:#111;}
.music-meta{margin-top:10px}
.music-title{margin:0 0 4px; font-weight:700; color: #ff0000;}

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

.music-line{margin:0; color:var(--muted); color: #6b0300;}

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

.tags{display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 6px}
.tag-chip{border:1px solid var(--border); background:rgba(255,255,255,.04); padding:6px 10px; border-radius:999px; font-size:12px}

:root[data-theme="light"] .tag-chip {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: #5d5d5d;
}

:root[data-theme="dark"] .tag-chip {
  background: rgba(255,255,255,.04);
  border-color: rgba(148,163,184,0.2);
  color: #e2e8f0;
}

.actions{display:flex; gap:10px; margin-top:12px}
.back-button{background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text);
  padding:8px 10px; border-radius:10px; cursor:pointer}
.back-button:hover{background:rgba(255,255,255,.07)}

:root[data-theme="light"] .back-button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .back-button:hover {
  background: rgba(255, 255, 255, 1);
}
.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);
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.copy{color:var(--text); line-height:1.6}
.center{display:grid; place-items:center; padding:40px 0}

/* YouTube Kiosk Mode - Block logo and prevent external navigation */
.video-wrapper {
  position: relative;
}

.video-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 50px;
  background: transparent;
  pointer-events: all;
  z-index: 10;
}

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

html[data-theme] {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s 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"] .panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

: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);
}

/* Removed duplicate hero-title - styles defined above */

/* Dots - unified color scheme */
.dot-green  { background-color: #10b981; }
.dot-blue   { background-color: #ff0000; }
.dot-purple { background-color: #8b5cf6; }

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