/* ================================================
   SINGLE CREATION - PAGE STYLES
   Dedicated CSS for the single-creation template
   ================================================ */

/* ================================================
   SPLIT-SCREEN HERO SECTION
   ================================================ */

/* Main Container - full width */
.creation-hero-section {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
}

/* ---- Content Side (Left) ---- */
.hero-content-side {
  z-index: 2;
}

.hero-content-inner {
  max-width: 600px;
  width: 100%;
}

/* Main Title */
.hero-main-title {
  font-family: NulShock, system-ui, sans-serif;
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  font-weight: 900;
  color: var(--fcolor);
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin-bottom: 1.8rem !important;
}

/* Meta Block */
.hero-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

/* Individual Meta Item */
.hero-meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hero-meta-label {
  font-size: 0.8rem;
  color: var(--tcolor);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  font-family: system-ui, -apple-system, sans-serif;
  white-space: nowrap;
}

.hero-meta-value {
  font-size: 1.15rem;
  color: var(--fcolor);
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Type Badge Button */
.hero-creation-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gradient);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: white;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 20px rgba(120, 96, 202, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-creation-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 28px rgba(120, 96, 202, 0.55);
}

.hero-creation-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-creation-icon {
  fill: white;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* ---- Image Side (Right) ---- */
.hero-image-side {
  width: 50%;
  z-index: 1; /* Below the text content */
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  transition: clip-path 0.4s ease, width 0.4s ease;
  /* GPU acceleration to smooth clip-path diagonal aliasing */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bgcolor) 0%, transparent 55%);
    pointer-events: none;
}


/* ================================================
   HERO ANIMATION EFFECTS (GSAP-powered)
   ================================================ */

/* ---- Initial hidden states (before GSAP animates) ---- */

/* Title letters: hidden until GSAP reveals them */
.hero-main-title .hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

/* Keep whitespace between words visible */
.hero-main-title .hero-word {
  display: inline-block;
  white-space: pre;
}

/* Meta block: hidden until GSAP reveals */
.creation-hero-section .hero-meta-block {
  opacity: 0;
  transform: translateX(-30px);
}

/* Individual meta items for stagger animation */
.creation-hero-section .hero-meta-item {
  opacity: 0;
  transform: translateX(-20px);
}

/* Badge: hidden until GSAP reveals */
.creation-hero-section .hero-creation-btn {
  opacity: 0;
  transform: scale(0.5);
}

/* ---- Animated Separator Line ---- */
.hero-separator {
  width: 100%;
  max-width: 120px;
  height: 2px;
  background: var(--gradient);
  border: none;
  margin: 1.5rem 0;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 2px;
}

/* ---- Hero Image Parallax ---- */
.hero-image-side .hero-image {
  transition: none; /* Disable CSS transitions, GSAP handles this */
}


/* ================================================
   RESPONSIVE - Large Desktop (>1200px)
   ================================================ */
@media (min-width: 1200px) {
  .creation-hero-section {
    min-height: 75vh;
  }

  .hero-image-side {
    width: 55%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

/* ================================================
   RESPONSIVE - Desktop (992px to 1199px)
   ================================================ */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-image-side {
    width: 55%;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

/* ================================================
   RESPONSIVE - Tablet (768px to 991px)
   ================================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
  .creation-hero-section {
    min-height: 50vh;
  }

  .hero-main-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  }

  .hero-image-side {
    width: 60%;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .hero-meta-label {
    font-size: 0.7rem;
  }

  .hero-meta-value {
    font-size: 1rem;
  }
}

/* ================================================
   RESPONSIVE - Mobile (<768px)
   ================================================ */
@media (max-width: 767.98px) {
  .creation-hero-section {
    min-height: auto;
    flex-direction: column;
  }

  .hero-image-side {
    position: relative !important;
    width: 100%;
    height: 250px;
    clip-path: none;
    order: -1;
  }

  .hero-image-side::after {
      display: none;
  }

  .hero-content-side {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .hero-content-inner {
    max-width: 100%;
  }

  .hero-main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 1.2rem;
  }

  .hero-meta-block {
    margin-bottom: 1.5rem;
  }

  .hero-meta-item {
    justify-content: center;
  }

  .hero-creation-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
  }

  .hero-separator {
    margin: 1rem auto;
    transform-origin: center center;
  }
}

/* ================================================
   RESPONSIVE - Small Mobile (<576px)
   ================================================ */
@media (max-width: 575.98px) {
  .hero-main-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .hero-content-side {
    padding: 1.5rem 1rem;
  }

  .hero-meta-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .hero-meta-value {
    font-size: 0.95rem;
  }

  .hero-image-side {
    height: 200px;
  }
}
