/*
 * Editorial profile wordmark for the home page.
 * This replaces the former blue canvas saber/fire effect with a quieter,
 * code-native treatment that keeps the title crisp and inexpensive.
 */

.home-dashboard .hd-profile-card--signature {
  position: relative;
  min-width: 0;
  border-color: rgba(218, 166, 91, .22) !important;
  background:
    linear-gradient(112deg, rgba(255, 244, 222, .045), transparent 36%),
    linear-gradient(180deg, #191919 0%, #121315 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 235, .045),
    0 10px 28px rgba(0, 0, 0, .2) !important;
}

.home-dashboard .hd-profile-card--signature .hd-profile-left,
.home-dashboard .hd-profile-card--signature .hd-profile-info,
.home-dashboard .hd-profile-card--signature .hd-service-name {
  min-width: 0;
}

.home-dashboard .hd-profile-card--signature .hd-profile-info {
  gap: 0;
}

.home-dashboard .hd-profile-card--signature .hd-service-name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  overflow: visible;
  line-height: 1;
}

.hd-brand-signature {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  gap: .075em;
  padding: 1px 2px 9px;
  overflow: hidden;
  white-space: nowrap;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.34rem, calc(1.16rem + .58vw), 1.72rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.035em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  filter: none;
}

.hd-brand-signature::before,
.hd-brand-signature::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 2px;
  pointer-events: none;
}

.hd-brand-signature::before {
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #efbd6d;
  transform: translateY(1.5px) rotate(45deg);
}

.hd-brand-signature::after {
  left: 9px;
  width: min(72%, 138px);
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 189, 109, .9), rgba(222, 132, 66, .38) 55%, transparent);
  transform-origin: left center;
  transition: width .28s ease, opacity .28s ease;
}

.hd-brand-signature__main,
.hd-brand-signature__suffix {
  display: block;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter .26s ease;
}

.hd-brand-signature__main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f7e7cb;
  background-image: linear-gradient(180deg, #fffdf7 10%, #f7ead4 54%, #dfc7a5 100%);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .26);
  filter: drop-shadow(0 0 3px rgba(255, 226, 177, .16));
}

.hd-brand-signature__suffix {
  flex: 0 0 auto;
  color: #eba456;
  background-image: linear-gradient(135deg, #ffd984 8%, #eeaa50 48%, #d9793d 100%);
  letter-spacing: -.015em;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .22);
  filter: drop-shadow(0 0 3.5px rgba(242, 164, 69, .2));
}

@keyframes hdFlameFlicker {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(-2deg);
    filter: drop-shadow(0 0 4px rgba(40, 225, 255, .16)) drop-shadow(0 0 8px rgba(0, 214, 255, .12));
  }
  25% {
    transform: translateY(-1px) scale(1.03) rotate(1deg);
    filter: drop-shadow(0 0 6px rgba(50, 235, 255, .18)) drop-shadow(0 0 12px rgba(0, 220, 255, .16));
  }
  50% {
    transform: translateY(-1.5px) scale(1.05) rotate(-1deg);
    filter: drop-shadow(0 0 7px rgba(92, 244, 255, .2)) drop-shadow(0 0 14px rgba(0, 230, 255, .18));
  }
  75% {
    transform: translateY(-.5px) scale(1.02) rotate(2deg);
    filter: drop-shadow(0 0 5px rgba(56, 232, 255, .18)) drop-shadow(0 0 10px rgba(0, 215, 255, .14));
  }
}

@keyframes hdFlameAura {
  0%, 100% {
    opacity: .42;
    transform: translate(-50%, -50%) scale(.92);
  }
  50% {
    opacity: .72;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.home-dashboard .hd-profile-card--signature .hd-verified {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  margin-left: 1px;
  line-height: 1;
  filter: none;
  text-shadow: none;
}

.home-dashboard .hd-profile-card--signature .hd-verified::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(68, 230, 255, .22) 0%, rgba(15, 122, 183, .14) 48%, rgba(0, 0, 0, 0) 72%);
  transform: translate(-50%, -50%);
  filter: blur(1.8px);
  pointer-events: none;
  animation: hdFlameAura 2.4s ease-in-out infinite;
}

.home-dashboard .hd-profile-card--signature .hd-verified__flame {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  transform-origin: center bottom;
  animation: hdFlameFlicker 1.8s ease-in-out infinite;
}

.home-dashboard .hd-profile-card--signature .hd-profile-date {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 6px;
  margin-top: 1px;
  padding: 3px 8px 3px 4px;
  border: 1px solid rgba(221, 176, 105, .13);
  border-radius: 999px;
  background: rgba(255, 246, 230, .035);
  color: #bcb0a0;
  font-family: "Glory", system-ui, sans-serif;
  font-size: .69rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .065em;
  line-height: 1;
  white-space: nowrap;
}

.hd-profile-date__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(232, 170, 84, .1);
  color: #d9a65c;
}

.home-dashboard .hd-profile-card--signature .hd-profile-date i {
  font-size: .58rem;
}

