/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
  color: #111827;
  line-height: 1.6;
  padding-bottom: 80px;
}
a { color: inherit; text-decoration: none; }

/* Layout */
.page { max-width: 1220px; margin: 0 auto; padding: 0 16px 64px; }
.page-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.main-column { display: flex; flex-direction: column; gap: 24px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 50;
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-left { display: flex; align-items: center; gap: 8px; }
.icon-heart { width: 18px; height: 18px; color: #22c55e; }
.header-title { font-size: 14px; font-weight: 600; color: #16a34a; }

/* Hero */
.hero { width: 100%; }
.hero-media { position: relative; width: 100%; max-width: 840px; margin: 24px auto 0; }
.hero-image { width: 100%; height: 480px; object-fit: cover; border-radius: 2px; background: #e5e7eb; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-banner {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  padding: 0 12px;
}
.hero-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  padding: 16px;
  max-width: 640px;
}
.banner-red {
  background: #dc2626;
  color: #fff;
  padding: 10px 18px;
  font-size: 17px;
  font-weight: 700;
}
.banner-black {
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}

.overlay-card {
  position: absolute;
  left: 16px;
  bottom: -28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.overlay-progress { display: flex; align-items: center; gap: 12px; }
.progress-ring { position: relative; width: 54px; height: 54px; }
.progress-ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e5e7eb; stroke-width: 4; }
.ring-fill { fill: none; stroke: #22c55e; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 125.6; stroke-dashoffset: 54; }
.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
}
.overlay-info { display: flex; flex-direction: column; gap: 4px; }
.overlay-amount { font-size: 14px; font-weight: 700; color: #111827; }
.overlay-donors {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.overlay-donor { color: #374151; }
.overlay-donor .donor-name { font-weight: 700; color: #111827; }
.dot { opacity: 0.65; }

/* Meta */
.campaign-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 18px 0 0;
  border: none;
  background: transparent;
}
.meta-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  font-size: 12px;
  color: #374151;
}
.meta-label { color: #6b7280; }
.meta-value { color: #111827; }
.meta-category { font-weight: 700; color: #111827; }
.meta-dot { color: #9ca3af; }
.meta-created {
  gap: 6px;
  color: #6b7280;
}
.meta-created strong { color: #111827; }

/* Story */
.story { font-size: 14px; color: #111827; display: flex; flex-direction: column; gap: 12px; line-height: 1.7; }
.story p strong { font-weight: 700; }
.story-green { color: #16a34a; font-weight: 700; }

/* Photos */
.photos { display: flex; flex-direction: column; gap: 10px; }
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.photo-frame {
  position: relative;
  width: 100%;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}
.photo-img { width: 100%; height: auto; display: block; }
.photo-banner {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #dc2626;
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
}
.photo-caption { font-size: 12px; color: #6b7280; line-height: 1.6; }

/* Lists */
.list-block { display: flex; flex-direction: column; gap: 12px; }
.with-icon .icon-heart-small { width: 16px; height: 16px; color: #22c55e; }
.list-body { display: flex; flex-direction: column; gap: 12px; }

.list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
}
.list-item:last-child { border-bottom: none; padding-bottom: 0; }
.item-top { display: flex; justify-content: space-between; gap: 8px; }
.item-left { display: flex; gap: 8px; align-items: flex-start; }
.pill-heart {
  width: 24px;
  height: 24px;
  background: #e8f8ef;
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.item-name { font-weight: 700; color: #111827; font-size: 14px; }
.item-time { font-size: 12px; color: #6b7280; }
.item-amount { font-weight: 700; color: #111827; font-size: 14px; }
.item-message {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.5;
  margin-left: 32px;
}
.item-actions { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #6b7280; }
.item-actions { margin-left: 32px; }
.item-actions .likes { display: inline-flex; gap: 4px; align-items: center; }
.like-icon {
  width: 15px;
  height: 15px;
  color: #9ca3af;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* Sidebar cards */
.donate-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.donate-amount { font-size: 22px; font-weight: 800; color: #111827; }
.donate-goal { font-size: 13px; color: #6b7280; }
.donate-count { font-size: 11px; color: #9ca3af; }
.donate-progress { display: flex; align-items: center; gap: 10px; }
.donate-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 9999px; overflow: hidden; }
.donate-bar-fill { height: 100%; background: #22c55e; width: 57%; }
.donate-percent { font-size: 12px; color: #6b7280; font-weight: 600; }
.btn-primary {
  width: 100%;
  background: #d9ff8c;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 11px;
  font-weight: 700;
  cursor: pointer;
}
.btn-secondary {
  width: 100%;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 11px;
  font-weight: 600;
  cursor: pointer;
}

.activity-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.activity-title { font-size: 14px; font-weight: 700; color: #111827; }
.activity-list { display: flex; flex-direction: column; gap: 10px; }
.activity-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; }
.activity-row .pill-heart { width: 18px; height: 18px; }
.activity-name { font-weight: 600; color: #111827; }
.activity-amount { font-weight: 700; color: #111827; }

/* Bottom bar */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
  z-index: 60;
}
.bottom-bar.is-hidden { display: none; }
.bottom-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bottom-left { display: flex; align-items: center; gap: 12px; }
.bottom-ring { width: 36px; height: 36px; }
.bottom-ring svg { width: 36px; height: 36px; transform: rotate(-90deg); }
.bottom-text { display: flex; flex-direction: column; gap: 2px; }
.bottom-amount { font-size: 13px; font-weight: 700; color: #111827; }
.bottom-donor { font-size: 11px; color: #6b7280; }
.btn-bottom {
  background: #d9ff8c;
  color: #000;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
  min-width: 96px;
}

/* Buttons hover */
button:hover { filter: brightness(0.97); }

/* Responsive */
@media (min-width: 960px) {
  .page-grid { grid-template-columns: 2fr 1fr; gap: 32px; }
  .sidebar { position: sticky; top: 92px; align-self: start; }
}

@media (max-width: 959px) {
  .hero-media { max-width: 100%; margin-top: 0; }
  .overlay-card { left: 12px; right: 12px; bottom: -34px; }
  .page { padding-top: 42px; }
}

@media (max-width: 640px) {
  .header-title { font-size: 14px; }
  .hero-image { height: 360px; }
  .banner-red { font-size: 15px; padding: 8px 12px; }
  .banner-black { font-size: 12px; padding: 6px 12px; }
  .overlay-card { flex-direction: row; padding: 12px; }
  .ring-text { font-size: 12px; }
  .overlay-amount { font-size: 13px; }
  .overlay-donors { font-size: 10.5px; }
  .donate-card, .activity-card { padding: 14px; }
  .bottom-inner { padding: 10px 12px; }
  .btn-bottom { padding: 10px 18px; }
}

/* Standalone donate button under meta */
.lone-donate {
  margin: 12px 0 0;
  width: 100%;
  background: #d8ff8b;
  color: #111827;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 6px 10px rgba(0,0,0,0.08);
}

/* ----- FIXAR BLOCO META PARA FICAR IGUAL AO ORIGINAL ----- */
.campaign-meta {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 12px 0 10px;
}

/* Primeira linha alinhada lado a lado */
.meta-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #333;
  flex-wrap: nowrap;
}

/* Pontinho separador */
.meta-dot {
  font-size: 18px;
  line-height: 0;
  margin: 0 4px;
  color: #222;
}

/* Created on embaixo */
.meta-created {
  margin-top: 0;
  font-size: 14px;
  color: #555;
}

/* Botão Donate now */
.btn-bottom.lone-donate {
  display: block;
  width: 100%;
  background: #d9ff8c; /* igual aos demais botões */
  border: none;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  color: #000;
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
}

/* MOBILE — quebra igual ao modelo original */
@media (max-width: 480px) {
  .meta-inline {
    flex-wrap: nowrap;
    gap: 4px;
    font-size: 13px;
  }

  .meta-created { font-size: 13px; margin-top: 0; }
}

