/* =============================================================================
   TENANT: WeAuction demo platform - demo.weauction.io

   DESIGN CONCEPT - "WeAuction.io house style"
   The demo portal is what prospects open straight from weauction.io, so it now
   wears the marketing site's brand instead of the old DLMS Farm Gate oxblood:
   Inter body text with Outfit headings, a deep navy frame (contact bar, hero
   wash, footer), the WeAuction orange for highlights, links and focus, and the
   site's green for the calls to action ("Request Demo" on weauction.io,
   "Register" and bid buttons here). Soft slate text, cool grey surfaces,
   12px corners, slate-tinted shadows.

   Values read from weauction.io (computed styles and :root tokens, Nov 2026):
     Navy          hsl(215 35% 20%)  #213045   footer, hero wash        -> primary
     Navy light    hsl(215 30% 30%)  #364963   gradients, info
     Slate dark    hsl(215 25% 27%)  #344256   body text                -> foreground
     Slate         hsl(215 18% 42%)  #58687E   secondary text           -> muted-foreground
     Orange        hsl(27 91% 54%)   #F47F1F   eyebrows, links, ring    -> accent-soft
     Orange amber  hsl(35 95% 55%)   #F99E1F   end of the orange gradient
     CTA green     hsl(142 71% 38%)  #1CA64F   "Request Demo" buttons
     CTA green lt  hsl(142 65% 48%)  #2BCA65   end of the CTA gradient
     Grey surface  hsl(220 14% 96%)  #F3F4F6   alternating sections (50%)
     Border        hsl(220 13% 91%)  #E5E7EB
     Red           hsl(0 84% 60%)    #EF4343   destructive

     Fonts     Inter 400/500/600 (body, nav, buttons), Outfit 600/700 (headings)
     Radius    0.75rem (12px) buttons and icon tiles, 16px feature cards
     Buttons   gradient fill, 600 weight, no uppercase, slate-tinted shadow
     Cards     1px border, no resting shadow; hover = orange/50 border + glow

   Contrast (WCAG AA, 4.5:1 for normal text):
     The site's orange #F47F1F is 2.66:1 with white and its green #1CA64F is
     3.17:1, both below AA for the portal's 12-14px button and link text. The
     portal therefore uses each hue darkened just enough:
       --accent        #B95809  orange,  4.71:1 on white
       CTA gradient    #127D39 -> #15843E green, 5.23 / 4.77:1 with white
       --destructive   #DC2626  red,     4.83:1 with white
     The exact site orange is kept where it passes: hovers on the navy footer
     and contact bar (5.02:1), the step numbers (navy on orange, 5.02:1), the
     hero glow, selection and other decoration. To use the exact site colors on
     buttons as well, change --wa-cta-from / --wa-cta-to to #1CA64F / #2BCA65
     (buttons then fall below AA).
     Navy on white 13.35:1, slate-dark on white 10.2:1, slate on white 5.68:1.

   STRUCTURE
   Part 1 - design tokens (the standard tenant variables).
   Part 2 - signature details. This sheet is loaded unlayered, so it wins over the
            portal's Tailwind layers. Rules target the portal's component tags
            (app-header, app-hero, ...) and its own named utilities
            (.bg-gradient-hero, .bg-gradient-accent, .shadow-card). If the portal
            markup changes, Part 2 simply stops matching and Part 1 still applies.
   ============================================================================= */

