/**
 * "Line Pass" redesign of the signed-in /account overview page.
 *
 * Deliberately a STANDALONE stylesheet, not part of src/styles.css (the
 * site-wide design system) or src/routes/__root.tsx (the global <head>).
 *
 * Lives in public/ -- served as a plain static file, never passed through
 * Vite/Rollup/Tailwind's build pipeline at all -- and is linked only from
 * src/routes/account/index.tsx's own head() (`links: [{ rel: "stylesheet",
 * href: "/line-pass.css" }]`), which TanStack Start only renders for
 * requests that actually match that route. A prior version of this file
 * lived under src/ and was `import`ed at the top of account/index.tsx on
 * the assumption that TanStack Router's per-route code splitting would
 * scope its CSS the same way it scopes that route's JS chunk. It didn't:
 * this app's route tree (src/routeTree.gen.ts) imports every route module
 * statically for route-matching purposes, so a plain top-level CSS import
 * in any route file ends up bundled into the app's root chunk -- loaded on
 * literally every page -- regardless of how that route's own component
 * code gets split. A `<link>` added only inside this one route's head()
 * doesn't have that problem: the tag (and the browser's subsequent fetch)
 * simply never appears on any other page's HTML.
 *
 * Every class and custom property below is prefixed `lp-` and unique to
 * this file -- none of it reads from, writes to, or shadows any token in
 * the shared account/signin/admin design system (--account-, --signin-,
 * --admin- prefixed custom properties).
 *
 * Deliberately written as plain, hand-authored CSS rather than Tailwind
 * utility classes (including Tailwind's arbitrary-value `[...]` syntax):
 * even once this moved out of Tailwind's build pipeline, the component
 * files that reference these classes are still scanned by Tailwind's
 * content scanner, so a one-off Tailwind utility used only there would
 * still generate a (harmless but unnecessary) rule in the site-wide
 * compiled stylesheet. Real CSS classes avoid that entirely.
 */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&display=swap");

.lp-portal {
  --lp-bg: #ffffff;
  --lp-surface: #f3f5f9;
  --lp-border: #edf0f5;
  --lp-border-strong: #d5dae3;
  --lp-ink: #0f172a;
  --lp-ink-secondary: #3b4a63;
  --lp-ink-muted: #5b6478;
  --lp-ink-on-navy: #dce3ef;
  --lp-navy: #16203a;
  --lp-navy-hover: #202d4e;
  --lp-status-green: #3fb984;
  --lp-status-green-on-navy: #6fe0b0;
  /* Pending status pill -- not in the written spec's color list, a muted
     amber consistent with "in progress" states elsewhere in the product. */
  --lp-status-amber: #f0a94e;
  --lp-status-danger-on-navy: #ff8a75;
  --lp-danger: #b42318;
  --lp-rewards-bg: #fff4e0;
  --lp-rewards-eyebrow: #8a4b08;
  --lp-rewards-body: #5b3a12;
  --lp-chip-gold-from: #f6d27a;
  --lp-chip-gold-to: #b9862f;

  background-color: var(--lp-bg);
  color: var(--lp-ink);
}

.lp-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lp-hit-target:focus-visible {
  outline: 2px solid var(--lp-navy);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Text colors ---- */
.lp-text-ink {
  color: var(--lp-ink);
}
.lp-text-secondary {
  color: var(--lp-ink-secondary);
}
.lp-text-muted {
  color: var(--lp-ink-muted);
}
.lp-text-on-navy {
  color: var(--lp-ink-on-navy);
}
.lp-text-navy {
  color: var(--lp-navy);
}
.lp-text-danger {
  color: var(--lp-danger);
}
.lp-text-danger-on-navy {
  color: var(--lp-status-danger-on-navy);
}

/* ---- Pill buttons -- this page's own primary/outline button look,
   standing in for the shared pillNavy/pillOutlineDark classes (which stay
   on the shared --signin-* palette other account pages still use). ---- */
.lp-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
  white-space: nowrap;
}
.lp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.lp-btn-navy {
  background-color: var(--lp-navy);
  color: #ffffff;
  border: 1px solid var(--lp-navy);
}
.lp-btn-navy:hover:not(:disabled) {
  background-color: var(--lp-navy-hover);
}
.lp-btn-outline {
  background-color: transparent;
  color: var(--lp-ink);
  border: 1px solid var(--lp-border-strong);
}
.lp-btn-outline:hover:not(:disabled) {
  background-color: var(--lp-surface);
}
.lp-btn-icon {
  display: inline-flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--lp-navy);
  color: #ffffff;
  border: none;
  transition: filter 150ms ease;
}
.lp-btn-icon:hover {
  filter: brightness(1.1);
}
.lp-link {
  color: var(--lp-navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-link-danger {
  color: var(--lp-danger);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-footer-link {
  color: inherit;
}
.lp-footer-link:hover {
  color: var(--lp-ink);
  text-decoration: underline;
}
.lp-footer-text {
  font-size: 13px;
  color: var(--lp-ink-muted);
}
.lp-empty-state {
  border-radius: 28px;
  border: 1px solid var(--lp-border);
  background-color: #ffffff;
}

/* ---- Row 1: the navy pass card ---- */
.lp-pass-card {
  border-radius: 32px;
  background-color: var(--lp-navy);
}
.lp-line-switch-btn {
  border: 1px solid var(--lp-border-strong);
  color: var(--lp-ink-secondary);
  transition: background-color 150ms ease;
}
.lp-line-switch-btn:hover {
  background-color: var(--lp-surface);
}
.lp-phone-number {
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 700;
}
.lp-strip-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lp-ink-on-navy);
  text-transform: uppercase;
}
.lp-navy-panel {
  background-color: rgba(255, 255, 255, 0.07);
}
.lp-dot-green {
  background-color: var(--lp-status-green);
}
.lp-dot-amber {
  background-color: var(--lp-status-amber);
}
.lp-dot-danger {
  background-color: var(--lp-status-danger-on-navy);
}
.lp-segment-unfilled {
  background-color: rgba(255, 255, 255, 0.18);
}

/* ---- Row 1 right column: days remaining ---- */
.lp-days-expired {
  font-size: clamp(56px, 14vw, 96px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--lp-danger);
}
.lp-days-renews-today {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lp-ink);
}
.lp-days-number {
  font-size: clamp(64px, 18vw, 112px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--lp-ink);
}
.lp-days-unit {
  font-size: 32px;
  font-weight: 600;
  color: var(--lp-ink-muted);
}

