/* Minhas criações — estilo mangá sobre vídeo de fundo (CDN) */

.home-view-root {
  --creations-bg: none;
}

.home-view-root--creations {
  --home-feed-offset: calc(env(safe-area-inset-top, 0px) + 3.55rem + 1px);
  isolation: isolate;
  background: #09060a !important;
}

.home-view-root--creations::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--creations-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.creations-bg-video {
  display: none;
}

.home-view-root--creations > .creations-bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.creations-bg-video .page-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-view-root--creations::after {
  display: none !important;
}

.home-view-root--creations > .home-top-bar,
.home-view-root--creations > .home-feed-scroll,
.home-view-root--creations > .feed-float-generate {
  z-index: 1;
}

.home-view-root--creations > .home-top-bar {
  z-index: 30;
}

.home-view-root--creations > .feed-float-generate {
  z-index: 25;
}

.home-view-root--creations .home-feed-scroll--grid {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.home-view-root--creations .feed-page-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100%;
  width: 100%;
  background: transparent;
}

/* ---------- Aviso 48h (adesivo) ---------- */
.home-view-root--creations .home-creations-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.4rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 1rem auto 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--hentai-ink);
  border-radius: 999px;
  background: rgba(11, 5, 7, 0.88);
  box-shadow: 3px 3px 0 var(--hentai-pink);
  text-align: center;
}

.home-view-root--creations .home-creations-notice__icon {
  color: var(--hentai-pink);
  font-size: 1rem;
}

.home-view-root--creations .home-creations-notice__text {
  margin: 0;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

/* ---------- Estado vazio: painel de mangá ---------- */
.home-view-root--creations .home-creations-feed-list:not(.home-creations-feed-list--grid) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 1.5rem 1.25rem 2.5rem;
}

.home-creations-empty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 29rem;
  margin: auto;
  padding: 2.1rem 1.6rem 1.9rem;
  border: 2.5px solid var(--hentai-pink);
  background:
    var(--hentai-halftone),
    linear-gradient(165deg, rgba(30, 9, 19, 0.94), rgba(10, 5, 8, 0.95) 65%);
  box-shadow: 8px 8px 0 var(--hentai-orange);
  text-align: center;
}

.home-creations-empty__jp {
  position: absolute;
  top: -1.55rem;
  right: -1.1rem;
  color: transparent;
  font-family: var(--hentai-display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1;
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 3px 3px 0 rgba(255, 61, 139, 0.75);
  transform: rotate(8deg);
  pointer-events: none;
  user-select: none;
}

.home-creations-empty__brand {
  display: flex;
  justify-content: center;
  margin: 0 0 0.9rem;
  filter: drop-shadow(3px 3px 0 var(--hentai-ink));
  animation: hentai-float 3.2s ease-in-out infinite;
}

.home-creations-empty__brand .site-brand-logo__img,
.home-creations-empty__logo {
  display: block;
  width: auto;
  height: clamp(4.5rem, 14vw, 5.75rem);
  object-fit: contain;
}

.home-creations-empty__kicker.hentai-sticker {
  margin-bottom: 0.85rem;
}

.home-creations-empty__title {
  margin: 0;
  color: #fff;
  font-family: var(--hentai-display);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
  text-shadow:
    2px 2px 0 var(--hentai-ink),
    5px 5px 0 var(--hentai-pink);
}

.home-creations-empty__bubble {
  width: 100%;
  max-width: 22rem;
  margin-top: 1.5rem;
  box-sizing: border-box;
}

.home-creations-empty__subtitle {
  margin: 0;
  color: #1a0a10;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
}

.home-creations-empty__hint {
  margin: 0.3rem 0 0;
  color: #4a2433;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.home-creations-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  margin-top: 1.6rem;
  padding: 0 1.7rem;
  border: 2.5px solid var(--hentai-ink);
  border-radius: 0;
  background: linear-gradient(120deg, var(--hentai-orange), var(--hentai-pink));
  color: #fff;
  font-family: var(--hentai-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transform: skewX(-8deg);
  box-shadow: 5px 5px 0 var(--hentai-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.home-creations-empty__cta:hover {
  filter: brightness(1.08);
  transform: skewX(-8deg) translateY(-2px);
}

.home-creations-empty__cta:active {
  transform: skewX(-8deg) translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--hentai-ink);
}

.home-creations-empty__cta .material-symbols-outlined {
  font-size: 1.2rem;
  line-height: 1;
  font-variation-settings: "FILL" 1;
  animation: hentai-beat 1.6s ease-in-out infinite;
}

.home-creations-empty__panel,
.home-creations-empty__badge,
.home-creations-empty__sparkles,
.home-creations-empty__sparkle {
  display: none !important;
}

/* ---------- Grade de criações: quadros de mangá ---------- */
.home-view-root--creations .home-creations-feed-list {
  position: relative;
  z-index: 1;
}

.home-view-root--creations .home-creations-feed-list--grid {
  padding-top: 0.75rem;
  padding-bottom: 2.5rem;
}

.home-view-root--creations .home-creation-card {
  overflow: hidden;
  border: 2.5px solid var(--hentai-ink);
  border-radius: 0.35rem;
  background: rgba(11, 5, 7, 0.85);
  box-shadow:
    0 0 0 2px var(--hentai-pink),
    6px 6px 0 2px var(--hentai-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-view-root--creations .home-creation-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow:
    0 0 0 2px var(--hentai-orange),
    8px 8px 0 2px var(--hentai-pink);
}

.home-view-root--creations .home-creation-card:nth-child(even):hover {
  transform: translateY(-4px) rotate(1deg);
}

.home-view-root--creations .home-creation-card__media {
  background: rgba(10, 6, 14, 0.65);
}

.home-view-root--creations .home-creation-card__visual {
  background: transparent;
}

.home-view-root--creations .home-creation-card__footer {
  background: linear-gradient(180deg, transparent, rgba(11, 5, 7, 0.85));
}

.home-view-root--creations .home-creation-card__download {
  border: 2px solid var(--hentai-ink) !important;
  border-radius: 0 !important;
  background: var(--hentai-pink) !important;
  color: #fff !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--hentai-ink) !important;
}

.home-view-root--creations .home-creation-card__download:hover {
  background: var(--hentai-orange) !important;
}