/* Inter is not among the five families the portal loads, so it comes in here. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ---------------------------------------------------------------------------
   PART 1 - DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
  /* TYPOGRAPHY - Inter for text, Outfit for headings, as on weauction.io */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ELEVATION - the site's slate-tinted shadows */
  --shadow-card: 0 4px 6px -1px rgb(52 66 86 / 0.10), 0 2px 4px -2px rgb(52 66 86 / 0.10);

  /* BASE COLORS */
  --background: #FFFFFF;
  --foreground: #344256;             /* slate dark */

  /* SURFACES */
  --card: #FFFFFF;
  --card-foreground: #344256;

  /* POPOVER SURFACES */
  --popover: #FFFFFF;
  --popover-foreground: #344256;

  /* BRAND COLORS - WeAuction navy */
  --primary: #213045;
  --primary-foreground: #FFFFFF;
  --primary-hover: #364963;

  /* SECONDARY SURFACES - the site's cool grey */
  --secondary: #F3F4F6;
  --secondary-foreground: #213045;

  /* MUTED UI */
  --muted: #F3F4F6;
  --muted-foreground: #58687E;       /* slate, 5.68:1 on white */

  /* ACCENT COLORS - WeAuction orange */
  --accent: #B95809;                 /* #F47F1F darkened for AA, 4.71:1 with white */
  --accent-foreground: #FFFFFF;
  --accent-soft: #F47F1F;            /* exact weauction.io orange */
  --accent-strong: #9A4807;          /* pressed state */
  --accent-hover: #9A4807;

  /* ALTERNATIVE ACCENT - navy light */
  --accent-alt: #364963;
  --accent-alt-foreground: #FFFFFF;

  /* FUNCTIONAL FEEDBACK COLORS */
  --destructive: #DC2626;            /* site red #EF4343 darkened, 4.83:1 */
  --destructive-foreground: #FFFFFF;
  --success: #127D39;                /* site CTA green, dark end, 5.23:1 */
  --success-foreground: #FFFFFF;
  --info: #364963;                   /* navy light, 9.17:1 */
  --info-foreground: #FFFFFF;
  --warning: #F99E1F;                /* the site's amber */
  --warning-foreground: #213045;     /* navy on amber, 6.32:1 */

  /* FORM AND FOCUS COLORS */
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: var(--accent);

  /* AUCTION STATUS COLORS */
  --status-live: var(--destructive);
  --status-live-foreground: #FFFFFF;
  --status-active: var(--success);
  --status-upcoming: var(--info);
  --status-upcoming-foreground: #FFFFFF;
  --status-closed: #58687E;
  --status-closed-foreground: #FFFFFF;
  --status-won: var(--success);
  --status-won-foreground: #FFFFFF;

  /* SHAPE - the site's 0.75rem */
  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* weauction.io extras used by Part 2 */
  --wa-navy: #213045;
  --wa-navy-light: #364963;
  --wa-orange: #F47F1F;
  --wa-amber: #F99E1F;
  --wa-cta-from: #127D39;
  --wa-cta-to: #15843E;
  --wa-gradient-orange: linear-gradient(135deg, var(--wa-orange) 0%, var(--wa-amber) 100%);
  --wa-glow: 0 0 40px rgb(244 127 31 / 0.30);

  accent-color: var(--accent);        /* native checkboxes, radios, range inputs */
}


/* ---------------------------------------------------------------------------
   PART 2 - SIGNATURE DETAILS
   --------------------------------------------------------------------------- */

/* Base ----------------------------------------------------------------------- */
::selection {
  background: var(--wa-orange);
  color: #FFFFFF;
}

h1, h2, h3, h4,
.font-display {
  letter-spacing: 0;
}

/* Portal utilities ------------------------------------------------------------ */
.shadow-card {
  box-shadow: var(--shadow-card);
}
.shadow-card-hover {
  box-shadow: 0 10px 15px -3px rgb(52 66 86 / 0.10), 0 4px 6px -4px rgb(52 66 86 / 0.10);
}

/* Accent buttons = the site's green "Request Demo" CTA */
.bg-gradient-accent {
  background: linear-gradient(to right, var(--wa-cta-from), var(--wa-cta-to));
}
.bg-gradient-accent:hover {
  background: linear-gradient(to right, #0F6B31, var(--wa-cta-from));
  opacity: 1;
}
.shadow-accent {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
}
a.bg-gradient-accent,
button.bg-gradient-accent {
  font-weight: 600;
  border-radius: 0.75rem;
}
a.bg-gradient-accent:focus-visible,
button.bg-gradient-accent:focus-visible {
  --tw-ring-color: var(--wa-orange);
}

/* Header --------------------------------------------------------------------- */
/* Contact bar: navy, orange on hover (exact site orange passes on navy) */
app-header > header > div:first-child a:not([href="/live"]):hover,
app-header > header > div:first-child a:not([href="/live"]):focus-visible {
  color: var(--wa-orange);
}
app-header > header > div:first-child lucide-icon {
  color: var(--wa-orange);
}

/* Main bar: the site's white glass */
app-header > header > div:nth-child(2) {
  background-color: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(12px);
  border-bottom-color: rgb(229 231 235 / 0.5);
}

/* Main navigation: sentence case, Inter 500, orange on hover / active */
app-header nav[aria-label="Main navigation"] a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--foreground);
}
app-header nav[aria-label="Main navigation"] a:hover,
app-header nav[aria-label="Main navigation"] a:focus-visible,
app-header nav[aria-label="Main navigation"] a[class~="text-[var(--accent)]"] {
  color: var(--accent);
}
app-header nav[aria-label="Main navigation"] a[class~="text-[var(--accent)]"] {
  font-weight: 600;
}

