/* Trendbook customer-facing theme
   Shared by LookStackSimple, look-gallery, login/account pages.
*/

:root {
  color-scheme: dark;

  --tb-bg: #07070a;
  --tb-bg-soft: #0d0d12;
  --tb-surface: rgba(14, 14, 19, .46);
  --tb-surface-strong: rgba(18, 18, 24, .72);
  --tb-surface-light: rgba(255, 255, 255, .07);

  --tb-text: #ffffff;
  --tb-text-soft: rgba(255,255,255,.72);
  --tb-text-muted: rgba(255,255,255,.48);

  --tb-line: rgba(255,255,255,.13);
  --tb-line-strong: rgba(255,255,255,.20);

  --tb-accent: #ffb8d6;
  --tb-accent-2: #a5d8ff;

  --tb-radius-sm: 10px;
  --tb-radius: 18px;
  --tb-radius-lg: 26px;
  --tb-pill: 999px;

  --tb-shadow: 0 18px 50px rgba(0,0,0,.22);
  --tb-shadow-strong: 0 30px 80px rgba(0,0,0,.30);

  --tb-blur: blur(18px) saturate(135%);

  --tb-page-width: 1200px;

  --tb-font:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --tb-display-font:
    "Avenir Next",
    "Futura",
    var(--tb-font);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--tb-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--tb-text);
  font-family: var(--tb-font);

  background:
    radial-gradient(circle at 12% 18%, rgba(255,112,174,.10), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(116,200,255,.11), transparent 30%),
    linear-gradient(145deg, #0b0b10, #060608 62%, #0a0a0e);
}

body.tb-studio {
  background:
    linear-gradient(135deg, rgba(5,5,8,.60), rgba(5,5,8,.12)),
    url('/images/studio-background.jpg') center / cover no-repeat fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 42vw;
  height: 42vw;
  min-width: 340px;
  min-height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .15;
  pointer-events: none;
  z-index: 0;
}

body::before {
  left: -14vw;
  top: 14vh;
  background: #ff70ae;
}

body::after {
  right: -14vw;
  bottom: -16vh;
  background: #74c8ff;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.tb-page {
  position: relative;
  z-index: 1;
}

.tb-shell {
  width: min(var(--tb-page-width), calc(100% - 48px));
  margin: 0 auto;
}

.tb-glass {
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  backdrop-filter: var(--tb-blur);
  -webkit-backdrop-filter: var(--tb-blur);
  box-shadow: var(--tb-shadow);
}

.tb-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  min-height: 64px;
  padding:
    max(8px, env(safe-area-inset-top))
    18px
    8px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;

  background:
    linear-gradient(180deg, rgba(8,8,12,.72), rgba(8,8,12,.32));

  border-bottom: 1px solid var(--tb-line);

  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.tb-brand {
  justify-self: center;
  font-family: var(--tb-display-font);
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.tb-nav-left,
.tb-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-nav-right {
  justify-content: flex-end;
}

.tb-nav-link,
.tb-chip,
.tb-button {
  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 13px;

  border: 1px solid var(--tb-line);
  border-radius: var(--tb-pill);

  color: var(--tb-text-soft);
  background: rgba(255,255,255,.045);

  text-decoration: none;
  cursor: pointer;

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.tb-nav-link:hover,
.tb-chip:hover,
.tb-button:hover {
  color: #fff;
  border-color: var(--tb-line-strong);
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.tb-button-primary {
  color: #111;
  background: #fff;
  border-color: #fff;
  font-weight: 750;
}

.tb-button-primary:hover {
  color: #111;
  background: rgba(255,255,255,.92);
}

.tb-hero {
  width: min(var(--tb-page-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.tb-eyebrow {
  color: var(--tb-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.tb-hero h1 {
  margin: 8px 0 14px;
  max-width: 900px;

  font-family: var(--tb-display-font);
  font-size: clamp(42px, 7vw, 82px);
  line-height: .94;
  letter-spacing: -.055em;
}

.tb-hero p {
  max-width: 620px;
  margin: 0;

  color: var(--tb-text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.tb-filter-row {
  width: min(var(--tb-page-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;

  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tb-filter {
  appearance: none;
  min-height: 38px;
  padding: 8px 14px;

  border-radius: var(--tb-pill);
  border: 1px solid var(--tb-line);

  color: var(--tb-text-soft);
  background: rgba(255,255,255,.045);

  cursor: pointer;

  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease;
}

.tb-filter:hover {
  color: #fff;
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
}

.tb-filter.active {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.tb-content {
  width: min(var(--tb-page-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.tb-card {
  border-radius: var(--tb-radius);
  border: 1px solid var(--tb-line);
  background: var(--tb-surface);
  backdrop-filter: var(--tb-blur);
  -webkit-backdrop-filter: var(--tb-blur);
  box-shadow: var(--tb-shadow);
}

.tb-auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 36px 20px;
}

.tb-auth-card {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: var(--tb-radius-lg);
  border: 1px solid var(--tb-line);
  background: var(--tb-surface-strong);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  box-shadow: var(--tb-shadow-strong);
}

.tb-field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.tb-field label {
  color: var(--tb-text-soft);
  font-size: 12px;
}

.tb-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;

  border: 1px solid var(--tb-line);
  border-radius: 13px;

  color: #fff;
  background: rgba(255,255,255,.055);

  outline: none;
}

.tb-input:focus {
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 0 0 4px rgba(255,255,255,.05);
}

@media (max-width: 720px) {
  .tb-shell,
  .tb-hero,
  .tb-filter-row,
  .tb-content {
    width: min(100% - 24px, var(--tb-page-width));
  }

  .tb-topbar {
    min-height: 58px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .tb-brand {
    font-size: 15px;
    letter-spacing: .14em;
  }

  .tb-nav-left .tb-nav-link:not(.tb-mobile-keep),
  .tb-nav-right .tb-nav-link:not(.tb-mobile-keep) {
    display: none;
  }

  .tb-hero {
    padding-top: 44px;
  }

  .tb-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tb-filter-row::-webkit-scrollbar {
    display: none;
  }

  .tb-filter {
    flex: 0 0 auto;
  }

  .tb-content {
    padding-bottom: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
