/* ============================================================================
   Self-contained styles for SideMenu.razor.
   Loaded standalone on the homepage (StaticHome) which does NOT load app.css.
   The app pages get the same rules from app.css. Keep the .s4-drawer / .s4-sidenav
   blocks here in sync with app.css.
   ========================================================================== */
:root {
  --s4-pink: #d2447b;
  --s4-pink-deep: #a81e57;
  --s4-ink: #1a1417;
  --s4-gold: #b8995f;
  --s4-line: rgba(26,20,23,0.08);
  --s4-ease: cubic-bezier(.22,.61,.36,1);
}

/* Hamburger button — self-sufficient (the homepage header is .site-header, not
   .header, so the app-page .header .menu-toggler rule does not apply here). */
.s4-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; height: 44px; border-radius: 13px; font-size: 18px;
  border: 1px solid var(--s4-line); background: #ffffff; color: var(--s4-ink);
  box-shadow: 0 1px 4px -2px rgba(26,20,23,0.12); cursor: pointer; text-decoration: none;
  transition: transform .22s var(--s4-ease), color .22s var(--s4-ease), border-color .22s var(--s4-ease);
}
.s4-menu-btn:hover { color: var(--s4-pink-deep); border-color: rgba(210,68,123,0.35); }
.s4-menu-btn:active { transform: scale(0.94); }
/* Homepage masthead: the hamburger is a mobile-only control (mirrors the old
   .nav-toggle). The inline nav shows from 720px up. */
.masthead .s4-menu-btn { display: none; }
@media (max-width: 720px) {
  .masthead .s4-menu-btn { display: inline-flex; margin-left: auto; }
  .masthead .nav { display: none; }
}

/* Backdrop + sliding drawer */
.s4-drawer-backdrop {
  position: fixed; inset: 0; z-index: 1090; background: rgba(20,15,18,0.5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--s4-ease), visibility .3s var(--s4-ease);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.s4-drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.s4-drawer {
  position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh; width: 300px; max-width: 85vw; z-index: 1095;
  background: #ffffff; box-shadow: 18px 0 50px -28px rgba(26,20,23,0.5); border-radius: 0 22px 22px 0;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(-100%); transition: transform .32s var(--s4-ease); will-change: transform;
  padding-top: env(safe-area-inset-top);
}
.s4-drawer.is-open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .s4-drawer, .s4-drawer-backdrop { transition: none; } }

/* Branded header band with the logo */
.s4-drawer-head { position: relative; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--s4-line); padding: 1.15rem 1.1rem 1rem;
  background: linear-gradient(180deg, rgba(210,68,123,0.07) 0%, rgba(210,68,123,0) 100%); }
.s4-drawer-head .author-box { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.s4-drawer-head .author-box .dz-media img { width: 42px; height: 42px; }
.s4-drawer-head .header-logo img { width: 150px; max-width: 100%; }
.s4-drawer-head .dz-info .name { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--s4-ink); margin: 0; font-size: 1rem; }
.s4-drawer-head .dz-info span { color: var(--s4-pink-deep); font-size: 0.78rem; font-weight: 600; }
.s4-drawer-close { flex: none; width: 38px; height: 38px; border: 0; border-radius: 11px; background: rgba(26,20,23,0.05);
  color: var(--s4-ink); display: grid; place-items: center; font-size: 1.05rem; cursor: pointer;
  transition: background .2s var(--s4-ease), color .2s var(--s4-ease); }
.s4-drawer-close:hover { background: rgba(210,68,123,0.12); color: var(--s4-pink-deep); }
.s4-drawer-body { padding: 0.55rem 0.7rem 0.8rem; display: flex; flex-direction: column; flex: 1; }

/* Nav rows — kept 1:1 in sync with app.css so the menu looks identical
   on public pages and internal pages. */
.s4-sidenav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.s4-sidenav li { margin: 0; }
.s4-sidenav .nav-link { position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 0.42rem 0.6rem; border-radius: 12px;
  color: var(--s4-ink); font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 0.94rem; text-decoration: none;
  transition: background-color .2s var(--s4-ease), color .2s var(--s4-ease), transform .2s var(--s4-ease); }
.s4-sidenav .nav-link:hover, .s4-sidenav .nav-link.active { background: rgba(210,68,123,0.08); color: var(--s4-pink-deep); }
.s4-sidenav .nav-link:active { transform: scale(0.98); }
.s4-sidenav .nav-link::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--s4-pink), var(--s4-pink-deep));
  transition: transform .2s var(--s4-ease); }
.s4-sidenav .nav-link:hover::before, .s4-sidenav .nav-link.active::before { transform: translateY(-50%) scaleY(1); }
.s4-sidenav .nav-link .dz-icon { width: 33px !important; height: 33px; flex: none; border-radius: 10px; background: rgba(210,68,123,0.1);
  color: var(--s4-pink-deep); display: grid; place-items: center; transition: background .2s var(--s4-ease), color .2s var(--s4-ease); }
.s4-sidenav .nav-link:hover .dz-icon, .s4-sidenav .nav-link.active .dz-icon {
  background: linear-gradient(135deg, var(--s4-pink), var(--s4-pink-deep)); color: #fff; }
.s4-sidenav .nav-link .dz-icon i { font-size: 1rem; }
.s4-drawer .sidebar-bottom { margin-top: auto; padding-top: 0.9rem; color: #b1a7ad; }
.s4-drawer .sidebar-bottom .name { color: var(--s4-ink); font-family: "Montserrat", sans-serif; }

/* === Pure-text logo (Logo.razor) — wordmark in the site font + original heart === */
.s4-logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; line-height: 1; font-size: 16px; }
.s4-logo:hover { text-decoration: none; }
.s4-logo .s4-logo-heart { height: 2.7em; width: auto; display: block; flex: none; }
.s4-logo .s4-logo-tx { display: flex; flex-direction: column; gap: .16em; min-width: 0; }
.s4-logo .s4-logo-word { font-family: "Montserrat", sans-serif; font-weight: 300; letter-spacing: .1em; font-size: 1.6em; color: var(--s4-ink, #1a1417); line-height: .95; white-space: nowrap; }
.s4-logo .s4-logo-tag { font-family: "Montserrat", sans-serif; font-weight: 500; letter-spacing: .015em; font-size: .6em; color: #ec3f8f; line-height: 1; white-space: nowrap; }
.s4-logo--light .s4-logo-word { color: #fff; }
.s4-logo--header { font-size: 11px; gap: .4rem; }
.s4-logo--drawer { font-size: 13px; }
.s4-logo--auth { display: flex; justify-content: center; font-size: 17px; margin: 0 auto 1.3rem; }
.masthead .s4-logo { font-size: 13px; }
.site-footer .s4-logo { font-size: 14px; }
