/* ================================================================
   ADVERTEKS BRAND LOGO STYLES
   Logo image + wordmark layout across all pages
   ================================================================ */

/* ─── Logo image icon ─────────────────────────────────────────── */
.logo-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  /* Subtle box-shadow for depth */
  box-shadow: 0 1px 8px rgba(6, 182, 212, 0.35);
}

/* Slightly larger in auth cards / login screens */
.auth-card .logo .logo-icon,
.auth-card > a .logo-icon {
  width: 34px;
  height: 34px;
  margin-right: 9px;
}

/* Footer logo icon */
.footer-logo {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 50%;
  object-fit: cover;
}

/* ─── Nav logo: flex alignment ────────────────────────────────── */
.logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none;
  gap: 0;
}

/* ─── Wordmark text ───────────────────────────────────────────── */
.logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  /* Blue/cyan gradient wordmark — matches new A logo */
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* App nav logo text slightly smaller */
.app-nav .logo span,
.nav-left .logo span {
  font-size: 1.1rem;
}

/* ─── Auth card logo: block centering ────────────────────────── */
.auth-card .logo,
.auth-card > a.logo {
  display: flex !important;
  justify-content: center;
  margin-bottom: 2rem;
}

/* ─── Footer brand logo ───────────────────────────────────────── */
.footer-brand .logo-text {
  display: flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  /* Keep gradient but set fill-color to inherit */
  -webkit-text-fill-color: initial;
  background: none;
}

/* ─── Favicon SVG link — fallback text color ─────────────────── */
.logo a:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Wordmark image (replaces text spans) ───────────────────── */
/*
 * The wordmark image is black-on-white.
 * On dark backgrounds (entire site is dark-themed):
 *   filter: invert(1)  → white text on black bg
 *   mix-blend-mode: screen  → black bg blends away, white text shows through
 * This gives a crisp white wordmark on any dark surface.
 *
 * Heights are sized to match the original 1.5rem/700-weight Space Grotesk
 * text that was replaced. The image has built-in whitespace so rendered
 * heights must be larger than the equivalent font-size to match visually.
 */
.wordmark-img {
  height: 52px;       /* navbar: match original 1.5rem bold text visual weight */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  /* Invert to white + screen to remove background */
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Footer wordmark — slightly smaller */
.wordmark-footer {
  height: 36px;       /* footer: match original 1.3rem text visual weight */
}

/* Auth card wordmark — centred, larger */
.auth-card .wordmark-img {
  height: 56px;
  margin: 0 auto;
}

/* App / dashboard nav — slightly compact */
.app-nav .wordmark-img,
.nav-left .wordmark-img {
  height: 44px;
}

/* DSP / SSP sidebar wordmark */
.dsp-sidebar-logo .wordmark-img,
.ssp-sidebar-logo .wordmark-img {
  height: 40px;
}

/* Inline header-logo span */
.header-logo .wordmark-img {
  height: 32px;
  vertical-align: middle;
}

/* On explicit light backgrounds, use multiply to remove white bg instead */
.wordmark-img-light {
  filter: none;
  mix-blend-mode: multiply;
}