.home-dashboard .hd-profile-card--signature .hd-avatar {
  border-color: rgba(222, 167, 87, .62) !important;
  animation: none !important;
  box-shadow:
    0 0 0 3px rgba(218, 158, 77, .08),
    0 9px 22px rgba(0, 0, 0, .25) !important;
}

@media (hover: hover) and (pointer: fine) {
  .home-dashboard .hd-profile-card--signature:hover .hd-brand-signature::after {
    width: min(88%, 176px);
    opacity: 1;
  }

  .home-dashboard .hd-profile-card--signature:hover .hd-brand-signature__main {
    filter: drop-shadow(0 0 4.5px rgba(255, 226, 177, .24));
  }

  .home-dashboard .hd-profile-card--signature:hover .hd-brand-signature__suffix {
    filter: drop-shadow(0 0 5px rgba(242, 164, 69, .3));
  }
}

body.theme-light .home-dashboard .hd-profile-card--signature {
  border-color: rgba(161, 101, 37, .2) !important;
  background:
    linear-gradient(112deg, rgba(196, 125, 48, .055), transparent 38%),
    linear-gradient(180deg, #fffefa 0%, #f7f3eb 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 28px rgba(74, 48, 22, .09) !important;
}

body.theme-light .hd-brand-signature__main {
  color: #30271f;
  background-image: linear-gradient(180deg, #3a3027 0%, #221b16 100%);
  text-shadow: none;
  filter: drop-shadow(0 1px 1.5px rgba(105, 60, 22, .11));
}

body.theme-light .hd-brand-signature__suffix {
  color: #a45b16;
  background-image: linear-gradient(135deg, #bc731f 0%, #8d4116 100%);
  text-shadow: none;
  filter: drop-shadow(0 1px 1.5px rgba(145, 71, 17, .13));
}

body.theme-light .home-dashboard .hd-profile-card--signature .hd-verified::before {
  background: radial-gradient(circle, rgba(61, 212, 245, .2) 0%, rgba(26, 123, 176, .12) 48%, rgba(0, 0, 0, 0) 72%);
}

body.theme-light .home-dashboard .hd-profile-card--signature .hd-profile-date {
  border-color: rgba(137, 84, 33, .17);
  background: rgba(130, 79, 29, .045);
  color: #6f6253;
}

body.theme-light .hd-profile-date__icon {
  background: rgba(166, 98, 28, .1);
  color: #9b571c;
}

body.theme-light .home-dashboard .hd-profile-card--signature .hd-avatar {
  border-color: rgba(172, 105, 35, .5) !important;
  box-shadow:
    0 0 0 3px rgba(166, 98, 28, .07),
    0 8px 20px rgba(74, 48, 22, .13) !important;
}

@media (max-width: 700px) {
  .home-dashboard .hd-profile-card--signature {
    gap: 10px;
    padding: 14px 16px !important;
  }

  .home-dashboard .hd-profile-card--signature .hd-profile-left {
    gap: 12px;
    flex: 1 1 auto;
  }

  .home-dashboard .hd-profile-card--signature .hd-avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 13px !important;
  }

  .home-dashboard .hd-profile-card--signature .hd-avatar-img {
    border-radius: 10px !important;
  }

  .hd-brand-signature {
    font-size: clamp(1.16rem, 5.3vw, 1.38rem);
    padding-bottom: 8px;
  }

   .home-dashboard .hd-profile-card--signature .hd-service-name {
    gap: 6px;
    margin-bottom: 3px;
  }

  .home-dashboard .hd-profile-card--signature .hd-verified {
    width: 22px;
    height: 22px;
    margin-top: 0;
  }

  .home-dashboard .hd-profile-card--signature .hd-verified__flame {
    width: 16px;
    height: 16px;
  }

  .home-dashboard .hd-profile-card--signature .hd-profile-date {
    gap: 5px;
    padding: 2px 7px 2px 3px;
    font-size: .65rem;
    letter-spacing: .045em;
  }

  .hd-profile-date__icon {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 390px) {
  .home-dashboard .hd-profile-card--signature {
    padding-inline: 13px !important;
  }

  .home-dashboard .hd-profile-card--signature .hd-profile-left {
    gap: 10px;
  }

  .home-dashboard .hd-profile-card--signature .hd-avatar {
    width: 50px !important;
    height: 50px !important;
  }

  .hd-brand-signature {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-brand-signature::after {
    transition: none;
  }

  .hd-brand-signature__main,
  .hd-brand-signature__suffix {
    transition: none;
  }

  .home-dashboard .hd-profile-card--signature .hd-verified::before,
  .home-dashboard .hd-profile-card--signature .hd-verified__flame {
    animation: none;
  }
}

@media (forced-colors: active) {
  .hd-brand-signature__main,
  .hd-brand-signature__suffix {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    text-shadow: none;
    filter: none;
  }

  .hd-brand-signature::before,
  .hd-brand-signature::after {
    background: CanvasText;
  }
}
