* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #ff4d8d;
  --pink-dark: #c73568;
  --pink-light: #ffe1eb;
  --green: #6f922f;
  --green-light: #a8c957;
  --text: #33262c;
  --muted: #666;
  --card: #ffffff;
  --shadow: 0 22px 55px rgba(199, 53, 104, 0.16);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #ffe1ec 0, transparent 35%),
    radial-gradient(circle at top right, #eaffd8 0, transparent 28%),
    linear-gradient(180deg, #fff7fa, #ffffff);
  font-family: Arial, sans-serif;
  color: var(--text);
  padding: 30px 15px;
}

/* VOLTAR */
.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(760px, 100%);
  margin: 0 auto 20px;
  color: var(--pink-dark);
  font-weight: bold;
  text-decoration: none;
  background: rgba(255,255,255,0.7);
  border: 1px solid #ffd0df;
  padding: 12px 16px;
  border-radius: 999px;
  width: fit-content;
  transition: 0.25s;
}

.back-link:hover {
  transform: translateX(-4px);
  background: white;
  box-shadow: 0 10px 24px rgba(199, 53, 104, 0.12);
}

/* CONTAINER */
.post-box {
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 28px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 195, 215, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 77, 141, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(168, 201, 87, 0.14), transparent 28%);
  pointer-events: none;
}

/* IMAGEM */
.post-image {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff0f6, #ffffff);
  border: 1px solid #ffd3e1;
  padding: 14px;
  position: relative;
  z-index: 1;
}

.post-image img {
  width: 100%;
  max-width: 430px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  transition: 0.35s ease;
}

.post-image:hover img {
  transform: scale(1.035);
}

/* TITULO */
.post-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  margin: 26px 0 14px;
  color: var(--pink-dark);
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.post-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), var(--green-light));
  border-radius: 999px;
  margin: 12px auto 0;
}

/* DESCRIÇÃO */
.post-desc {
  margin: 18px auto;
  max-width: 620px;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  white-space: pre-line;
  position: relative;
  z-index: 1;
}

/* INFO */
.post-info {
  background:
    linear-gradient(135deg, rgba(255, 228, 236, 0.95), rgba(255, 246, 249, 0.95));
  padding: 16px;
  border-radius: 18px;
  margin: 24px auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.9;
  border: 1px solid #ffd0df;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}

/* BOTÕES */
.post-download button,
.hidden-download {
  display: inline-block;
  padding: 15px 38px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #fff;
  font-weight: bold;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: 0.25s;
  box-shadow:
    0 14px 28px rgba(111, 146, 47, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}

.post-download button:hover,
.hidden-download:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.05);
}

.hidden-download {
  display: none !important;
  margin-top: 15px;
}

.hidden-download.show {
  display: inline-block !important;
}

/* CONTAGEM */
.countdown-text {
  margin-top: 16px;
  color: var(--pink-dark);
  font-weight: bold;
  position: relative;
  z-index: 1;
}

/* PROGRESSO */
.progress-box {
  width: min(390px, 100%);
  height: 13px;
  background: #ffe1eb;
  border-radius: 999px;
  margin: 16px auto 0;
  overflow: hidden;
  display: none;
  border: 1px solid #ffc7da;
  position: relative;
  z-index: 1;
}

.progress-box.show {
  display: block;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, var(--pink), #ff8db6);
  border-radius: 999px;
  transition: width 1s linear;
}

/* SOCIAL */
.post-social {
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.instagram-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4d8d, #ff9abc);
  color: white;
  border-radius: 50%;
  font-size: 25px;
  margin-top: 12px;
  transition: 0.25s;
  box-shadow: 0 12px 28px rgba(255, 77, 141, 0.32);
}

.instagram-icon:hover {
  transform: translateY(-4px) scale(1.08) rotate(4deg);
}

/* REGRAS */
.post-rules {
  margin: 24px auto 0;
  max-width: 610px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  background: rgba(255,255,255,0.6);
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed #ffc7da;
  position: relative;
  z-index: 1;
}

