@import './tune-theme.css';

/* Logo tokens from DesignBot assets/tokens.css (2026-11-14), sampled from the solid ring and glyph. */
:root {
  --tune-logo-grad-start: #EC74F3;
  --tune-logo-grad-mid: #9955FA;
  --tune-logo-grad-end: #1AD0FE;
  --tune-logo-gradient: linear-gradient(135deg, var(--tune-logo-grad-start) 0%, var(--tune-logo-grad-mid) 50%, var(--tune-logo-grad-end) 100%);
  --tune-logo-wordmark-on-dark: #FFFFFF;
  --tune-logo-wordmark-on-light: #0B0B10;
  --tune-logo-bg-dark: #0B0B10;
}

/* Shared by the Solid app and Django pages. The full logo is DesignBot's vector lockup
   (tune-lockup.svg = logo-lockup-dark.svg, tune-lockup-light.svg = logo-lockup-light.svg);
   the compact mark is logo-mark.svg (tune-mark.svg), used as a mask so a placement can flatten it. */
.tune-brand {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
}

.tune-brand > .tune-brand__lockup {
  /* Same footprint the mark + gap + wordmark used, so placements keep their geometry. The lockup
     scales to fit (aspect 1212.8 x 213) and sits on the left edge. */
  background-image: var(--tune-logo-lockup-asset, url('./tune-lockup.svg'));
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  flex-shrink: 0;
  height: var(--tune-logo-mark-size, 28px);
  width: calc(var(--tune-logo-mark-size, 28px) + var(--tune-logo-gap, 8px) + var(--tune-logo-wordmark-width, 120px));
}

.tune-brand--on-light > .tune-brand__lockup {
  background-image: var(--tune-logo-lockup-asset, url('./tune-lockup-light.svg'));
}

.tune-brand > .tune-brand__mark {
  /* Full-colour mark by default. Setting --tune-logo-mark-color (e.g. on a filled avatar)
     switches the mark to a single flat colour. */
  background: var(--tune-logo-mark-color, var(--tune-logo-mark-fill, var(--tune-logo-gradient, linear-gradient(135deg, #EC74F3 0%, #9955FA 50%, #1AD0FE 100%))));
  display: block;
  flex-shrink: 0;
  height: var(--tune-logo-mark-size, 28px);
  width: var(--tune-logo-mark-size, 28px);
  -webkit-mask-image: var(--tune-logo-mark-asset, url('./tune-mark.svg'));
  mask-image: var(--tune-logo-mark-asset, url('./tune-mark.svg'));
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Public-page variants preserve each placement's scale, not a separate logo. */
.tune-brand--display {
  --tune-logo-wordmark-width: 178px;
  --tune-logo-mark-size: 44px;
  --tune-logo-gap: 12px;
}

.tune-brand--landing {
  --tune-logo-wordmark-width: 142px;
  --tune-logo-mark-size: 36px;
  --tune-logo-gap: 10px;
}

@media (max-width: 479px) {
  .tune-brand--landing {
    --tune-logo-wordmark-width: 100px;
    --tune-logo-mark-size: 28px;
    --tune-logo-gap: 8px;
  }
}
