/* ===== AnimeThemes (ThemeForest-style) ===== */

:root { --env: #82b440; --envd: #6f9c37; }

html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }
::selection { background: var(--env); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1f5; }
::-webkit-scrollbar-thumb { background: #c3ccd6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a6b2bf; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== Hero slider (light band) ===== */
#hero-slider { position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  padding: inherit;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.6s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}
/* Slides live inside the padded box; align them to that box */
#hero-slider .hero-slide {
  left: 0; right: 0; top: 0; bottom: 0;
  padding: 1.5rem;
}
@media (min-width: 640px) { #hero-slider .hero-slide { padding: 2.5rem; } }

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.6s ease, visibility 0s;
  pointer-events: auto;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  border-radius: 9999px;
  background: #fff;
  color: #1f2733;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  z-index: 10;
}
.hero-nav:hover { background: var(--env); color: #fff; transform: translateY(-50%) scale(1.06); }

.hero-dot {
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}
.hero-dot.is-active { width: 26px; background: var(--env); }

/* ===== Utilities ===== */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Cards ===== */
.tf-card { transition: box-shadow .2s ease, transform .2s ease; }
.tf-card:hover { transform: translateY(-2px); }

/* ===== Prose for product descriptions ===== */
.prose-store p { margin: 0 0 1rem; line-height: 1.75; font-size: 0.95rem; }
.prose-store h3 { color: #1f2733; font-weight: 700; font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.prose-store strong { color: #1f2733; }
.prose-store em { color: #475569; font-style: italic; }
.prose-store code { background: #eef2f6; color: #6f9c37; padding: .1rem .4rem; border-radius: 6px; font-size: .85em; }
.prose-store > :first-child { margin-top: 0; }

/* ===== Mobile menu ===== */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
#mobile-menu.open { max-height: 520px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { transition: opacity .3s ease; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* --- Ad slots --- */
.ad-slot iframe { display:block; margin:0 auto; }
.ad-slot { max-width:100%; }
