/* Layout da campanha */
.campaign-page {
  margin: 0;
  min-height: 100vh;
}

.campaign-page .project-show--banner {
  position: relative;
  width: 100%;
  background: #111;
}

.y-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.y-video__poster {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  position: relative;
  background: #000;
}

.y-video__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.y-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(236, 24, 70, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.y-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.y-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.banner-cover {
  display: none;
}

.campaign-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

@media (min-width: 992px) {
  .campaign-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

.campaign-sidebar {
  position: sticky;
  top: 1rem;
}

.sidebar-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
}

.badge-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ec1846;
  margin-bottom: 0.75rem;
}

.pledged-label {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  color: #333;
}

.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #ec1846, #ff5c7a);
  border-radius: 999px;
}

.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.sidebar-stats strong {
  display: block;
  font-size: 1.1rem;
  color: #222;
}

.sidebar-stats span {
  font-size: 0.75rem;
  color: #777;
}

.btn-apoio {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 2px solid #ec1846;
  color: #ec1846;
  background: #fff;
  transition: 0.2s ease;
}

.btn-apoio:hover {
  background: #ec1846;
  color: #fff;
}

.btn-apoio--primary {
  background: #ec1846;
  color: #fff;
  width: 100%;
}

.btn-apoio--primary:hover {
  background: #c9133c;
  border-color: #c9133c;
}

.sidebar-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.45;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.25rem;
}

.tabs-nav .tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  font-size: 0.9rem;
}

.tabs-nav .tab.active {
  color: #ec1846;
  border-bottom-color: #ec1846;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.campaign-rich-text {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  line-height: 1.7;
  color: #333;
}

.campaign-rich-text h2 {
  color: #ec1846;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.campaign-rich-text h2:first-child { margin-top: 0; }

.campaign-rich-text a { color: #ec1846; }

.rewards-grid {
  display: grid;
  gap: 1rem;
}

.reward-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem;
}

.reward-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.reward-card__head h3 {
  margin: 0;
  font-size: 1rem;
  color: #222;
}

.reward-card__value {
  margin: 0;
  font-weight: 700;
  color: #ec1846;
  white-space: nowrap;
}

.reward-card__desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.reward-card .btn-apoio {
  display: inline-block;
}

.goals-list {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.25rem 2rem;
  margin: 0;
  line-height: 1.6;
}

.goals-list li { margin-bottom: 0.75rem; }

.author-box {
  display: flex;
  gap: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box h3 {
  margin: 0 0 0.5rem;
  color: #222;
}

.author-box p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ——— Responsivo ——— */
@media (max-width: 991px) {
  .campaign-sidebar {
    position: static;
    order: -1;
  }

  .campaign-layout {
    padding: 0 1rem 2rem;
  }
}

@media (max-width: 767px) {
  .tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-bottom: 2px;
  }

  .tabs-nav::-webkit-scrollbar { display: none; }

  .tabs-nav .tab {
    flex-shrink: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .campaign-rich-text {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .campaign-rich-text h2 {
    font-size: 1.05rem;
  }

  .reward-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .reward-card__value {
    white-space: normal;
  }

  .reward-card {
    padding: 1rem;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }

  .author-avatar {
    width: 88px;
    height: 88px;
  }

  .sidebar-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: left;
  }

  .sidebar-stats > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .sidebar-stats > div:last-child {
    border-bottom: 0;
  }

  .sidebar-stats strong,
  .sidebar-stats span {
    display: inline;
    font-size: 0.9rem;
  }

  .sidebar-card {
    padding: 1rem;
  }

  .y-video__play {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }

  .y-video__play::after {
    border-width: 9px 0 9px 15px;
  }
}

@media (max-width: 380px) {
  .btn-apoio {
    font-size: 0.8rem;
    padding: 0.75rem 0.85rem;
  }

  .pledged-label {
    font-size: 0.88rem;
  }
}

.btn-apoio--secondary {
  display: inline-block;
  width: 100%;
  text-align: center;
}

@media (min-width: 480px) {
  .btn-apoio--secondary {
    width: auto;
    min-width: 200px;
  }
}
