/* TOONHUB Hero - shared styles (frontend + admin preview) */

.toonhub-hero-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  transition: background-color 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.toonhub-hero-outer.is-fullscreen .toonhub-hero-inner {
  height: 100vh;
}

.toonhub-hero-inner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Grain overlay */
.toonhub-hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.4;
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* Giant ghost text */
.toonhub-hero-ghost {
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  font-family: 'Anton', sans-serif;
  font-size: clamp(90px, 28vw, 380px);
  font-weight: 900;
  color: #ffffff;
  opacity: 1;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Brand label */
.toonhub-hero-brand {
  position: absolute;
  top: 24px;
  left: 16px;
  z-index: 60;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
  letter-spacing: 0.18em;
}
@media (min-width: 640px) {
  .toonhub-hero-brand { left: 32px; }
}

/* Carousel */
.toonhub-hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.toonhub-hero-item {
  position: absolute;
  aspect-ratio: 0.6 / 1;
  transition:
    transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 650ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
    left 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity;
}

.toonhub-hero-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* Roles: mobile-first, desktop overridden via media query */
.toonhub-hero-item.role-center {
  left: 50%;
  bottom: 22%;
  height: 60%;
  transform: translateX(-50%) scale(1.25);
  filter: blur(0px);
  opacity: 1;
  z-index: 20;
}
.toonhub-hero-item.role-left {
  left: 20%;
  bottom: 32%;
  height: 16%;
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
  z-index: 10;
}
.toonhub-hero-item.role-right {
  left: 80%;
  bottom: 32%;
  height: 16%;
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
  z-index: 10;
}
.toonhub-hero-item.role-back {
  left: 50%;
  bottom: 32%;
  height: 13%;
  transform: translateX(-50%) scale(1);
  filter: blur(4px);
  opacity: 1;
  z-index: 5;
}

@media (min-width: 640px) {
  .toonhub-hero-item.role-center {
    bottom: 0;
    height: 92%;
    transform: translateX(-50%) scale(1.68);
  }
  .toonhub-hero-item.role-left {
    left: 30%;
    bottom: 12%;
    height: 28%;
  }
  .toonhub-hero-item.role-right {
    left: 70%;
    bottom: 12%;
    height: 28%;
  }
  .toonhub-hero-item.role-back {
    bottom: 12%;
    height: 22%;
  }
}

/* Bottom-left text + nav buttons */
.toonhub-hero-bottom-left {
  position: absolute;
  bottom: 24px;
  left: 16px;
  z-index: 60;
  max-width: 320px;
}
@media (min-width: 640px) {
  .toonhub-hero-bottom-left { bottom: 80px; left: 96px; }
}

.toonhub-hero-label {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  opacity: 0.95;
}
@media (min-width: 640px) {
  .toonhub-hero-label { margin-bottom: 12px; font-size: 22px; }
}

.toonhub-hero-copy {
  display: none;
  margin: 0 0 20px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.85;
}
@media (min-width: 640px) {
  .toonhub-hero-copy { display: block; }
}

.toonhub-hero-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toonhub-hero-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform 150ms, background-color 150ms;
  padding: 0;
}
.toonhub-hero-btn:hover {
  transform: scale(1.08);
  background-color: rgba(255, 255, 255, 0.12);
}
@media (min-width: 640px) {
  .toonhub-hero-btn { width: 64px; height: 64px; }
}
.toonhub-hero-btn svg { stroke: #ffffff; width: 26px; height: 26px; }

/* Bottom-right link */
.toonhub-hero-discover {
  position: absolute;
  bottom: 24px;
  right: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 4vw, 56px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
@media (min-width: 640px) {
  .toonhub-hero-discover { bottom: 80px; right: 40px; }
}
.toonhub-hero-discover span {
  opacity: 0.95;
  transition: opacity 200ms;
}
.toonhub-hero-discover:hover span {
  opacity: 1;
}
.toonhub-hero-discover svg {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  stroke: #ffffff;
}
@media (min-width: 640px) {
  .toonhub-hero-discover svg { width: 32px; height: 32px; }
}
