/* ==========================================================================
   TeamTrek — In-frame product mocks (Dashboard, Timeline, Activity, Reports)
   ========================================================================== */

.mock { background: #fff; text-align: left; }
.mock--pad { padding: 1.25rem; }

/* --------------------------------------------------------------------------
   Shared mock atoms
   -------------------------------------------------------------------------- */
.mock__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--neutral-900); }
.mock__sub { font-size: 13px; color: var(--neutral-500); }
.mock__panel { border-radius: var(--r-md); border: 1px solid var(--neutral-200); padding: 1rem; }
.mock__panel-title { font-size: 13px; font-weight: 600; color: var(--neutral-900); }

.mock-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff;
}
.bg-p200 { background: var(--primary-200); }
.bg-p300 { background: var(--primary-300); }
.bg-p400 { background: var(--primary-400); }
.bg-p600 { background: var(--primary-600); }
.bg-p700 { background: var(--primary-700); }
.bg-n300 { background: var(--neutral-300); }

/* --------------------------------------------------------------------------
   Dashboard mock
   -------------------------------------------------------------------------- */
.dash { display: flex; }

.dash__aside {
  display: none;
  width: 188px; flex-shrink: 0; flex-direction: column;
  border-right: 1px solid var(--neutral-200);
  background: var(--neutral-25);
  padding: 1rem;
}
.dash__brand { margin-bottom: 1.5rem; display: flex; align-items: center; gap: .5rem; }
.dash__brand span { font-size: 15px; font-weight: 700; color: var(--neutral-900); }
.dash__nav { display: flex; flex-direction: column; gap: .25rem; }
.dash__navitem {
  display: flex; align-items: center; gap: .625rem;
  border-radius: var(--r-md); padding: .5rem .75rem;
  font-size: 13px; font-weight: 500; color: var(--neutral-600);
}
.dash__navitem.is-active { background: var(--primary-50); color: var(--primary-800); }
.dash__navitem .icon { width: 16px; height: 16px; }
.dash__settings { margin-top: auto; }

.dash__main { min-width: 0; flex: 1; padding: 1.25rem; }
.dash__head { margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dash__head-right { display: flex; align-items: center; gap: .75rem; }
.dash__head-right .icon { width: 16px; height: 16px; color: var(--neutral-500); }
.dash__me {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-100);
  font-size: .75rem; font-weight: 700; color: var(--primary-800);
}

.dash__stats { margin-bottom: 1.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.dash__stat { border-radius: var(--r-md); border: 1px solid var(--neutral-200); padding: .875rem; }
.dash__stat-label { font-size: 11px; font-weight: 500; color: var(--neutral-500); }
.dash__stat-value { margin-top: .25rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; color: var(--neutral-900); }

.dash__chart { margin-bottom: 1.25rem; }
.dash__chart-head { margin-bottom: .75rem; display: flex; align-items: center; justify-content: space-between; }
.dash__chart-tag {
  border-radius: var(--r-pill); background: var(--primary-100);
  padding: .125rem .625rem; font-size: 11px; font-weight: 600; color: var(--primary-800);
}
.dash__bars { display: flex; height: 128px; align-items: flex-end; gap: .625rem; }
.dash__bar-col { display: flex; height: 100%; flex: 1; flex-direction: column; align-items: center; gap: .375rem; }
.dash__bar-track { display: flex; width: 100%; flex: 1; align-items: flex-end; border-radius: 4px; background: var(--neutral-100); }
.dash__bar {
  display: block;
  width: 100%; height: 0;
  border-radius: 4px 4px 0 0;
  background: var(--primary-600);
  transition: height .9s ease-out;
}
.dash__bar-day { font-size: 10px; font-weight: 500; color: var(--neutral-500); }

.dash__team { border-radius: var(--r-md); border: 1px solid var(--neutral-200); }
.dash__member { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.dash__member + .dash__member { border-top: 1px solid var(--neutral-150); }
.dash__member-info { min-width: 0; flex: 1; }
.dash__member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--neutral-900); }
.dash__member-role { font-size: 11px; color: var(--neutral-500); }
.dash__member-hours { display: none; font-size: 13px; font-weight: 600; color: var(--neutral-800); }
.dash__member .badge-pill { padding: .25rem .625rem; font-size: 11px; }

/* --------------------------------------------------------------------------
   Timeline mock
   -------------------------------------------------------------------------- */

