/* ════════════════════════════════════════════════════════════ */
/* CSS PARA AULAS COM CONTEÚDO (PRONTO - Ex: Aula 01)           */
/* ════════════════════════════════════════════════════════════ */

:root {
  --bg: #0d0d10;
  --bg2: #13131a;
  --bg3: #1a1a24;
  --bg4: #22222e;
  --border: #2a2a3a;
  --border2: #383848;
  --text: #f0eeff;
  --muted: #9a9aaa;
  --muted2: #6a6a8a;
  --accent: #7c6af5;
  --accent2: #9d8fff;
  --accent-bg: #1a1630;
  --yellow: #f0c060;
  --yellow-bg: #201a08;
  --green: #5dd88a;
  --green-bg: #0a2018;
  --blue: #60b8f0;
  --blue-bg: #081828;
  --red: #f07070;
  --red-bg: #201010;
  --white-bg: #ffffff;
  --black: #000000;
  --purple: #b39dff;
  --purple-bg: #1a1530;
  --mono: "JetBrains Mono", monospace;
  --sans: "Outfit", sans-serif;
}

/* ── LIGHT MODE ── */
html.light-mode {
  --bg: #fafaf8;
  --bg2: #f0f0ee;
  --bg3: #e8e8e6;
  --bg4: #e0e0de;
  --border: #d8d8d6;
  --border2: #c0c0be;
  --text: #1a1a18;
  --muted: #666664;
  --muted2: #999997;
  --accent: #7c6af5;
  --accent2: #9d8fff;
  --accent-bg: #f0e8ff;
  --yellow: #d4a500;
  --yellow-bg: #fff8e6;
  --green: #0d8659;
  --green-bg: #e6f5f0;
  --blue: #0066cc;
  --blue-bg: #e6f0ff;
  --red: #cc3333;
  --red-bg: #ffe6e6;
  --white-bg: #ffffff;
  --black: #000000;
  --purple: #6b4fb0;
  --purple-bg: #f0e8ff;
}

/* ── LIGHT MODE - STUDY PANEL ── */
html.light-mode .study-panel {
  background: #ffffff;
  border-left-color: #d8d8d6;
}

html.light-mode .study-panel-header {
  border-bottom-color: #d8d8d6;
}

html.light-mode .study-panel-header h3 {
  color: #7c6af5;
}

html.light-mode .study-panel-close {
  background: #f0f0ee;
  border-color: #d8d8d6;
  color: #999997;
}

html.light-mode .study-panel-close:hover {
  background: #e8e8e6;
  color: #333331;
}

html.light-mode .study-panel-body {
  scrollbar-color: #d8d8d6 transparent;
}

html.light-mode .study-panel-body h3 {
  color: #1a1a18;
}

html.light-mode .study-panel-body p {
  color: #555553;
}

html.light-mode .study-panel-body ul li {
  color: #555553;
}

html.light-mode .study-panel-body ul li::before {
  color: #999997;
}

html.light-mode .study-panel-body strong {
  color: #7c6af5;
}

html.light-mode .study-panel-body code {
  background: #f0e8ff;
  border-color: #e8deff;
  color: #0d8659;
}

html.light-mode .study-panel-body pre {
  background: #f5f0ff;
  border-color: #e8deff;
  color: #333331;
}

html.light-mode .study-panel-body table {
  background: #fafaf8;
}

html.light-mode .study-panel-body th {
  color: #666664;
  border-bottom-color: #d8d8d6;
  background: #f0f0ee;
}

html.light-mode .study-panel-body td {
  color: #555553;
  border-bottom-color: #e8e8e6;
}

html.light-mode .study-panel-body td strong {
  color: #333331;
}

html.light-mode .study-overlay.open {
  background: rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--sans);
  background: #000;
  color: var(--text);
}

/* ── DECK ── */
.deck {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.slide.active {
  display: flex;
  overflow: hidden;
}

/* ── LAYOUT FIXO header/footer ── */
.topbar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.topbar-title {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.topbar-aula {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--muted);
}

.progress-wrap {
  height: 3px;
  background: var(--bg3);
  flex-shrink: 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.3s ease;
}

.slide-inner {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3rem 5rem;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.slide-inner::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 106, 245, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.slide-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  gap: 1rem;
}

.footer-back {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-back:hover {
  color: var(--accent2);
}

.footer-label {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted2);
}

.nav-btns {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--muted);
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.nav-btn:hover {
  background: var(--bg4);
  color: var(--text);
  border-color: var(--accent);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.slide-counter {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted2);
}

/* ── TIPOGRAFIA ── */
.eyebrow {
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 640px;
}

.accent-text {
  color: var(--accent2);
}

.strikethrough {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.5;
  text-decoration-color: red;
}

/* ── LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.speaker-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.card.accent {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.card.yellow {
  border-color: #5a4010;
  background: var(--yellow-bg);
}

.card.green {
  border-color: #1a5030;
  background: var(--green-bg);
}

.card.blue {
  border-color: #103050;
  background: var(--blue-bg);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── BLIST ── */
.blist {
  list-style: none;
  margin-top: 1.25rem;
}

.blist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  color: var(--muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.blist li:last-child {
  border-bottom: none;
}

.blist li .icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent2);
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--mono);
}