/* DIVISOR */
.divider {
  margin: 26px auto;
  height: 1px;
  max-width: 580px;
  background: linear-gradient(to right, transparent, #ffc2d7, transparent);
  position: relative;
  z-index: 1;
}

/* MOBILE */
@media (max-width: 600px) {
  body {
    padding: 18px 12px;
  }

  .post-box {
    padding: 18px;
    border-radius: 24px;
  }

  .post-image {
    padding: 10px;
    border-radius: 20px;
  }

  .post-title {
    font-size: 27px;
  }

  .post-desc {
    font-size: 15px;
  }

  .post-download button,
  .hidden-download {
    width: 100%;
    padding: 15px 20px;
  }
}
.post-layout {
  width: min(1180px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  align-items: start;
}

.related-box {
  background: rgba(255,255,255,0.9);
  border: 1px solid #ffd0df;
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(199, 53, 104, 0.13);
  position: sticky;
  top: 25px;
}

.related-box h3 {
  color: #c73568;
  margin-bottom: 18px;
  font-size: 21px;
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff3f7;
  margin-bottom: 14px;
  text-decoration: none;
  color: #33262c;
  transition: 0.25s;
  border: 1px solid #ffd6e4;
}

.related-item:hover {
  transform: translateX(5px);
  background: white;
  box-shadow: 0 10px 24px rgba(199, 53, 104, 0.12);
}

.related-item img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-item strong {
  font-size: 14px;
  margin-bottom: 6px;
}

.related-item span {
  color: #6f922f;
  font-weight: bold;
  font-size: 13px;
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .related-box {
    position: static;
  }
}
.follow-popup {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 120, 170, 0.25), transparent 35%),
    rgba(0, 0, 0, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.follow-popup.show {
  display: flex;
}

.follow-box {
  width: min(440px, 94%);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.9), transparent 34%),
    linear-gradient(180deg, #fff, #fff0f6);
  border: 1px solid rgba(255, 190, 215, 0.9);
  border-radius: 34px;
  padding: 36px 28px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 35px 90px rgba(0,0,0,0.35),
    0 20px 45px rgba(199, 53, 104, 0.25);
  animation: followPop 0.35s ease;
}

.follow-box::before {
  content: "💎";
  position: absolute;
  top: -26px;
  left: -18px;
  font-size: 90px;
  opacity: 0.12;
  transform: rotate(-18deg);
}

.follow-box::after {
  content: "📷";
  position: absolute;
  right: -12px;
  bottom: -18px;
  font-size: 82px;
  opacity: 0.12;
  transform: rotate(12deg);
}

@keyframes followPop {
  from {
    transform: translateY(20px) scale(0.86);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

#closeFollow {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #ffe1eb;
  color: #c73568;
  font-size: 25px;
  line-height: 32px;
  cursor: pointer;
  transition: 0.25s;
  z-index: 2;
}

#closeFollow:hover {
  background: #c73568;
  color: white;
  transform: rotate(90deg) scale(1.08);
}

.follow-box h2 {
  color: #c73568;
  font-size: 30px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.follow-box h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  background: linear-gradient(90deg, #ff4d8d, #9bbb58);
  border-radius: 999px;
  margin: 12px auto 0;
}

.follow-box p {
  color: #5c4a52;
  font-size: 16px;
  line-height: 1.7;
  margin: 18px auto 24px;
  max-width: 330px;
  position: relative;
  z-index: 2;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(320px, 100%);
  padding: 15px 28px;
  background: linear-gradient(135deg, #ff4d8d, #ff8bb3);
  border: none;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow:
    0 16px 32px rgba(255, 77, 141, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.45);
  position: relative;
  z-index: 2;
}

.follow-btn:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.05);
}

.follow-btn:active {
  transform: scale(0.98);
}

.follow-box a {
  text-decoration: none;
}
.progress-box {
  width: min(420px, 100%);
  height: 16px;
  background: rgba(255, 225, 235, 0.9);
  border-radius: 999px;
  margin: 18px auto 0;
  overflow: hidden;
  display: none;
  border: 1px solid #ffc7da;
  box-shadow:
    inset 0 2px 6px rgba(199, 53, 104, 0.12),
    0 10px 24px rgba(255, 77, 141, 0.12);
  position: relative;
}

.progress-box.show {
  display: block;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      #ff4d8d 0%,
      #ff7aa5 45%,
      #9bbb58 100%
    );
  box-shadow:
    0 0 14px rgba(255, 77, 141, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.55);
  transition: width 1s linear;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.45),
    transparent
  );
  animation: progressShine 1.4s infinite;
}

@keyframes progressShine {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}
.post-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-actions button {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff1f6;
  color: #c73568;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

.post-actions button:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 12px 26px rgba(199, 53, 104, 0.14);
}

.login-warning {
  margin-top: 10px;
  color: #c73568;
  font-weight: bold;
  text-align: center;
}

.hidden {
  display: none;
}

.login-status {
  margin: 14px auto;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff1f6;
  color: #c73568;
  font-weight: bold;
  font-size: 14px;
}

.login-status.logged {
  background: #eefbdc;
  color: #6f922f;
}