/* ---- Row 2: activity timeline ---- */
.lp-timeline-connector {
  position: absolute;
  top: 0.75rem;
  left: 5px;
  height: 100%;
  width: 1px;
  background-color: var(--lp-border);
}
.lp-timeline-text {
  font-size: 15px;
}
.lp-dot-navy {
  background-color: var(--lp-navy);
  border-color: var(--lp-navy);
}
.lp-dot-timeline-green {
  background-color: var(--lp-status-green);
  border-color: var(--lp-status-green);
}
.lp-dot-dashed {
  border-color: var(--lp-ink-muted);
  background-color: transparent;
}

/* ---- Row 2: rewards card ---- */
.lp-rewards-card {
  border-radius: 28px;
  background-color: var(--lp-rewards-bg);
}
.lp-text-rewards-eyebrow {
  color: var(--lp-rewards-eyebrow);
  letter-spacing: 0.1em;
}
.lp-text-rewards-body {
  color: var(--lp-rewards-body);
}
.lp-inner-panel {
  border-radius: 18px;
}
.lp-mono-code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
}
.lp-toast {
  background-color: var(--lp-navy);
}

/* ---- Row 3: account-details strip ---- */
.lp-details-strip {
  border-radius: 28px;
  border: 1px solid var(--lp-border);
  background-color: #ffffff;
  display: grid;
  grid-template-columns: 1fr;
}
.lp-details-strip > div {
  border-bottom: 1px solid var(--lp-border);
}
.lp-details-strip > div:last-child {
  border-bottom: none;
}
@media (min-width: 769px) {
  .lp-details-strip {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .lp-details-strip > div {
    border-bottom: none;
    border-right: 1px solid var(--lp-border);
  }
  .lp-details-strip > div:last-child {
    border-right: none;
  }
}
.lp-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lp-ink-muted);
  text-transform: uppercase;
}

/* ---- Generic cards (activity card, empty state, skeletons) ---- */
.lp-card {
  border-radius: 28px;
  border: 1px solid var(--lp-border);
  background-color: #ffffff;
}

/* ---- Tabs ---- */
.lp-tabs-bar {
  background-color: var(--lp-surface);
}
.lp-tab {
  color: var(--lp-ink-muted);
  transition: color 150ms ease;
}
.lp-tab:hover {
  color: var(--lp-ink);
}
.lp-tab--active {
  background-color: #ffffff;
  color: var(--lp-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

@keyframes lp-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lp-animate-in {
  animation: lp-fade-in 0.3s ease both;
}

/* Skeleton placeholder shimmer, shaped per-component by the caller
   (skeletons.tsx) rather than a single fixed block size. */
@keyframes lp-shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}
.lp-skeleton {
  border-radius: 8px;
  background-color: var(--lp-surface);
  background-image: linear-gradient(90deg, transparent 0%, var(--lp-bg) 50%, transparent 100%);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  animation: lp-shimmer 1.6s ease-in-out infinite;
}
.lp-skeleton--on-pass {
  background-color: rgba(255, 255, 255, 0.18);
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
}

/* Horizontal-scrolling tab bar at narrow widths without a visible
   scrollbar eating into its 44px hit targets. */
.lp-tabs-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lp-tabs-scroll::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .lp-portal .lp-animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .lp-portal .lp-skeleton {
    animation: none;
  }
  .lp-portal *,
  .lp-portal *::before,
  .lp-portal *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