.blist li strong {
  color: var(--text);
  font-weight: 500;
}

/* ── CODE ── */
.code-wrap {
  background: #080810;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: auto;
  max-height: 60vh;
  margin-top: 1.25rem;
}

.code-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-filename {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--muted);
  margin-left: 4px;
}

pre {
  padding: 1.1rem 1.4rem;
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  line-height: 1.9;
}

.c-comment {
  color: #444466;
}

.c-kw {
  color: var(--accent2);
  font-weight: 500;
}

.c-fn {
  color: var(--blue);
}

.c-str {
  color: var(--green);
}

.c-num {
  color: var(--yellow);
}

.c-cls {
  color: #f0a060;
}

.c-var {
  color: var(--text);
}

/* ── PILLS ── */
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pill {
  font-size: 14px;
  font-family: var(--mono);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border2);
  color: var(--muted);
}

.pill.p-accent {
  background: var(--accent-bg);
  color: var(--accent2);
  border-color: var(--accent);
}

.pill.p-green {
  background: var(--green-bg);
  color: var(--green);
  border-color: #1a5030;
}

.pill.p-yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
  border-color: #5a4010;
}

.pill.p-blue {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: #103050;
}

.pill.p-white {
  background: var(--white-bg);
  color: var(--black);
  border-color: #ffffff;
}

/* ── HBOX ── */
.hbox {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #c0b8ff;
  line-height: 1.7;
}

/* ── STEPS ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent2);
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.step-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── COVER ── */
.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--accent2);
  margin-bottom: 1.75rem;
  width: fit-content;
  letter-spacing: 0.02em;
}

.cover-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
}

th {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  padding: 0.55rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border2);
}

td {
  font-size: 0.88rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
}

/* ── STUDY PANEL & BUTTON ── */
.study-btn {
  position: absolute;
  top: 4rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 106, 245, 0.12);
  border: 1px solid rgba(124, 106, 245, 0.3);
  color: #9d8fff;
  font-size: 13px;
  font-family: var(--mono);
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  letter-spacing: 0.04em;
}

.study-btn:hover {
  background: rgba(124, 106, 245, 0.22);
  border-color: rgba(124, 106, 245, 0.6);
  color: #c0b0ff;
}

.study-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 90vw);
  background: #0f0f14;
  border-left: 1px solid #2a2a3a;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.study-panel.open {
  transform: translateX(0);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.study-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #2a2a3a;
  flex-shrink: 0;
}

.study-panel-header h3 {
  font-size: 13px;
  font-weight: 500;
  color: #9d8fff;
  font-family: var(--mono);
}

.study-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1a1a24;
  border: 1px solid #2a2a3a;
  color: #6a6a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.15s;
  line-height: 1;
}

.study-panel-close:hover {
  background: #2a2a3a;
  color: #e0e0ff;
}

.study-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: #2a2a3a transparent;
}

.study-panel-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: #e0deff;
  margin: 1.5rem 0 0.5rem;
}

.study-panel-body h3:first-child {
  margin-top: 0;
}

.study-panel-body p {
  font-size: 14px;
  color: #8080a0;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.study-panel-body ul {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
}

.study-panel-body ul li {
  font-size: 14px;
  color: #8080a0;
  padding: 4px 0 4px 1rem;
  position: relative;
  line-height: 1.7;
}

.study-panel-body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #4a4a6a;
}

.study-panel-body strong {
  color: #c0b8ff;
  font-weight: 500;
}

.study-panel-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: #1a1a28;
  border: 1px solid #2a2a40;
  border-radius: 4px;
  padding: 1px 6px;
  color: #9dd8a0;
}

.study-panel-body pre {
  background: #080810;
  border: 1px solid #1e1e30;
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 13px;
  color: #8090c0;
  line-height: 1.9;
  overflow-x: auto;
  margin: 0.75rem 0;
}

.study-panel-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 13px;
}

.study-panel-body th {
  text-align: left;
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4a4a6a;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #2a2a3a;
}

.study-panel-body td {
  font-size: 13px;
  padding: 0.5rem 0.75rem;
  color: #7070a0;
  border-bottom: 1px solid #1a1a28;
  vertical-align: top;
}

.study-panel-body td strong {
  color: #a0a0c0;
}

