/* WaggleTails web layout: auth pages, shelter shell (sidebar from 768 px, dock below), dashboard tiles. */

/* Auth layout - SignupHomePage / EmailAuthPage: hero gradient, centred 430 px column (ConstrainedPageContentLayoutStyle) */
.wt-auth {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--wt-hero-gradient);
}
.wt-auth__bar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}
.wt-auth__column {
  width: 100%;
  max-width: var(--wt-content-max);
  margin: 0 auto;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wt-auth__column--wide {
  max-width: 560px;
}
.wt-auth__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
}
.wt-auth__logo {
  display: block;
  height: 128px;
  width: auto;
  margin: 0 auto;
  animation: wt-logo-enter 220ms cubic-bezier(.33, 1, .68, 1) both,
             wt-logo-waggle 2.42s cubic-bezier(.65, 0, .35, 1) .92s infinite;
}
.wt-auth__logo--sm {
  height: 80px;
  animation: none;
}
.wt-auth__logo--xs {
  height: 56px;
  animation: none;
}
@keyframes wt-logo-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* SignupHomePage.xaml.cs PerformLogoWaggleAsync: -3, 3, -3, 3 at 80 ms each, back to 0 in 100 ms, then a 2 s pause. */
@keyframes wt-logo-waggle {
  0% { rotate: 0deg; }
  3.3% { rotate: -3deg; }
  6.6% { rotate: 3deg; }
  9.9% { rotate: -3deg; }
  13.2% { rotate: 3deg; }
  17.4% { rotate: 0deg; }
  100% { rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .wt-auth__logo {
    animation: none;
  }
}
.wt-auth__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.wt-auth__buttons form {
  margin: 0;
}
.wt-auth__trouble {
  margin-top: 4px;
  text-align: center;
  font-size: 14px;
}
.wt-auth__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: var(--wt-text-secondary);
  font-weight: 300;
  font-size: 15px;
  text-decoration: none;
}
.wt-auth__back .wt-icon-disc {
  background: var(--wt-outline);
  color: var(--wt-text-secondary);
  border-radius: 20px;
}
.wt-auth__switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 300;
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-auth__switch a {
  font-weight: 600;
  color: var(--wt-primary);
  text-decoration: none;
}

/* Agreement rules - UserAgreementsRule* styles (24 px teal number disc, PoppinsLight 14 body) */
.wt-rules {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wt-rule;
}
.wt-rules li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: wt-rule;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: var(--wt-text-body);
}
.wt-rules li::before {
  content: counter(wt-rule);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--wt-primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

/* Role card - RoleActivationShelterCardBorderStyle (gold tint, 1 px border, radius 24, 64 px badge) */
.wt-role-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-card);
  background: var(--wt-soft-gold-bg);
  box-shadow: var(--wt-provider-shadow);
}
.wt-role-card__badge {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--wt-secondary);
  font-size: 30px;
  line-height: 1;
}
.wt-role-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  min-width: 0;
}
.wt-role-card__title {
  font-weight: 700;
  font-size: 18px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-role-card__meta {
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-role-card__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--wt-text-body);
}
.wt-role-title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  text-align: center;
  color: var(--wt-text);
}
.wt-role-title em {
  font-style: normal;
  font-size: 24px;
  color: var(--wt-secondary);
}

/* Shelter intro feature list - ShelterFeatureIconBorderStyle rows (32 px teal disc) */
.wt-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wt-features li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.wt-features__title {
  font-weight: 500;
  font-size: 14px;
  color: var(--wt-text);
}
.wt-features__text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--wt-text-secondary);
}
.wt-intro-lead {
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
  color: var(--wt-text-secondary);
}
.wt-intro-list-title {
  font-size: 16px;
  color: var(--wt-text);
}
.wt-mission {
  padding: 16px;
  border-radius: var(--wt-radius-card);
  background: var(--wt-gradient-warm);
  border: 1px solid var(--wt-gold-hairline);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: var(--wt-text-body);
}