/* Hero ----------------------------------------------------------------------- */
/* Navy wash from the left, plus the site's soft orange glow */
app-hero .bg-gradient-hero {
  background:
    radial-gradient(ellipse at center, rgb(244 127 31 / 0.10) 0%, transparent 70%),
    linear-gradient(to right, rgb(33 48 69 / 0.95), rgb(33 48 69 / 0.80), rgb(33 48 69 / 0.60));
}
app-hero h1 {
  font-weight: 700;
  line-height: 1.15;
}
app-hero h1 + p {
  color: rgb(255 255 255 / 0.8);
}
/* Hero button as the site's large green CTA instead of frosted white */
app-hero a[class*="bg-[var(--card)]"] {
  background: linear-gradient(to right, var(--wa-cta-from), var(--wa-cta-to));
  color: #FFFFFF;
  border-color: transparent;
  backdrop-filter: none;
  border-radius: 0.75rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
}
app-hero a[class*="bg-[var(--card)]"]:hover {
  background: linear-gradient(to right, #0F6B31, var(--wa-cta-from));
}

/* Section headings ----------------------------------------------------------- */
app-home h2,
app-how-to-bid h2,
app-contact-persons h2 {
  color: var(--foreground);
}

/* How to bid ----------------------------------------------------------------- */
/* Feature cards like weauction.io: 16px corners, border, glow on hover */
app-how-to-bid .shadow-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
app-how-to-bid .shadow-card:hover {
  border-color: rgb(244 127 31 / 0.5);
  box-shadow: var(--wa-glow);
}
/* Step number in the site's rounded icon tile with the orange gradient */
app-how-to-bid .shadow-card > div:first-child {
  border-radius: 0.75rem;
  background: var(--wa-gradient-orange);
  color: var(--wa-navy);              /* navy on orange, 5.02:1 */
  transition: transform 0.3s ease;
}
app-how-to-bid .shadow-card:hover > div:first-child {
  transform: scale(1.1);
}

/* Auction timeline ----------------------------------------------------------- */
app-auction-timeline .text-3xl {
  color: var(--wa-navy);
}
app-auction-timeline-card article {
  border-radius: 1rem;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
app-auction-timeline-card article:hover {
  border-color: rgb(244 127 31 / 0.5);
  box-shadow: var(--wa-glow);
}
app-auction-timeline-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

/* Contact persons ------------------------------------------------------------ */
app-contact-persons .shadow-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: none;
}
app-contact-persons img {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--wa-orange);
}

/* Footer --------------------------------------------------------------------- */
/* Navy with white Outfit headings and white/70 links, orange on hover */
app-footer > footer {
  border-top: 0;
  background-color: var(--wa-navy);
}
app-footer h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: #FFFFFF;
}
app-footer a,
app-footer button {
  color: rgb(255 255 255 / 0.7);
}
app-footer lucide-icon {
  color: var(--wa-orange);
}
app-footer a:hover,
app-footer a:focus-visible,
app-footer button:hover,
app-footer button:focus-visible {
  color: var(--wa-orange);
}

/* Motion --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  app-how-to-bid .shadow-card,
  app-how-to-bid .shadow-card > div:first-child,
  app-auction-timeline-card article {
    transition: none;
  }
  app-how-to-bid .shadow-card:hover > div:first-child {
    transform: none;
  }
}
