/* BLFP Documentation Custom Styles */
:root {
  --blfp-primary: #5F7EF0;
  --blfp-primary-light: #8B7BF0;
  --blfp-gradient: linear-gradient(135deg, #5F7EF0 0%, #8B7BF0 100%);
}

/* Hero Logo - correct selector for VitePress hero image */
.VPHero.has-image .image-src {
  width: 128px !important;
  height: 128px !important;
  max-width: 128px !important;
  max-height: 128px !important;
  filter: drop-shadow(0 8px 24px rgba(95,126,240,0.35)) !important;
}
@media (min-width: 640px) {
  .VPHero.has-image .image-src { width: 160px !important; height: 160px !important; max-width: 160px !important; max-height: 160px !important; }
}
@media (min-width: 960px) {
  .VPHero.has-image .image-src { width: 192px !important; height: 192px !important; max-width: 192px !important; max-height: 192px !important; }
}

/* Hero title gradient */
.VPHero .name { background: var(--blfp-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.VPHero .tagline { font-size: 1.25rem !important; color: var(--vp-c-text-2); }

/* Feature cards - work WITH VitePress grid, not against it */
.VPFeature { border-radius: 12px; border: 1px solid var(--vp-c-border); transition: all 0.25s ease; }
.VPFeature:hover { transform: translateY(-3px); border-color: var(--blfp-primary); box-shadow: 0 8px 24px rgba(95,126,240,0.15); }
.dark .VPFeature { background: rgba(255,255,255,0.03); }
.dark .VPFeature:hover { background: rgba(95,126,240,0.08); }
.VPFeature .icon { border-radius: 10px; background: var(--blfp-primary) !important; color: white !important; width: 48px !important; height: 48px !important; font-size: 22px !important; }

/* Buttons */
.VPButton.brand { background: var(--blfp-gradient) !important; border: none !important; border-radius: 8px !important; }
.VPButton.brand:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(95,126,240,0.4); }
.VPButton.alt { border-radius: 8px; }

/* Tables */
.table-wrapper table th { background: var(--blfp-primary) !important; color: white; }

/* Callouts */
.custom-block.tip { border-left-color: var(--blfp-primary); background: rgba(95,126,240,0.08); }
.custom-block.warning { border-left-color: #f6c348; background: rgba(246,195,72,0.08); }

/* Sidebar */
.VPSidebarItem.is-active > .item > .link .text { color: var(--blfp-primary) !important; font-weight: 600; }

/* Footer */
.VPFooter { background: var(--vp-c-bg-soft); border-top: 1px solid var(--vp-c-border); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Responsive */
@media (max-width: 768px) {
  .VPHero.has-image .image-src { width: 96px !important; height: 96px !important; max-width: 96px !important; max-height: 96px !important; }
}
