/* Copyright 2026 Renofy Ltd. All rights reserved. */
/* ===== HEADER VERIFICATION CTA ===== */
/* Compact warning-tinted pill that sits next to the avatar in the app header. */
/* Replaces the wall-of-yellow full-width verification_banners. RENO-1002 v3.  */

/* Dimensions and border-radius are matched to the adjacent avatar / menu
   button on each breakpoint so the CTA visually belongs in the header chrome. */
.verification-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Desktop default — matches .avatar-extra-small (40px) and the desktop
     .header__menu-button (40px, var(--radius-xl)). */
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-xl);
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border: 1px solid var(--color-warning-border);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast);
}

/* Focus outline is available at every width for keyboard users (Bluetooth
   keyboards on mobile, etc.) — only the hover scale/tint is desktop-only. */
.verification-cta:focus-visible {
  outline: 2px solid var(--color-warning);
  outline-offset: 2px;
}

.verification-cta__icon {
  flex-shrink: 0;
  color: var(--color-warning);
}

.verification-cta__label--mobile {
  display: none;
}

/* Mobile (max-width: 820px):
   - height 36px to match .avatar-extra-small at this breakpoint
   - fully rounded ends to mirror the circular avatar's curvature
   - short "Verify" / "Profile" label
   - hidden by default; shown only on home / section pages via data-level */
@media (max-width: 820px) {
  .verification-cta {
    display: none;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
  }
  .header[data-level="home"] .verification-cta,
  .header[data-level="section"] .verification-cta {
    display: inline-flex;
  }
  .verification-cta__label--desktop {
    display: none;
  }
  .verification-cta__label--mobile {
    display: inline;
  }
}

/* Very narrow mobile screens: icon-only to preserve room for the title. */
@media (max-width: 380px) {
  .verification-cta {
    padding: 0 10px;
    gap: 0;
  }
  .verification-cta__label--mobile {
    display: none;
  }
}

/* Desktop only: hover / focus tint + scale — matches the .header__avatar-button
   and .header__menu-button hover treatment so the CTA reads as part of the
   same family of header controls. Touch devices don't fire :hover so this
   rule belongs behind the breakpoint, not at every width. */
@media (min-width: 821px) {
  .verification-cta:hover,
  .verification-cta:focus-visible {
    /* Derive a slightly deeper shade of the warning palette by mixing 15%
       of the main warning accent into the bg — same color-mix pattern used
       in forms.css and user-type-cards.css. */
    background: color-mix(in srgb, var(--color-warning-bg), var(--color-warning) 15%);
    border-color: var(--color-warning);
    transform: scale(1.04);
  }
}
