/* ==========================================================================
   Poodle — the clean look, shared by the site and the admin panel.
   A light grey canvas (#F5F5F7) with white cards, one orange (#FF6B00),
   soft shadows instead of lines, round pills, and a true-black dark mode
   with #1C1C1E cards. Loaded after every other sheet; only restyles.
   ========================================================================== */

:root {
  --background:            240 11% 96.5%;   /* #F5F5F7 */
  --foreground:            240 3% 11.6%;    /* #1D1D1F */
  --card:                  0 0% 100%;
  --card-foreground:       240 3% 11.6%;
  --popover:               0 0% 100%;
  --popover-foreground:    240 3% 11.6%;

  --primary:               25 100% 50%;     /* #FF6B00 */
  --primary-foreground:    0 0% 100%;
  --primary-soft:          25 100% 95%;     /* #FFF0E5 */
  --primary-deep:          24 100% 45%;     /* #E55A00 */
  --primary-glow:          32 100% 60%;     /* #FFA033 */

  --secondary:             240 11% 96.5%;
  --secondary-foreground:  240 3% 11.6%;
  --muted:                 240 11% 96.5%;
  --muted-foreground:      240 2% 53%;      /* #86868B */
  --accent:                240 8% 94%;
  --accent-foreground:     240 3% 11.6%;

  --destructive:           3 100% 59%;      /* #FF3B30 */
  --destructive-foreground: 0 0% 100%;
  --success:               135 59% 40%;
  --success-soft:          135 60% 95%;
  --warning:               35 100% 45%;
  --warning-soft:          40 100% 94%;
  --teal:                  135 59% 45%;     /* the green dot */

  --border:                240 11% 91%;     /* #E5E5EA */
  --input:                 240 8% 88%;
  --ring:                  25 100% 50%;
  --field:                 0 0% 100%;

  --radius: 1rem;
  --look-r-card: 1.5rem;
  --look-ease: cubic-bezier(.16, 1, .3, 1);
  --look-card: 0 4px 24px -8px rgb(0 0 0 / .04), 0 0 0 1px rgb(0 0 0 / .02);
  --look-card-hover: 0 20px 40px -12px rgb(0 0 0 / .08), 0 0 0 1px rgb(0 0 0 / .04);
  --look-pop: 0 10px 30px -10px rgb(0 0 0 / .15), 0 0 0 1px hsl(var(--border));
  --look-glass: rgb(255 255 255 / .8);

  --shadow-sm: none;
  --shadow:    none;
  --shadow-md: var(--look-card);
  --shadow-lg: 0 10px 30px -10px rgb(0 0 0 / .15);
}

.dark {
  --background:            0 0% 0%;
  --foreground:            240 11% 96.5%;
  --card:                  240 3% 11.4%;    /* #1C1C1E */
  --card-foreground:       240 11% 96.5%;
  --popover:               240 3% 11.4%;
  --popover-foreground:    240 11% 96.5%;

  --primary:               25 100% 50%;
  --primary-foreground:    0 0% 100%;
  --primary-soft:          25 70% 11%;
  --primary-deep:          24 100% 45%;
  --primary-glow:          32 100% 60%;

  --secondary:             240 2% 17.6%;    /* #2C2C2E */
  --secondary-foreground:  240 11% 96.5%;
  --muted:                 240 2% 17.6%;
  --muted-foreground:      240 2% 60.6%;    /* #98989D */
  --accent:                240 2% 17.6%;
  --accent-foreground:     240 11% 96.5%;

  --destructive:           3 100% 61%;
  --success:               135 64% 50%;
  --success-soft:          135 40% 11%;
  --warning:               38 100% 55%;
  --warning-soft:          38 50% 11%;
  --teal:                  135 64% 50%;

  --border:                240 2% 22.4%;    /* #38383A */
  --input:                 240 2% 25%;
  --ring:                  25 100% 50%;
  --field:                 240 2% 17.6%;

  --look-card: 0 10px 40px -10px rgb(0 0 0 / .5), 0 0 0 1px #38383a;
  --look-card-hover: 0 20px 40px -12px rgb(0 0 0 / .7), 0 0 0 1px #48484a;
  --look-pop: 0 20px 40px -12px rgb(0 0 0 / .7), 0 0 0 1px #38383a;
  --look-glass: rgb(0 0 0 / .8);
  --shadow-md: var(--look-card);
  --shadow-lg: 0 20px 40px -12px rgb(0 0 0 / .7);
}

/* ------------------------------------------------------------------ base - */
html { scroll-behavior: smooth; }
body {
  background: hsl(var(--background)); color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased; transition: background-color .4s ease, color .4s ease;
}
::selection { background: hsl(var(--primary) / .2); }
:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; border-radius: 8px; }
* { scrollbar-color: hsl(var(--border)) transparent; }

/* the moon in the light, the sun in the dark: the mode a click gives you */
[data-theme-toggle] .moon { display: block; }
[data-theme-toggle] .sun  { display: none; }
.dark [data-theme-toggle] .moon { display: none; }
.dark [data-theme-toggle] .sun  { display: block; }
[data-theme-toggle] svg { transition: transform .5s ease; }
.dark [data-theme-toggle] .sun { transform: rotate(180deg); }

