/*
Theme Name: WP Portfolio-BNCC
Theme URI: https://mpddigital.com.br
Author: Adelgilço da Silva Barros By Mundo Pós-Digital
Author URI: https://mpddigital.com.br
Description: Um tema WordPress completo, alegre, colorido e moderno para Portfólio e Blog, com suporte às diretrizes da BNCC (Base Nacional Comum Curricular) e um Painel de Opções exclusivo.
Version: wpp1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-portfolio-bncc
*/

/* Custom animations and scrollbars */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-playful-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.animate-playful-wiggle {
  animation: wiggle 3s ease-in-out infinite;
}

/* Card hover scaling with shadow transition */
.hover-card-lift {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hover-card-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Rounded shapes */
.playful-border-bubble {
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

/* Custom scrollbar for playful feel */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #f9f8f4; 
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-primary, #ff5722);
  border-radius: 20px;
  border: 3px solid #f9f8f4;
}

/* ============================================================
   SEÇÃO: Logos do Município e Secretaria de Educação
   ============================================================ */
.logos-section {
  background: linear-gradient(135deg, #f9f8f4 0%, #fff8f5 40%, #f0faf0 100%);
  position: relative;
}

/* Animated background orbs */
.logos-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: logos-orb-drift 8s ease-in-out infinite;
}
.logos-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,87,34,0.12), transparent);
  top: -80px; left: -80px;
  animation-delay: 0s;
}
.logos-orb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(150,205,77,0.14), transparent);
  bottom: -60px; right: -60px;
  animation-delay: -3s;
}
.logos-orb-3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,100,116,0.1), transparent);
  top: 50%; right: 25%;
  animation-delay: -5s;
}
@keyframes logos-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.95); }
}

/* Scroll-in animation base — visible by default, JS enhances */
.logos-header-anim,
.logos-card-anim,
.logos-trust-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
/* When JS adds .scroll-reveal-init, hide until .is-visible */
.scroll-reveal-init .logos-header-anim,
.scroll-reveal-init .logos-card-anim,
.scroll-reveal-init .logos-trust-anim {
  opacity: 0;
  transform: translateY(40px);
}
.logos-header-anim.is-visible { opacity: 1; transform: translateY(0); }
.logos-card-anim.is-visible   { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.logos-trust-anim.is-visible  { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

/* Showcase wrapper */
.logos-showcase-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
}

/* Main logo card */
.logos-main-card {
  position: relative;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255,87,34,0.15);
  border-radius: 28px;
  padding: 40px 56px;
  box-shadow:
    0 4px 6px -1px rgba(0,0,0,0.05),
    0 20px 50px -12px rgba(255,87,34,0.15),
    0 0 0 1px rgba(255,255,255,0.8) inset;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
}

/* Shimmer sweep */
.logos-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.6) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: logos-shimmer-sweep 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes logos-shimmer-sweep {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Corner accents */
.logos-corner {
  position: absolute;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.logos-corner-tl { top: 12px;  left: 12px; }
.logos-corner-tr { top: 12px;  right: 12px; }
.logos-corner-bl { bottom: 12px; left: 12px; }
.logos-corner-br { bottom: 12px; right: 12px; }

/* Image */
.logos-image-container { position: relative; z-index: 1; }
.logos-main-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.logos-main-card:hover .logos-main-image {
  transform: scale(1.03);
  filter: drop-shadow(0 16px 40px rgba(255,87,34,0.25));
}

/* Floating badges */
.logos-badge {
  position: absolute;
  bottom: -16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 5;
}
.logos-badge-left  { left: 20px; }
.logos-badge-right { right: 20px; }

/* Float animations */
.logos-float-anim       { animation: logos-float 4s ease-in-out infinite; }
.logos-float-anim-delay { animation: logos-float 4s ease-in-out 1.5s infinite; }
@keyframes logos-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Decorative side rings */
.logos-side-deco {
  position: relative;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 768px) { .logos-side-deco { display: none; } }
.logos-deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: logos-ring-pulse 3s ease-in-out infinite;
}
.logos-ring-1 { width: 80px;  height: 80px;  border-color: rgba(255,87,34,0.2);  animation-delay: 0s; }
.logos-ring-2 { width: 110px; height: 110px; border-color: rgba(150,205,77,0.15); animation-delay: 0.5s; }
.logos-ring-3 { width: 140px; height: 140px; border-color: rgba(255,100,116,0.1); animation-delay: 1s; }
@keyframes logos-ring-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.5; }
}
.logos-pulse-anim       { animation: logos-ring-pulse 3s ease-in-out infinite; }
.logos-pulse-anim-delay { animation: logos-ring-pulse 3s ease-in-out 1s infinite; }

