/* 
 * IDENTIDADE VISUAL: "NOSSA TRINCHEIRA É A SALA DE AULA"
 * 5º Encontro Nacional de Grêmios - UBES
 * Estética: Risografia + Lambe-lambe + Manifesto Estudantil
 */

/* ========================================
   PALETA CROMÁTICA
   ======================================== */
:root {
  /* Cores principais */
  --verde-ubes: #009E4F;
  --amarelo-escola: #FFD23C;
  --azul-democracia: #004C97;
  --vermelho-militante: #E8483F;
  --branco-papel: #F8F7F4;
  --cinza-risografico: #DAD8D3;
  --preto-tinta: #1C1C1C;
  
  /* Cores sobrepostas (risografia) */
  --verde-lima: #85C540; /* azul + amarelo */
  --laranja-luta: #FF8533; /* vermelho + amarelo */
  --roxo-uniao: #663399; /* azul + vermelho */
  
  /* Opacidades para camadas */
  --opacity-layer: 0.92;
  --opacity-overlay: 0.15;
}

/* ========================================
   TIPOGRAFIA
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&family=Archivo+Black&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--branco-papel);
  color: var(--preto-tinta);
  line-height: 1.6;
  position: relative;
}

/* Textura de papel */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23000000' stroke-width='1' stroke-opacity='0.02'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: -1;
}

/* Títulos: Estilo manifesto/cartaz */
h1, h2, h3, .titulo-manifesto {
  font-family: 'Bebas Neue', 'Anton', 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

/* ========================================
   BLOCOS COLORIDOS SOBREPOSTOS
   ======================================== */
.bloco-colorido {
  position: relative;
  padding: 2rem;
  margin: 1rem 0;
  transform: rotate(-0.3deg);
  transition: transform 0.3s ease;
  box-shadow: 
    4px 4px 0 rgba(0, 0, 0, 0.1),
    8px 8px 0 rgba(0, 0, 0, 0.05);
}

.bloco-colorido:hover {
  transform: rotate(0deg) translateY(-2px);
}

.bloco-verde {
  background-color: var(--verde-ubes);
  color: white;
  opacity: var(--opacity-layer);
}

.bloco-amarelo {
  background-color: var(--amarelo-escola);
  color: var(--preto-tinta);
  opacity: var(--opacity-layer);
}

.bloco-azul {
  background-color: var(--azul-democracia);
  color: white;
  opacity: var(--opacity-layer);
}

.bloco-vermelho {
  background-color: var(--vermelho-militante);
  color: white;
  opacity: var(--opacity-layer);
}

.bloco-cinza {
  background-color: var(--cinza-risografico);
  color: var(--preto-tinta);
}

/* ========================================
   BOTÕES ESTILO MANIFESTO
   ======================================== */
.btn-manifesto {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-block;
  text-decoration: none;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
  box-shadow: 
    3px 3px 0 rgba(0, 0, 0, 0.2),
    6px 6px 0 rgba(0, 0, 0, 0.1);
}

.btn-manifesto:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 
    5px 5px 0 rgba(0, 0, 0, 0.2),
    10px 10px 0 rgba(0, 0, 0, 0.1);
}

.btn-manifesto:active {
  transform: rotate(0deg) translateY(1px);
  box-shadow: 
    2px 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-amarelo {
  background-color: var(--amarelo-escola);
  color: var(--preto-tinta);
}

.btn-amarelo:hover {
  background-color: #FFC700;
}

.btn-verde {
  background-color: var(--verde-ubes);
  color: white;
}

.btn-verde:hover {
  background-color: #008844;
}

.btn-vermelho {
  background-color: var(--vermelho-militante);
  color: white;
}

.btn-vermelho:hover {
  background-color: #D63B33;
}

.btn-azul {
  background-color: var(--azul-democracia);
  color: white;
}

.btn-azul:hover {
  background-color: #003D7A;
}

/* Botão outline estilo lambe-lambe */
.btn-outline {
  background-color: transparent;
  border: 3px solid currentColor;
  color: var(--preto-tinta);
}

.btn-outline:hover {
  background-color: var(--preto-tinta);
  color: var(--branco-papel);
}

/* ========================================
   NAVBAR ESTILO CARTAZ
   ======================================== */
.navbar-manifesto {
  background: linear-gradient(135deg, var(--azul-democracia) 0%, var(--roxo-uniao) 100%);
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 100;
}

.navbar-manifesto::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--amarelo-escola) 0px,
    var(--amarelo-escola) 10px,
    var(--vermelho-militante) 10px,
    var(--vermelho-militante) 20px,
    var(--verde-ubes) 20px,
    var(--verde-ubes) 30px
  );
}

/* ========================================
   HERO SECTION: CAMADAS SOBREPOSTAS
   ======================================== */
.hero-manifesto {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 2rem;
}

/* Camada 1: Azul */
.hero-manifesto::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: var(--azul-democracia);
  opacity: 0.85;
  transform: rotate(-1deg);
  z-index: 1;
}