.tl__play .icon { width: 16px; height: 16px; fill: #fff; color: #fff; }

.tl__block {
  display: block;
  position: absolute; top: 4px; height: 20px;
  border-radius: 4px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .9s ease-out;
}

.tl__foot .icon { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Activity mock
   -------------------------------------------------------------------------- */
.act__people { margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
/* A button, because it picks whose day the cards below are showing. The
   resets are the ones a <button> needs to keep the chip it already was:
   the UA supplies its own font, border and background otherwise. */
.act__person {
  display: inline-flex; align-items: center; gap: .375rem;
  border-radius: var(--r-pill); padding: .375rem .75rem;
  font-family: inherit; font-size: .75rem; font-weight: 600;
  appearance: none; border: 0; cursor: pointer; text-align: inherit;
  background: var(--neutral-100); color: var(--neutral-600);
  transition: background-color .16s var(--ease-ui), color .16s var(--ease-ui);
}
.act__person:hover:not(.is-active) { background: var(--neutral-150); color: var(--neutral-800); }
.act__person.is-active { background: var(--primary-700); color: #fff; }

.act__shots { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.act__shot { overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--neutral-200); }
.act__preview {
  position: relative;
  display: flex; height: 112px; align-items: center; justify-content: center;
  background-color: var(--neutral-100);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.act__window {
  width: 75%;
  border-radius: var(--r-md); border: 1px solid var(--neutral-200);
  background: #fff; padding: .625rem;
  box-shadow: var(--shadow-01);
}
.act__line { height: 6px; border-radius: 3px; }
.act__line--1 { margin-bottom: .375rem; width: 50%; background: var(--neutral-200); }
.act__line--2 { margin-bottom: .25rem; width: 75%; background: var(--primary-200); }
.act__line--3 { width: 66%; background: var(--neutral-150); }
.act__time {
  position: absolute; right: .5rem; top: .5rem;
  border-radius: var(--r-pill); background: rgba(255,255,255,.9);
  padding: .125rem .5rem; font-size: 10px; font-weight: 600; color: var(--neutral-600);
  box-shadow: var(--shadow-01);
}
.act__meta { padding: .75rem; }
.act__app { margin-bottom: .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; font-weight: 600; color: var(--neutral-800); }
.act__meta .badge-pill { padding: .25rem .625rem; font-size: 11px; }

.act__apps { margin-top: 1rem; }
.act__applist { display: flex; flex-direction: column; gap: .625rem; }
.act__approw { display: flex; align-items: center; gap: .75rem; }
.act__appname { width: 64px; flex-shrink: 0; font-size: .75rem; font-weight: 500; color: var(--neutral-600); }
.act__apptrack { height: 8px; flex: 1; overflow: hidden; border-radius: var(--r-pill); background: var(--neutral-100); }
.act__appbar { display: block; height: 100%; width: 0; border-radius: var(--r-pill); transition: width .9s ease-out; }
.act__apppct { width: 36px; flex-shrink: 0; text-align: right; font-size: .75rem; font-weight: 600; color: var(--neutral-800); }

/* --------------------------------------------------------------------------
   Reports mock
   -------------------------------------------------------------------------- */
.rep__head { margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.rep__export {
  display: inline-flex; align-items: center; gap: .375rem;
  border-radius: var(--r-md); border: 1px solid var(--neutral-300);
  padding: .5rem .75rem; font-size: .75rem; font-weight: 600; color: var(--neutral-800);
}
.rep__export .icon { width: 14px; height: 14px; }

.rep__legend .dot { margin-right: .25rem; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-600); vertical-align: middle; }

.rep__area { opacity: 0; transition: opacity .9s ease-out .5s; }
.rep__area.is-in { opacity: .1; }
.rep__line { transition: stroke-dashoffset 1.1s ease-out .2s; }
.rep__pt { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .3s ease-out, transform .3s ease-out; }
.rep__pt.is-in { opacity: 1; transform: scale(1); }

.rep__budgets { display: flex; flex-direction: column; gap: .875rem; }
.rep__budget-head { margin-bottom: .25rem; display: flex; align-items: center; justify-content: space-between; font-size: .75rem; }
.rep__budget-name { font-weight: 500; color: var(--neutral-700); }
.rep__budget-val { font-weight: 600; color: var(--neutral-900); }
.rep__budget-track { height: 8px; overflow: hidden; border-radius: var(--r-pill); background: var(--neutral-100); }
.rep__budget-bar { display: block; height: 100%; width: 0; border-radius: var(--r-pill); transition: width .9s ease-out; }

/* --------------------------------------------------------------------------
   Selecting inside a mock — the incoming values
   --------------------------------------------------------------------------
   Applied by src/scripts/sections/mock-controls.js to the text a selection
   rewrote, never to the card around it: the panels, rows and stat tiles hold
   still while the figures and labels inside them change. Four pixels and
   200ms, which is enough to show that the card answered and small enough to
   read as a value updating rather than as the section arriving again.

   The class is mock-in rather than is-entering because tabs.js already uses
   is-entering on .panel-fade for the tab swap, and a shared name would have
   let a tab change animate every row inside the panel it was building.
   -------------------------------------------------------------------------- */
@keyframes mock-in {
  from { opacity: 0; transform: translate3d(0, 4px, 0); }
  to   { opacity: 1; transform: none; }
}

.mock-in {
  animation: mock-in .2s var(--ease-brand) both;
  animation-delay: calc(var(--enter-i, 0) * 22ms);
}

/* The information is the point, the movement is not: reduced motion keeps
   every new value and drops the travel. */
@media (prefers-reduced-motion: reduce) {
  .mock-in { animation: none; }
}