.study-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.study-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .slide-inner {
    padding: 2rem 3rem;
  }

  h1 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
  }

  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .speaker-grid {
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
  }

  .study-btn {
    top: 3.25rem;
    font-size: 12px;
    padding: 4px 10px;
  }
}

@media (max-width: 768px) {
  .speaker-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .study-btn {
    top: 3.5rem;
    right: 0.5rem;
    font-size: 12px;
    padding: 4px 9px;
  }
}

@media (max-width: 640px) {
  .slide-inner {
    padding: 1.5rem 1.25rem;
  }

  h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  }

  .topbar,
  .slide-footer {
    padding: 0.65rem 1rem;
  }

  pre {
    font-size: 0.85rem;
  }

  .study-btn {
    top: 3rem;
    right: 0.5rem;
    font-size: 12px;
    padding: 3px 8px;
  }

  .study-panel {
    width: 100% !important;
    border-left: none;
    border-top: 1px solid #2a2a3a;
    top: auto;
    height: 85vh;
    transform: translateY(100%);
    border-radius: 16px 16px 0 0;
  }

  .study-panel.open {
    transform: translateY(0);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  }

  .study-panel-body {
    font-size: 13px;
    padding: 1rem;
  }

  .study-panel-body h3 {
    font-size: 15px;
    margin: 1rem 0 0.4rem;
  }

  .study-panel-body p {
    font-size: 13px;
  }

  .study-panel-body ul li {
    font-size: 13px;
  }

  .study-panel-body code {
    font-size: 13px;
  }

  .study-panel-body pre {
    font-size: 13px;
    padding: 0.75rem;
  }

  .footer-back {
    font-size: 12px;
  }
}

@media (max-height: 600px) {
  .slide-inner {
    padding: 1rem 2rem;
    justify-content: flex-start;
    padding-top: 1.5rem;
  }

  .slide-inner::after {
    display: none;
  }
}

@media (max-height: 500px) {
  .slide-inner {
    padding: 0.75rem 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .topbar {
    padding: 0.5rem 1rem;
  }

  .slide-footer {
    padding: 0.5rem 1rem;
  }
}

/* ── ANIMATION ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide.active .slide-inner > * {
  animation: fadeUp 0.32s ease both;
}

.slide.active .slide-inner > *:nth-child(2) {
  animation-delay: 0.05s;
}

.slide.active .slide-inner > *:nth-child(3) {
  animation-delay: 0.1s;
}

.slide.active .slide-inner > *:nth-child(4) {
  animation-delay: 0.15s;
}

.slide.active .slide-inner > *:nth-child(5) {
  animation-delay: 0.2s;
}

/* ── PHOTO MODAL ── */
.photo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.photo-modal.active {
  display: flex;
  animation: fadeUp 0.25s ease;
}

.photo-modal-content {
  position: relative;
  width: 95vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-modal-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.photo-modal-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(124, 106, 245, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent2);
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
  z-index: 100;
}

.photo-arrow:hover {
  background: rgba(124, 106, 245, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.photo-arrow-left {
  left: 12px;
}

.photo-arrow-right {
  right: 12px;
}

.photo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(124, 106, 245, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent2);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
  z-index: 101;
}

.photo-modal-close:hover {
  background: rgba(124, 106, 245, 0.4);
}

.photo-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent2);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  z-index: 100;
}

@media (max-width: 768px) {
  .photo-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .photo-modal-close {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

/* Homework Grid - Responsive */
.homework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}

@media (max-width: 1024px) {
  .homework-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .homework-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .homework-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Exercises Grid - Para slides de exercícios listados (2 colunas padrão) */
.exercises-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.exercises-grid > div {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.exercise-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.exercise-number {
  font-size: 13px;
  font-family: var(--mono);
  background: #180810;
  color: #f07090;
  border: 1px solid #3a1030;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 600;
}

.exercise-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.exercise-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .exercises-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exercise-name {
    font-size: 15px;
  }

  .exercise-description {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .exercises-grid > div {
    padding: 1rem;
  }

  .exercise-title {
    gap: 8px;
    margin-bottom: 6px;
  }

  .exercise-number {
    font-size: 12px;
    padding: 2px 7px;
  }

  .exercise-name {
    font-size: 14px;
  }

  .exercise-description {
    font-size: 12px;
  }
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent2);
  color: var(--bg);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 106, 245, 0.4);
}

.theme-toggle:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(124, 106, 245, 0.6);
}

.theme-toggle:active {
  transform: scale(0.95);
}

html.light-mode .theme-toggle {
  background: #f0f0ee;
  border-color: #7c6af5;
  color: #7c6af5;
  box-shadow: 0 4px 12px rgba(124, 106, 245, 0.3);
}

html.light-mode .theme-toggle:hover {
  box-shadow: 0 6px 20px rgba(124, 106, 245, 0.5);
}
