/* 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;
}

.sidebar-rewards {
  margin-top: 1.25rem;
}

.sidebar-rewards__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #222;
}

.sidebar-rewards__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.sidebar-reward-card .reward-card__head h3 {
  font-size: 0.92rem;
}

.sidebar-reward-card .reward-card__value {
  font-size: 0.9rem;
}

.sidebar-reward-card .reward-card__desc {
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-reward-card .btn-apoio {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.7rem 0.85rem;
}

.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;
  }
}

.reward-card--mecenas {
  border-color: #f3c4cf;
  background: linear-gradient(180deg, #fff 0%, #fff8fa 100%);
}

.reward-card--mecenas .reward-card__head h3 {
  color: #b8123d;
}

.reward-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.reward-card__actions .btn-apoio {
  width: 100%;
  text-align: center;
}

.reward-card__details {
  cursor: pointer;
  font: inherit;
}

.sidebar-reward-card.reward-card--mecenas .reward-card__desc {
  -webkit-line-clamp: 3;
}

.reward-card--has-modal .reward-card__desc {
  cursor: pointer;
}

.reward-card--has-modal .reward-card__desc:hover {
  color: #b8123d;
}

.reward-modal[hidden] {
  display: none;
}

.reward-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.reward-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.72);
}

.reward-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.reward-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
}

.reward-modal__badge {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ec1846;
}

.reward-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #222;
}

.reward-modal__value {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ec1846;
}

.reward-modal__highlight {
  margin-bottom: 1.15rem;
  padding: 1rem 1.05rem;
  border-left: 4px solid #ec1846;
  border-radius: 8px;
  background: #fff5f7;
}

.reward-modal__highlight p {
  margin: 0;
  color: #333;
  line-height: 1.65;
  font-size: 0.98rem;
}

.reward-modal__highlight p + p {
  margin-top: 0.85rem;
  font-weight: 500;
}

.reward-modal__artist {
  margin-bottom: 1.15rem;
}

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

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

.reward-modal__artist p + p {
  margin-top: 0.35rem;
}

.reward-modal__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.reward-modal__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.95rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.reward-modal__link:hover {
  background: #f3f3f3;
  border-color: #ccc;
}

.reward-modal__link--whatsapp {
  border-color: #b9e2c5;
  background: #f3fbf5;
  color: #1f6b36;
}

.reward-modal__cta {
  width: 100%;
  text-align: center;
}

@media (max-width: 480px) {
  .reward-modal__dialog {
    padding: 1.25rem 1rem 1rem;
  }

  .reward-modal__title {
    font-size: 1.15rem;
    padding-right: 1.5rem;
  }
}