/* Camada 2: Amarelo */
.hero-manifesto::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: var(--amarelo-escola);
  opacity: 0.75;
  transform: rotate(2deg);
  z-index: 2;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-conteudo {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   CARDS ESTILO LAMBE-LAMBE
   ======================================== */
.card-lambe {
  background: white;
  padding: 2rem;
  border: 4px solid var(--preto-tinta);
  position: relative;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
  box-shadow: 
    6px 6px 0 rgba(0, 0, 0, 0.1),
    12px 12px 0 rgba(0, 0, 0, 0.05);
}

.card-lambe:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 
    8px 8px 0 rgba(0, 0, 0, 0.15),
    16px 16px 0 rgba(0, 0, 0, 0.08);
}

.card-lambe::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: inherit;
  z-index: -1;
  opacity: 0.3;
}

/* ========================================
   FORMULÁRIO ESTILO MANIFESTO
   ======================================== */
.form-manifesto input,
.form-manifesto select,
.form-manifesto textarea {
  border: 3px solid var(--preto-tinta);
  background: var(--branco-papel);
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  transform: rotate(-0.2deg);
  width: 100%;
  box-sizing: border-box;
}

/* Fix para input type="date" no mobile */
.form-manifesto input[type="date"] {
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  min-height: 48px;
  line-height: normal;
}

.form-manifesto input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.form-manifesto input:focus,
.form-manifesto select:focus,
.form-manifesto textarea:focus {
  outline: none;
  border-color: var(--verde-ubes);
  transform: rotate(0deg);
  box-shadow: 4px 4px 0 var(--amarelo-escola);
}

.form-manifesto label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--preto-tinta);
  margin-bottom: 0.25rem;
  display: block;
}

/* ========================================
   BADGES/TAGS COLORIDAS
   ======================================== */
.badge-riso {
  display: inline-block;
  padding: 0.25rem 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(-1deg);
  margin: 0.25rem;
}

.badge-verde { background: var(--verde-ubes); color: white; }
.badge-amarelo { background: var(--amarelo-escola); color: var(--preto-tinta); }
.badge-azul { background: var(--azul-democracia); color: white; }
.badge-vermelho { background: var(--vermelho-militante); color: white; }

/* ========================================
   SEÇÕES PROGRAMAÇÃO: BLOCOS MODULARES
   ======================================== */
.programacao-bloco {
  border-left: 8px solid;
  padding: 1.5rem;
  margin: 1rem 0;
  background: white;
  transform: rotate(0.3deg);
  transition: transform 0.3s ease;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

.programacao-bloco:hover {
  transform: rotate(0deg) translateX(5px);
}

.programacao-bloco.verde { border-color: var(--verde-ubes); }
.programacao-bloco.amarelo { border-color: var(--amarelo-escola); }
.programacao-bloco.azul { border-color: var(--azul-democracia); }
.programacao-bloco.vermelho { border-color: var(--vermelho-militante); }

.programacao-horario {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: inherit;
  line-height: 1;
}

/* ========================================
   ELEMENTOS DECORATIVOS
   ======================================== */
/* Corcovado-Mochila: ícone vetorial simplificado */
.icone-corcovado {
  width: 80px;
  height: 80px;
  background: var(--verde-ubes);
  clip-path: polygon(50% 0%, 70% 30%, 100% 100%, 0% 100%, 30% 30%);
  position: relative;
  opacity: 0.2;
  transform: rotate(-5deg);
}

/* Pão de Açúcar-Livros */
.icone-livros {
  width: 60px;
  height: 80px;
  background: var(--azul-democracia);
  clip-path: polygon(50% 0%, 100% 25%, 90% 100%, 10% 100%, 0% 25%);
  opacity: 0.2;
  transform: rotate(3deg);
}

/* ========================================
   ANIMAÇÕES ORGÂNICAS
   ======================================== */
@keyframes balanco-leve {
  0%, 100% { transform: rotate(-0.5deg); }
  50% { transform: rotate(0.5deg); }
}

.animacao-balanco {
  animation: balanco-leve 3s ease-in-out infinite;
}

@keyframes pulso-manifesto {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.animacao-pulso {
  animation: pulso-manifesto 2s ease-in-out infinite;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.texto-manifesto {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  max-width: 70ch;
}

.rotacao-leve-esq { transform: rotate(-0.5deg); }
.rotacao-leve-dir { transform: rotate(0.5deg); }

/* Sobreposição de cores */
.overlay-verde {
  background: var(--verde-ubes);
  mix-blend-mode: multiply;
  opacity: var(--opacity-overlay);
}

.overlay-amarelo {
  background: var(--amarelo-escola);
  mix-blend-mode: multiply;
  opacity: var(--opacity-overlay);
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .btn-manifesto {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
  }
  
  .bloco-colorido {
    padding: 1.5rem;
    transform: rotate(-0.5deg);
  }
  
  .hero-manifesto {
    min-height: 50vh;
    padding: 2rem 1rem;
  }
  
  .card-lambe {
    padding: 1.5rem;
    transform: rotate(-0.3deg);
  }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Alto contraste */
@media (prefers-contrast: high) {
  .bloco-colorido {
    border: 3px solid var(--preto-tinta);
  }
  
  .btn-manifesto {
    border: 2px solid currentColor;
  }
}
