/*
 * Blog — Journal hero: gradient band, search bar, topic pills.
 * Scoped under body.log-blog-page.
 */

/* Blocksy's [data-vertical-spacing*="top"] attribute selector adds its own
   padding-top to .ct-container ahead of the hero (same fix applied on
   shop/category/delivery-proof/faq/about/contact pages). */
body.log-blog-page [class*="ct-container"][data-vertical-spacing] {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.log-blog-page .bl2-jr-hero {
  position: relative;
  background: linear-gradient(135deg, #050505 0%, #0d0b06 28%, #1a1306 50%, #241a07 72%, #050505 100%);
  overflow: hidden;
  padding: 44px 24px 30px;
  text-align: center;
}

.log-blog-page .bl2-jh-leaf {
  position: absolute;
  color: var(--sage-700);
  opacity: 0;
  animation: bl2LeafDrift 7.5s ease-in-out infinite;
  pointer-events: none;
}

.log-blog-page .bl2-jh-leaf .icon {
  width: 14px;
  height: 14px;
}

.log-blog-page .bl2-jh-leaf.sm .icon {
  width: 10px;
  height: 10px;
}

.log-blog-page .bl2-jh-leaf.lg .icon {
  width: 19px;
  height: 19px;
}

.log-blog-page .bl2-jh-leaf.alt {
  animation-name: bl2LeafDriftAlt;
  color: var(--plum-600);
}

@keyframes bl2LeafDrift {
  0% { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
  12% { opacity: .5; }
  50% { opacity: .32; transform: translateY(-90px) translateX(12px) rotate(120deg); }
  100% { opacity: 0; transform: translateY(-150px) translateX(20px) rotate(220deg); }
}

@keyframes bl2LeafDriftAlt {
  0% { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
  12% { opacity: .45; }
  50% { opacity: .28; transform: translateY(-100px) translateX(-14px) rotate(-110deg); }
  100% { opacity: 0; transform: translateY(-170px) translateX(-24px) rotate(-200deg); }
}

@media (max-width: 640px) {
  .log-blog-page .bl2-jh-leaf { display: none; }
}

.log-blog-page .bl2-jh-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.log-blog-page .bl2-jh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-glass-10);
  border: 1px solid var(--gold-glass-35);
  color: var(--gold-400);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: bl2KickerPulse 2.6s ease-in-out 1.2s infinite;
}

@keyframes bl2KickerPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glass-35); }
  50% { box-shadow: 0 0 0 7px rgba(212, 175, 55, 0); }
}

.log-blog-page .bl2-jr-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(28px, 4.6vw, 44px);
  letter-spacing: -.01em;
  margin-top: 12px;
  color: var(--white);
}

.log-blog-page .bl2-jr-hero h1 em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--sage-700) 30%, var(--plum-500) 50%, var(--sage-700) 70%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bl2ShimmerText 6s linear infinite;
}

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

.log-blog-page .bl2-jr-hero p.bl2-lede {
  margin: 8px auto 0;
  max-width: 420px;
  color: var(--white-glass-75);
  font-size: 13px;
  line-height: 1.6;
}

.log-blog-page .bl2-jh-search-shell {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 18px auto 0;
}

.log-blog-page .bl2-jh-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  border: 2px solid var(--plum-500);
  border-radius: var(--r-pill);
  padding: 5px 5px 5px 18px;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.log-blog-page .bl2-jh-search-box:focus-within {
  border-color: var(--plum-800);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .15);
}

.log-blog-page .bl2-jh-search-box .icon {
  width: 15px;
  height: 15px;
  color: var(--plum-700);
  flex-shrink: 0;
}

.log-blog-page .bl2-jh-search-box input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  padding: 9px 0;
  outline: none;
}

.log-blog-page .bl2-jh-search-box input::placeholder {
  color: var(--gray-600);
}

.log-blog-page .bl2-jh-search-box button {
  background: var(--ink-900);
  color: var(--paper);
  font-weight: 700;
  font-size: 11.5px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: background .25s var(--ease);
}

.log-blog-page .bl2-jh-search-box button:hover {
  background: var(--plum-700);
}

.log-blog-page .bl2-topic-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.log-blog-page .bl2-topic-row::-webkit-scrollbar {
  display: none;
}

.log-blog-page .bl2-topic-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(31, 58, 52, .14);
  color: var(--ink-900);
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--body);
  cursor: pointer;
  transition: all .25s var(--ease);
}

.log-blog-page .bl2-topic-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .9);
}

.log-blog-page .bl2-topic-pill.active {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}

.log-blog-page .bl2-topic-pill .icon {
  width: 12px;
  height: 12px;
  color: var(--sage-700);
}

.log-blog-page .bl2-topic-pill.active .icon {
  color: var(--sage-400);
}

.log-blog-page .bl2-topic-pill:disabled {
  opacity: .5;
  cursor: default;
  pointer-events: none;
}
