/* Custom Gen Z & Scrapbook Neo-Aesthetic CSS - Vietnamese Typography Harmonization */


:root {
  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
  --font-hand: 'Patrick Hand', cursive, sans-serif;
  
  --color-brand-primary: #881337;
  --color-brand-accent: #d97706;
  --color-brand-kraft: #d97706;
  --color-brand-dark: #1c1917;
  --color-brand-cream: #fdfbf7;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-brand-cream);
  color: #1c1917;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.font-hand {
  font-family: var(--font-hand);
}

/* Neo-Brutalism & Pop Shadows */
.shadow-neo {
  box-shadow: 4px 4px 0px #000000;
}

.shadow-neo-lg {
  box-shadow: 7px 7px 0px #000000;
}

.shadow-neo-xl {
  box-shadow: 10px 10px 0px #000000;
}

.shadow-neo-hover:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000;
}

.shadow-pop-purple {
  box-shadow: 5px 5px 0px #8b5cf6;
}

.shadow-pop-pink {
  box-shadow: 5px 5px 0px #f43f5e;
}

.shadow-pop-lime {
  box-shadow: 5px 5px 0px #84cc16;
}

/* Hologram Shimmer Animation */
.holo-gradient {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #a1c4fd 50%, #c2e9fb 75%, #e0c3fc 100%);
  background-size: 200% 200%;
  animation: holoShimmer 6s ease infinite;
}

@keyframes holoShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Washi Tape Effect */
.washi-tape-top {
  position: relative;
}

.washi-tape-top::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 110px;
  height: 24px;
  background: rgba(244, 114, 182, 0.75);
  border-left: 2px dashed rgba(255,255,255,0.7);
  border-right: 2px dashed rgba(255,255,255,0.7);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
}

.washi-tape-corner::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -10px;
  transform: rotate(35deg);
  width: 60px;
  height: 18px;
  background: rgba(163, 230, 53, 0.8);
  border-left: 1.5px dashed rgba(0,0,0,0.2);
  border-right: 1.5px dashed rgba(0,0,0,0.2);
  z-index: 10;
}

/* Paper Grid Backgrounds */
.bg-grid-pattern {
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}

.bg-kraft-texture {
  background-color: #f7ede2;
  background-image: radial-gradient(#d97706 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

/* Floating animation for stickers */
.floating-stk {
  animation: floatSlow 4s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(-3deg); }
  100% { transform: translateY(-12px) rotate(4deg); }
}

.floating-stk-reverse {
  animation: floatSlowReverse 5s ease-in-out infinite alternate;
}

@keyframes floatSlowReverse {
  0% { transform: translateY(0px) rotate(5deg); }
  100% { transform: translateY(-15px) rotate(-4deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

/* 3D Canvas Container */
#threejs-container {
  width: 100%;
  height: 100%;
  position: relative;
  touch-action: none;
}

/* Toast styling */
.toast-badge {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-badge.show {
  transform: translateY(0);
  opacity: 1;
}
/* Long-form handbook content: Tailwind CDN does not include the typography plugin. */
.seo-article-body h2 {
  margin: 2rem 0 .75rem;
  color: #1c1917;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  line-height: 1.25;
}

.seo-article-body h3 {
  margin: 1.5rem 0 .5rem;
  color: #881337;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.seo-article-body p,
.seo-article-body ul,
.seo-article-body ol,
.seo-article-body table { margin: .85rem 0; }

.seo-article-body ul,
.seo-article-body ol { padding-left: 1.4rem; }
.seo-article-body ul { list-style: disc; }
.seo-article-body ol { list-style: decimal; }
.seo-article-body li { margin: .45rem 0; padding-left: .2rem; }

.seo-article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 2px solid #1c1917;
  border-radius: 1rem;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.seo-article-body th,
.seo-article-body td {
  min-width: 10rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid #d6d3d1;
  text-align: left;
  vertical-align: top;
}

.seo-article-body th { background: #fde68a; color: #1c1917; font-weight: 800; }
.seo-article-body tr:last-child td { border-bottom: 0; }

.article-zoomable { cursor: zoom-in; }
.article-image-trigger:focus-visible,
.article-zoomable:focus-visible { outline: 4px solid #fbbf24; outline-offset: 3px; }
body.lightbox-open { overflow: hidden; }

.article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 10, 9, .94);
  backdrop-filter: blur(6px);
}

.article-lightbox.is-open { display: flex; }
.article-lightbox img {
  max-width: min(96vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 2px solid #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.article-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #881337;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.article-lightbox-caption {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  max-width: min(90vw, 900px);
  transform: translateX(-50%);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}


/* Mobile responsive safeguards */
@media (max-width: 639px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  video,
  svg {
    max-width: 100%;
  }


  .hero-content {
    padding-inline: 2.5rem;
  }

  .hero-title {
    width: 100%;
    max-width: 18rem;
    margin-inline: auto;
    font-size: 1.125rem !important;
    line-height: 1.15 !important;
    text-wrap: balance;
  }

  .hero-title .whitespace-nowrap,
  .hero-title > span {
    white-space: normal !important;
  }

  .hero-brand-pill {
    max-width: 15.5rem;
    margin-inline: auto;
    padding: .5rem .8rem !important;
    font-size: .625rem !important;
    line-height: 1.2;
    letter-spacing: .04em;
    text-align: center;
  }

  .hero-primary-cta,
  .hero-actions > a {
    width: min(100%, 15rem);
    min-height: 3.25rem;
    padding: .75rem 1rem !important;
    font-size: .8125rem !important;
    line-height: 1.2;
    justify-content: center;
  }

  .hero-nav {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: .75rem;
    font-size: .875rem !important;
  }

  .carousel-dot-btn {
    height: .625rem;
  }

  .carousel-container [class*="bottom-4"][class*="left-1/2"] {
    padding: .35rem .7rem;
    gap: .5rem;
  }

  .carousel-container .shadow-neo-xl,
  .shadow-neo-xl {
    box-shadow: 6px 6px 0 #000;
  }

  .studio-canvas-scroll {
    scroll-padding-inline: .5rem;
    -webkit-overflow-scrolling: touch;
  }

  .studio-fabric-wrapper {
    margin-inline: 0;
  }

  .seo-article-body {
    overflow-wrap: anywhere;
  }
}
