/* ==========================================================================
   COMPONENTS — PROFESSORA CAMILA DA COSTA MELO
   ========================================================================== */

/* --- BOTÕES --- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}

.btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--coral);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--yellow);
}

/* --- BOLHAS DE FOTOS INTERATIVAS & ARRASTÁVEIS --- */
.photo-bubble {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid var(--paper);
  box-shadow: 0 8px 24px rgba(27, 58, 75, 0.18);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: 10;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  background: var(--paper);
}

.photo-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.photo-bubble:hover {
  transform: scale(1.15) rotate(4deg);
  z-index: 25;
  box-shadow: 0 14px 30px rgba(27, 58, 75, 0.28);
}

.photo-bubble.dragging {
  cursor: grabbing !important;
  transform: scale(1.22) rotate(-4deg) !important;
  z-index: 9999 !important;
  box-shadow: 0 20px 40px rgba(27, 58, 75, 0.35) !important;
  transition: none !important;
  animation: none !important;
}

.photo-bubble.dropped {
  z-index: 900;
}

/* Tamanhos Variados */
.photo-bubble.size-sm { width: 68px; height: 68px; }
.photo-bubble.size-md { width: 94px; height: 94px; }
.photo-bubble.size-lg { width: 118px; height: 118px; }
.photo-bubble.size-xl { width: 138px; height: 138px; }

/* Variantes de Bordas Coloridas */
.photo-bubble.b-teal { border-color: var(--teal); }
.photo-bubble.b-coral { border-color: var(--coral); }
.photo-bubble.b-yellow { border-color: var(--yellow); }
.photo-bubble.b-lavender { border-color: var(--lavender); }

/* Animações Individuais de Flutuação Suave (Float) */
.photo-bubble.pb-1 { animation: floatBubble1 8s ease-in-out infinite alternate; }
.photo-bubble.pb-2 { animation: floatBubble2 9s ease-in-out infinite alternate 1s; }
.photo-bubble.pb-3 { animation: floatBubble3 10s ease-in-out infinite alternate 2s; }
.photo-bubble.pb-4 { animation: floatBubble1 7s ease-in-out infinite alternate 0.5s; }
.photo-bubble.pb-5 { animation: floatBubble2 11s ease-in-out infinite alternate 1.5s; }
.photo-bubble.pb-6 { animation: floatBubble3 8.5s ease-in-out infinite alternate 3s; }

@keyframes floatBubble1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
  100% { transform: translateY(8px) rotate(-4deg); }
}

@keyframes floatBubble2 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(14px) rotate(-6deg); }
  100% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes floatBubble3 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
  100% { transform: translateY(10px) rotate(-5deg); }
}

/* --- SOBRE CARD (ENGLOBA TEXTO + CARROSSEL DA SALA) --- */
.about-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  box-shadow: 0 4px 16px rgba(27, 58, 75, 0.06);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.about-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(27, 58, 75, 0.09);
}

.about-card-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 860px) {
  .about-card-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-card {
    padding: 28px 22px;
  }
}

.about-text-content p {
  font-size: 1.05rem;
  margin: 0 0 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about-text-content p:last-child {
  margin-bottom: 0;
}

.about-carousel-container {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.carousel-track-wrapper {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--bg);
}

.carousel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 15;
}

.carousel-badge span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--teal);
  box-shadow: 0 2px 6px rgba(27, 58, 75, 0.1);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform var(--transition-bounce), background var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--yellow);
  transform: translateY(-50%) scale(1.12);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), width var(--transition-fast);
}

.carousel-dots .dot:hover {
  background: var(--coral);
  transform: scale(1.2);
}

.carousel-dots .dot.active {
  background: var(--teal-deep);
  width: 24px;
  border-radius: 10px;
}

/* --- ESPECIALIDADES GRID --- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

.spec-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 2px solid var(--ink);
  position: relative;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
  box-shadow: 0 4px 0 var(--ink);
}

.spec-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 0 var(--ink);
}

.spec-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1.5px solid var(--ink);
}

.spec-card.c1 .spec-icon { background: var(--lavender); }
.spec-card.c2 .spec-icon { background: var(--yellow); }
.spec-card.c3 .spec-icon { background: var(--teal); }

.spec-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.spec-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.6;
}

/* --- TRILHA / EXPERIENCE TIMELINE --- */
.trail {
  position: relative;
}

.trail-path {
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background-image: linear-gradient(var(--ink) 60%, transparent 0%);
  background-size: 3px 14px;
  background-repeat: repeat-y;
}

@media (max-width: 640px) {
  .trail-path { left: 20px; }
}

.trail-item {
  position: relative;
  padding-left: 78px;
  margin-bottom: 42px;
}

