/* RecuperaFoto — Global Stylesheet
   Carregado em: index.html e todos os posts do blog
   ============================================== */

/* ============= FONT BASE ============= */
body { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ============= ANIMAÇÕES UTILITÁRIAS ============= */
@keyframes rf-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rf-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
@keyframes rf-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rf-fade-in { animation: rf-fadeIn .4s ease-out; }
.rf-pulse   { animation: rf-pulse 1.8s ease-in-out infinite; }
.rf-spin    { animation: rf-spin .7s linear infinite; }

/* ============= SPINNER ============= */
.rf-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(22, 163, 74, .25);
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: rf-spin .7s linear infinite;
}

/* ============= DROP ZONE ============= */
.drop-zone { transition: border-color .2s ease, background .2s ease; }
.drop-zone.dragover {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
}

/* ============= PROGRESS STEPS ============= */
.progress-step { transition: color .3s ease, font-weight .3s ease; }
.progress-step.active { color: #16a34a; font-weight: 700; }
.progress-step.done   { color: #16a34a; }

/* ============= NAV MOBILE ============= */
#mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
#mobile-nav.open { max-height: 420px; }

/* ============= NAV LINK SUBLINHADO HOVER ============= */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: #16a34a;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ============= BLOG: TOC MOBILE ============= */
.mobile-toc {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-toc.open { max-height: 600px; }

.toc-chevron { transition: transform .3s ease; }
.mobile-toc-btn[aria-expanded="true"] .toc-chevron {
  transform: rotate(180deg);
}

/* ============= BLOG: FLOATING SHARE BAR (mobile) ============= */
.blog-share-float {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .07);
}
@media (max-width: 767px) {
  .blog-share-float { display: flex; }
}

/* ============= BLOG: ARTICLE SCROLL MARGIN ============= */
.blog-article h2,
.blog-article h3 {
  scroll-margin-top: 5rem;
}

/* ============= BLOG: DETAILS/SUMMARY CUSTOM ============= */
.blog-article details summary::-webkit-details-marker { display: none; }

/* ============= MODAL BACKDROP ============= */
.modal-backdrop {
  animation: rf-fadeIn .2s ease-out;
}

/* ============= CARD HOVER ============= */
.card-hover { transition: transform .3s ease, box-shadow .3s ease; }
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

/* ============= BADGE HOVER ============= */
.trust-badge { transition: background .3s, border-color .3s; }
.trust-badge:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