/* --------------------------------------------------------------- buttons - */
html .btn {
  height: 2.75rem; padding: 0 1.25rem; border-radius: 0.875rem;
  font-weight: 600; font-size: 0.875rem; letter-spacing: 0; text-transform: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
html .btn:not(.ghost):not(.ghost-line):not(.danger):not([disabled]) {
  background: hsl(var(--primary)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -6px rgb(255 107 0 / .4);
}
html .btn:not(.ghost):not(.ghost-line):not(.danger):not([disabled]):hover {
  background: hsl(var(--primary-deep)); color: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 25px -6px rgb(255 107 0 / .5);
}
html .btn.ghost, html .btn.ghost-line {
  background: hsl(var(--card)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); box-shadow: none;
}
html .btn.ghost:hover, html .btn.ghost-line:hover {
  background: hsl(var(--secondary)); border-color: hsl(var(--primary)); color: hsl(var(--primary)); transform: translateY(-2px);
}
html .btn.danger { background: hsl(var(--card)); border: 1px solid hsl(var(--destructive) / .35); color: hsl(var(--destructive)); box-shadow: none; }
html .btn.danger:hover { background: hsl(var(--destructive) / .08); }
html .btn[disabled] { background: hsl(var(--secondary)); color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); box-shadow: none; transform: none; }
html .btn.sm { height: 2.25rem; padding: 0 0.875rem; border-radius: 0.75rem; font-size: 0.8125rem; }
html .btn.lg { height: 3.5rem; padding: 0 2rem; border-radius: 1rem; font-size: 1rem; text-transform: none; letter-spacing: 0; }
html .btn:active { transform: translateY(0); }

/* ---------------------------------------------------------------- fields - */
html input[type=text], html input[type=email], html input[type=password], html input[type=url],
html input[type=tel], html input[type=date], html input[type=datetime-local], html input[type=number],
html input[type=search], html select, html textarea {
  background-color: hsl(var(--field)); border: 1px solid hsl(var(--input)); border-radius: 0.875rem;
  color: hsl(var(--foreground)); transition: border-color .2s, box-shadow .2s, background-color .4s;
}
html input:focus, html select:focus, html textarea:focus {
  outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 4px hsl(var(--primary) / .12);
}
html input[type=checkbox], html input[type=radio] { accent-color: hsl(var(--primary)); }

/* ----------------------------------------------------------------- notes - */
html .flash, html .note.ok { background: hsl(var(--success-soft)); border: 1px solid hsl(var(--success) / .25); color: hsl(var(--success)); border-radius: 1rem; }
html .errors, html .note.err { background: hsl(var(--destructive) / .07); border: 1px solid hsl(var(--destructive) / .25); color: hsl(var(--destructive)); border-radius: 1rem; }

/* ---------------------------------------------------- the moving banner - */
@keyframes look-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.look-banner {
  position: relative; overflow: hidden; isolation: isolate; width: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 1.5rem; color: #fff;
  background: linear-gradient(270deg, #ffa033, #ff6b00, #ff4500, #ffa033);
  background-size: 300% 300%; animation: look-flow 25s linear infinite;
  box-shadow: 0 15px 30px -10px rgb(255 107 0 / .25);
  transition: transform .4s ease;
}
.look-banner::before, .look-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.look-banner::before {
  background-image:
    linear-gradient(rgb(255 255 255 / .1) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .1) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at center, #000 50%, transparent 85%);
          mask-image: radial-gradient(circle at center, #000 50%, transparent 85%);
}
.look-banner::after {
  background-image: radial-gradient(rgb(255 255 255 / .3) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 75%);
          mask-image: radial-gradient(circle at center, #000 40%, transparent 75%);
}
.look-banner-logo {
  position: relative; z-index: 1; display: block; width: 3.125rem; height: 3.125rem;
  filter: drop-shadow(0 10px 15px rgb(0 0 0 / .2)); transition: transform .4s ease;
}
.look-banner:hover .look-banner-logo { transform: scale(1.05) rotate(-3deg); }

/* ----------------------------------------------------- the pill tab row - */
.look-tabs {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px; max-width: 100%;
  background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); border-radius: 999px;
  transition: background-color .4s ease, border-color .4s ease;
}
.dark .look-tabs { background: hsl(var(--card)); }

/* the error pages: no glows behind them */
body.err-body::before, body.err-body::after { display: none; }
body.err-body { background: hsl(var(--background)); }

/* ------------------------------------------------------------- the toast - */
.look-toast {
  position: fixed; bottom: 2rem; left: 50%; z-index: 210; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 999px; background: #000; color: #fff;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap; pointer-events: none;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
  opacity: 0; transform: translate(-50%, 1rem); transition: opacity .3s ease, transform .3s ease;
}
.look-toast.on { opacity: 1; transform: translate(-50%, 0); }
.look-toast svg { width: 1rem; height: 1rem; color: #4ade80; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dark .look-toast { background: #2c2c2e; box-shadow: 0 0 0 1px #38383a, 0 25px 50px -12px rgb(0 0 0 / .6); }

@media (min-width: 40rem) {
  .look-banner { border-radius: 2rem; }
  .look-banner-logo { width: 4.375rem; height: 4.375rem; }
}
@media (min-width: 64rem) { .look-banner-logo { width: 5.625rem; height: 5.625rem; } }
@media (prefers-reduced-motion: reduce) {
  .look-banner { animation: none; }
  html { scroll-behavior: auto; }
}