/* Trust bar */
.logos-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  padding: 20px 32px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.logos-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700;
  color: #4b5563;
  font-family: var(--font-heading, 'Fredoka', sans-serif);
}
.logos-trust-divider {
  width: 1px; height: 24px;
  background: rgba(0,0,0,0.12);
}

/* ============================================================
   SEÇÃO: Gráfico BNCC
   ============================================================ */
.bncc-chart-section {
  position: relative;
  background: #0f172a;
}
.bncc-chart-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c1a2e 70%, #0f172a 100%);
}

/* Grid overlay */
.bncc-chart-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: bncc-grid-scroll 20s linear infinite;
}
@keyframes bncc-grid-scroll {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 40px, 40px 0; }
}

/* Floating particles */
.bncc-particle {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  animation: bncc-particle-float 6s ease-in-out infinite;
}
.bncc-p1 { top: 15%; left: 8%;  font-size: 12px; color: #ff5722; animation-delay: 0s;    animation-duration: 7s; }
.bncc-p2 { top: 25%; right: 10%; font-size: 8px;  color: #96cd4d; animation-delay: -2s;  animation-duration: 5s; }
.bncc-p3 { bottom: 30%; left: 15%; font-size: 10px; color: #ff6474; animation-delay: -4s; animation-duration: 8s; }
.bncc-p4 { bottom: 20%; right: 8%; font-size: 14px; color: #ff5722; animation-delay: -1s; animation-duration: 6s; }
.bncc-p5 { top: 60%; left: 5%;  font-size: 9px;  color: #96cd4d; animation-delay: -3s;  animation-duration: 9s; }
@keyframes bncc-particle-float {
  0%, 100% { transform: translateY(0) rotate(0deg);   }
  33%       { transform: translateY(-20px) rotate(15deg); }
  66%       { transform: translateY(10px) rotate(-10deg); }
}

/* Header animations — visible by default, JS enhances */
.bncc-chart-header-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal-init .bncc-chart-header-anim {
  opacity: 0;
  transform: translateY(40px);
}
.bncc-chart-header-anim.is-visible { opacity: 1; transform: translateY(0); }

/* Highlight word */
.bncc-chart-highlight {
  background: linear-gradient(90deg, #ff5722, #ff6474);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Chart frame */
.bncc-chart-frame {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 25px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(255,87,34,0.05);
}
.bncc-chart-reveal-anim {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.2s;
}
.scroll-reveal-init .bncc-chart-reveal-anim {
  opacity: 0;
  transform: translateY(50px) scale(0.97);
}
.bncc-chart-reveal-anim.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Topbar (macOS window style) */
.bncc-chart-topbar {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 6px;
}
.bncc-chart-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.bncc-dot-red    { background: #ff5f57; }
.bncc-dot-yellow { background: #febc2e; }
.bncc-dot-green  { background: #28c840; }

/* Image wrapper */
.bncc-chart-image-wrapper {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.bncc-chart-image {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 75vh;
  transition: transform 0.6s ease;
}
.bncc-chart-frame:hover .bncc-chart-image {
  transform: scale(1.015);
}

/* Corner glow */
.bncc-chart-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.bncc-glow-tl { top: -50px;    left: -50px;    background: rgba(255,87,34,0.12); }
.bncc-glow-br { bottom: -50px; right: -50px;   background: rgba(150,205,77,0.1); }

/* Scanline effect */
.bncc-chart-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,87,34,0.5), transparent);
  animation: bncc-scanline 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bncc-scanline {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Stats strip */
.bncc-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px 32px;
  backdrop-filter: blur(8px);
}
.bncc-stats-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.4s;
}
.scroll-reveal-init .bncc-stats-anim {
  opacity: 0;
  transform: translateY(30px);
}
.bncc-stats-anim.is-visible { opacity: 1; transform: translateY(0); }
.bncc-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  flex: 1;
  min-width: 120px;
}
.bncc-stat-number {
  font-family: var(--font-heading, 'Fredoka', sans-serif);
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5722, #ff6474);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.bncc-stat-pct { font-size: 1.4rem; }
.bncc-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 6px;
  font-family: var(--font-body, 'Quicksand', sans-serif);
}
.bncc-stat-divider {
  width: 1px; height: 60px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .logos-main-card { padding: 28px 20px; }
  .logos-badge { display: none; }
  .bncc-stat-item { padding: 0 16px; }
  .bncc-stat-number { font-size: 2rem; }
  .bncc-stats-strip { padding: 20px 16px; }
  .logos-trust-bar { padding: 16px 20px; border-radius: 20px; }
}

