/* ==========================================================================
   Yamkage Anime Social Network - Header & Footer Brand Identity
   ========================================================================== */

header a.brand.yf-brand,
footer.yf-site-footer .yf-footer-identity a.yf-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

header .yf-brand .yf-forge-icon {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  flex: 0 0 48px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45)) drop-shadow(0 0 2px rgba(6, 182, 212, 0.6)) !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease !important;
}

header a.brand.yf-brand:hover .yf-forge-icon {
  transform: scale(1.08) rotate(4deg) !important;
  filter: drop-shadow(0 0 16px rgba(236, 72, 153, 0.75)) drop-shadow(0 0 6px rgba(56, 189, 248, 0.8)) !important;
}

header .yf-brand .yf-forge-word,
footer .yf-brand .yf-forge-word {
  position: relative !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.03em !important;
}

header .yf-brand .yf-forge-word {
  font-size: 27px !important;
  padding: 0 !important;
}

header .yf-brand .yf-forge-word::after,
footer .yf-brand .yf-forge-word::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -4px !important;
  height: 2px !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6 55%, #ec4899) !important;
  opacity: 0.85 !important;
}

/* Light Theme Wordmark */
header:not(.ya-header-anime) .yf-brand .yf-forge-word > span:not(.ya-word-yam),
footer:not(.yf-site-footer) .yf-brand .yf-forge-word > span:not(.ya-word-yam) {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 900 !important;
}

header .yf-brand .yf-forge-word > b,
footer .yf-brand .yf-forge-word > b {
  font-weight: 900 !important;
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-left: 1px !important;
}

/* Dark Theme Wordmark */
html[data-theme="dark"] .yf-brand .yf-forge-word > span,
body.dark .yf-brand .yf-forge-word > span,
html.dark .yf-brand .yf-forge-word > span,
[data-theme="dark"] .yf-brand .yf-forge-word > span {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .yf-brand .yf-forge-word > b,
body.dark .yf-brand .yf-forge-word > b,
html.dark .yf-brand .yf-forge-word > b,
[data-theme="dark"] .yf-brand .yf-forge-word > b {
  background: linear-gradient(135deg, #f43f5e, #c084fc, #38bdf8) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

footer.yf-site-footer .yf-footer-identity .yf-forge-icon {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  flex: 0 0 42px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4)) !important;
}

footer.yf-site-footer .yf-footer-identity .yf-forge-word {
  font-size: 21px !important;
}

@media (max-width: 768px) {
  header .yf-brand .yf-forge-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex-basis: 38px !important;
  }
  header .yf-brand .yf-forge-word {
    font-size: 21px !important;
  }
}