/* Shelter shell - 430 px page below 768 px with the dock; sidebar + content column from 768 px */
.wt-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--wt-page-gradient);
}
.wt-sidebar {
  display: none;
}
.wt-shell__main {
  min-width: 0;
  padding-bottom: calc(var(--wt-dock-height) + 16px);
}
.wt-page-head__form {
  margin: 0;
  display: inline-flex;
}
.wt-shell__content {
  width: 100%;
  max-width: var(--wt-content-max);
  margin: 0 auto;
  padding: 16px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .wt-shell {
    grid-template-columns: 240px 1fr;
  }
  .wt-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 16px;
    background: var(--wt-nav-bg);
    border-right: 1px solid var(--wt-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .wt-sidebar__brand {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto 24px;
  }
  .wt-sidebar .wt-nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
  }
  .wt-sidebar .wt-nav-item i {
    width: 20px;
    text-align: center;
  }
  .wt-sidebar .wt-nav-item.is-active {
    transform: translateX(2px);
  }
  .wt-dock {
    display: none;
  }
  .wt-page-head__logo {
    display: none;
  }
  .wt-shell__main {
    padding-bottom: 0;
  }
  .wt-shell__content {
    max-width: 720px;
    padding: 24px 24px 48px;
  }
  .wt-shell__content--wide {
    max-width: 1100px;
  }
}

/* Dashboard - ShelterDashboardPage.xaml: org block (88 px disc, teal gradient, mint ring), stats strip, posts, pets */
.wt-org {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
}
.wt-org__logo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--wt-soft-teal-bg);
  border-radius: 44px;
  background: var(--wt-gradient-brand);
  color: #fff;
  font-size: 36px;
}
.wt-org__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-org__name {
  font-weight: 500;
  font-size: 20px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .wt-tiles {
    grid-template-columns: repeat(6, 1fr);
  }
}
.wt-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  text-align: center;
}
.wt-tile__value {
  font-weight: 700;
  font-size: 18px;
  color: var(--wt-text);
}
.wt-tile__label {
  font-size: 10px;
  color: var(--wt-text-muted);
}
/* The stat tiles and the recent-pet cards are anchors since phase 1 (quick links into the shelter pages) */
a.wt-tile,
a.wt-pet {
  color: inherit;
  text-decoration: none;
}
a.wt-tile:hover .wt-tile__value,
a.wt-pet:hover .wt-pet__name {
  color: var(--wt-primary);
}
.wt-post--link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.wt-post--link:hover,
.wt-post--link:focus-visible {
  box-shadow: var(--wt-shadow-strong);
}
.wt-post {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* ShelterDashboardPage.xaml:270-274: the media band bleeds to the card's edges (the card's own padding is undone), 192 px, cover. */
.wt-post__media {
  position: relative;
  margin: -16px -16px 0;
  height: 192px;
  overflow: hidden;
  border-radius: var(--wt-radius-card) var(--wt-radius-card) 0 0;
  background: var(--wt-surface-muted);
}
.wt-post__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-post__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  transform: translate(-50%, -50%);
  background: var(--wt-scrim);
  color: #fff;
  font-size: 20px;
}
.wt-post__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wt-post__counts {
  display: inline-flex;
  gap: 16px;
  font-size: 14px;
  color: var(--wt-text-secondary);
}
.wt-post__counts i {
  margin-right: 4px;
}
.wt-post__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-post__meta {
  font-size: 14px;
  color: var(--wt-text-secondary);
}
.wt-pets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .wt-pets {
    grid-template-columns: repeat(4, 1fr);
  }
}
.wt-pet {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wt-pet__image {
  aspect-ratio: 1;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
  font-size: 28px;
}
.wt-pet__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-pet__name {
  font-weight: 500;
  font-size: 14px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-empty {
  padding: 32px;
  text-align: center;
}
.wt-empty i {
  font-size: 48px;
  color: var(--wt-outline);
  margin-bottom: 8px;
}
.wt-empty__title {
  font-size: 16px;
  color: var(--wt-text-body-soft);
}
.wt-empty__text {
  font-size: 14px;
  color: var(--wt-text-secondary);
}

/* Long text as entered - the pet story and description (ShelterPetProfilePreviewView), the applicant's message */
.wt-prose {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wt-text-body);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Error / plain pages */
.wt-error-code {
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--wt-primary);
  text-align: center;
}