@media (max-width: 640px) {
  .trail-item { padding-left: 58px; }
}

.trail-item:last-child {
  margin-bottom: 0;
}

.trail-pin {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform var(--transition-bounce);
}

.trail-item:hover .trail-pin {
  transform: scale(1.15) rotate(-6deg);
}

@media (max-width: 640px) {
  .trail-pin {
    left: 2px;
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
  }
}

.trail-item.i2 .trail-pin { background: var(--coral); color: white; }
.trail-item.i3 .trail-pin { background: var(--teal); }

.trail-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trail-card:hover {
  transform: translateX(6px);
  border-color: var(--teal-deep);
}

.trail-card h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.trail-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 14px;
  display: block;
  letter-spacing: 0.02em;
}

.trail-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.trail-card li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.trail-card li:last-child {
  margin-bottom: 0;
}

/* --- BUTTON LATTES --- */
.btn-lattes {
  background: var(--paper);
  color: var(--teal-deep);
  border: 1.5px solid var(--teal);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-lattes:hover {
  background: rgba(46, 196, 182, 0.12);
  border-color: var(--teal-deep);
  transform: translateY(-2px);
}

/* --- LATTES BANNER --- */
.lattes-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.08) 0%, rgba(255, 251, 242, 0.95) 100%);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 4px 4px 0 var(--teal-deep);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lattes-banner:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--teal-deep);
}

.lattes-info h3 {
  font-size: 1.22rem;
  margin: 6px 0 8px;
  color: var(--ink);
}

.lattes-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 660px;
  line-height: 1.6;
}

.lattes-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lattes-btn {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .lattes-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  
  .lattes-btn {
    width: 100%;
    justify-content: center;
  }
}
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 700px) {
  .edu-grid { grid-template-columns: 1fr; }
}

.edu-card {
  border-radius: var(--radius-md);
  padding: 26px 28px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: var(--lavender-deep);
}

.edu-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.edu-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 6px rgba(27, 58, 75, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.edu-card:hover .edu-logo-badge {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--teal);
}

.edu-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.edu-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.edu-card .inst {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.edu-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- CURSOS (TAG CLOUD) --- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tag:nth-child(3n+1) { border-color: var(--teal); }
.tag:nth-child(3n+2) { border-color: var(--coral); }
.tag:nth-child(3n+3) { border-color: var(--lavender); }

/* --- CONTATO & FOOTER --- */
footer.site {
  background: var(--ink);
  color: var(--bg);
  padding: 70px 0 40px;
  margin-top: 40px;
}

footer.site h2 {
  color: var(--bg);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

footer.site .section-head p {
  color: rgba(255, 251, 242, 0.75);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
  max-width: 720px;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: rgba(255, 251, 242, 0.06);
  border: 1.5px solid rgba(255, 251, 242, 0.18);
  border-radius: 18px;
  padding: 22px 24px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.contact-card:hover {
  background: rgba(255, 251, 242, 0.1);
  transform: translateY(-4px);
}

.contact-card .eyebrow {
  color: var(--yellow);
}

.contact-card .eyebrow::before {
  background: var(--teal);
}

.contact-card a {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--bg);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-card a:hover {
  color: var(--yellow);
}

.foot-note {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 251, 242, 0.55);
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 38, 48, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 3px solid var(--paper);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2) rotate(90deg);
  color: var(--yellow);
}

/* --- FAIXA DE ESTATÍSTICAS & IMPACTO --- */
.stats-section {
  padding: 10px 0 60px;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 5px 5px 0 var(--ink);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* --- MODO ACESSIBILIDADE --- */
.access-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.access-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.access-btn:hover, .access-btn.active {
  background: var(--teal-deep);
  color: var(--paper);
}

/* Acessibilidade CSS Globais */
html.large-text, body.large-text {
  font-size: 118%;
}

body.large-text p { font-size: 1.2rem !important; }
body.large-text h1 { font-size: 3rem !important; }
body.large-text h2 { font-size: 2.3rem !important; }
body.large-text h3 { font-size: 1.4rem !important; }
body.large-text .btn { font-size: 1.1rem !important; }

body.high-contrast {
  --bg: #050B0E;
  --paper: #101E26;
  --ink: #FFFFFF;
  --ink-soft: #E0EBF0;
  --line: #203A48;
  --teal: #00E5FF;
  --teal-deep: #00E5FF;
  --yellow: #FFD600;
  --coral: #FF5252;
}

/* --- FILOSOFIA PEDAGÓGICA (QUOTE CARD) --- */
.quote-card {
  margin-top: 24px;
  margin-bottom: 0;
  background: var(--paper);
  border-left: 5px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-card blockquote {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coral-deep);
}
