:root {
  --framboesa: #e5175b;
  --rosa-gelo: #f2d5db;
  --rosa-chiclete: #f59fb9;
  --neve: #fffbff;
  --feijao: #201c1d;

  --shadow: rgba(32, 28, 29, 0.18);
  --stroke: rgba(32, 28, 29, 0.14);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: "Montserrat Alternates", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--rosa-gelo);
  color: var(--feijao);
  padding: 26px;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Fundo quadriculado */
.bg-pattern{
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 23, 91, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 23, 91, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}

/* Patinhas/estrelinhas suaves */
.bg-sprinkles{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Ctext x='18' y='70' font-size='26'%3E%E2%9C%A8%3C/text%3E%3Ctext x='280' y='120' font-size='28'%3E%F0%9F%90%BE%3C/text%3E%3Ctext x='90' y='210' font-size='28'%3E%F0%9F%90%BE%3C/text%3E%3Ctext x='240' y='260' font-size='24'%3E%E2%9C%A8%3C/text%3E%3Ctext x='34' y='320' font-size='24'%3E%E2%9C%A8%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 360px 360px;
}

/* =========================
   LAYOUT
   ========================= */
.layout{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

/* =========================
   SIDEBAR
   ========================= */
.sidebar{
  position: sticky;
  top: 16px;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: var(--neve);
  border: 2px solid var(--stroke);
  box-shadow: 8px 8px 0 var(--shadow);
}

/* topo do jeitinho que você curtiu */
.sidebar__brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 4px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px dashed rgba(229, 23, 91, 0.25);
}

/* Logo */
.brand__logo{
  width: 220px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 rgba(32, 28, 29, 0.15));
  margin-top: -10px;
  margin-bottom: -2px;
}

.brand__meta{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tagline{
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--feijao);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(242, 213, 219, 0.95);
  border: 2px solid rgba(229, 23, 91, 0.22);
  box-shadow: 4px 4px 0 rgba(229, 23, 91, 0.10);
  font-weight: 900;

  max-width: 100%;
}

.side-nav{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-section{
  margin-top: 6px;
  padding-top: 10px;
  border-top: 2px dashed rgba(229, 23, 91, 0.18);
}

.side-section__title{
  font-weight: 900;
  color: var(--framboesa);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

/* ===== MENU: FIX REAL PRA QUEBRAR LINHA ===== */
.side-link{
  display: flex;
  align-items: flex-start;     /* ajuda a quebrar bonito */
  gap: 10px;

  text-decoration: none;
  font-weight: 900;

  padding: 10px 12px;
  border-radius: 16px;

  background: rgba(242, 213, 219, 0.9);
  border: 2px solid rgba(32, 28, 29, 0.10);
  box-shadow: 5px 5px 0 rgba(229, 23, 91, 0.08);

  transition: transform 0.15s ease, background 0.15s ease;

  /* o pulo do gato no flex: deixa o conteúdo encolher e quebrar */
  min-width: 0;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;

  line-height: 1.15;
  text-align: left;

  font-size: 0.95rem;
}

/* impede o "emoji" de esticar/atrapalhar o texto */
.side-link::before{
  flex: 0 0 auto;
}

.side-link:hover{
  transform: translateY(-2px);
  background: rgba(245, 159, 185, 0.45);
}

/* =========================
   CONTEÚDO
   ========================= */
.content{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar{
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--neve);
  border: 2px solid var(--stroke);
  box-shadow: 8px 8px 0 var(--shadow);
}

.page-title{
  margin: 0 0 6px;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--framboesa);
  text-shadow: 2px 2px 0 rgba(245, 159, 185, 0.55);
}

.page-subtitle{
  margin: 0;
  line-height: 1.6;
  font-weight: 600;
  opacity: 0.95;
}

.stack{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Panel */
.panel{
  padding: 20px;
  border-radius: 22px;
  background: var(--neve);
  border: 2px solid rgba(32, 28, 29, 0.12);
  box-shadow: 8px 8px 0 rgba(229, 23, 91, 0.10);
  position: relative;
}

.panel::before{
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px dashed rgba(229, 23, 91, 0.18);
  pointer-events: none;
}

.panel h2{
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--framboesa);
}

.panel p{
  margin: 0;
  line-height: 1.7;
  font-weight: 600;
  opacity: 0.92;
}

.panel__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.muted{
  opacity: 0.7;
  font-weight: 600;
}

/* Lista */
.list{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 800;
}

/* Galerias */
.gallery{
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.gallery-grouped{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.group{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group__title{
  font-family: "Fraunces", serif;
  font-weight: 900;
  color: var(--feijao);
  background: rgba(245, 159, 185, 0.35);
  border: 2px solid rgba(229, 23, 91, 0.22);
  box-shadow: 4px 4px 0 rgba(229, 23, 91, 0.08);
  width: fit-content;
  padding: 8px 12px;
  border-radius: 14px;
}

.thumb{
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  outline: 2px solid rgba(32, 28, 29, 0.10);
  box-shadow: 6px 6px 0 rgba(229, 23, 91, 0.10);
  transition: transform 0.16s ease;
}

.thumb:hover{ transform: translateY(-2px); }

.thumb img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--rosa-gelo);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.thumb:hover img{
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

.thumb__cap{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 251, 255, 0.98);
  border: 2px solid rgba(229, 23, 91, 0.18);
  box-shadow: 6px 6px 0 rgba(229, 23, 91, 0.10);
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1.25;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.thumb:hover .thumb__cap{
  opacity: 1;
  transform: translateY(0px);
}

.empty{
  padding: 16px;
  border-radius: 18px;
  background: rgba(242, 213, 219, 0.9);
  border: 2px dashed rgba(229, 23, 91, 0.30);
  font-weight: 800;
}

/* Botões */
.actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 900;
  background: var(--neve);
  border: 2px solid rgba(32, 28, 29, 0.14);
  box-shadow: 6px 6px 0 rgba(32, 28, 29, 0.14);
  transition: transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn::after{
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 60%);
  transform: translateX(-60%) translateY(-20%) rotate(18deg);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.4s ease;
  pointer-events: none;
}

.btn:hover{
  transform: translateY(-2px) scale(1.03);
}

.btn:hover::after{
  opacity: 0.9;
  transform: translateX(40%) translateY(-10%) rotate(18deg);
}

.btn:active{
  transform: translateY(0px) scale(0.98);
}

.btn.primary{
  background: var(--framboesa);
  color: var(--neve);
}

.btn.secondary{
  background: var(--rosa-chiclete);
  color: var(--feijao);
}

@keyframes jellyPop{
  0%{ transform: translateY(-2px) scale(1.02); }
  35%{ transform: translateY(-2px) scale(1.05, 0.96); }
  65%{ transform: translateY(-2px) scale(0.98, 1.04); }
  100%{ transform: translateY(-2px) scale(1.03); }
}

.btn.jelly:hover{
  animation: jellyPop 0.35s ease;
}

/* Contato */
.contact{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.footer{
  text-align: center;
  font-weight: 800;
  opacity: 0.85;
}

/* Responsivo */
@media (max-width: 860px){
  body{ padding: 16px; }
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position: static; }
  .brand__logo{ width: 200px; }
}

/* acessibilidade: menos animação */
@media (prefers-reduced-motion: reduce){
  .btn, .thumb, .thumb img, .thumb__cap{
    transition: none !important;
    animation: none !important;
  }
}
