/* ══════════════════════════════════════════════════════════════════
   YardIQ Interactive Dashboard Mock
   ══════════════════════════════════════════════════════════════════ */

.featured-visual {
  position: relative;
}

.dashboard-mock {
  background: var(--bg-surface);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Window chrome ── */

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-pink);
}
.mock-dots { display: flex; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }
.mock-chrome-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #444468;
  margin-left: 0.4rem;
}

/* ── Dashboard body ── */

.mock-body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Stat cards ── */

.mock-row {
  display: flex;
  gap: 0.6rem;
}
.mock-stat-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.1rem;
}
.mock-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444468;
  margin-bottom: 0.4rem;
}
.mock-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.mock-unit {
  font-size: 0.8rem;
  color: #555;
  font-weight: 400;
}
.mock-value-text {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 0.2rem;
  min-height: 2.5em;
}
.mock-delta {
  font-size: 0.65rem;
  color: var(--teal);
  font-family: var(--font-mono);
}
.delta-arrow { color: var(--green); }

/* Counter animation */
.counter {
  display: inline-block;
  min-width: 2ch;
}

/* Typing cursor */
.typing-target { position: relative; }
.typing-target.typing::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  color: var(--teal);
  margin-left: 1px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Data pulse effect ── */
@keyframes dataPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.mock-value.pulse {
  animation: dataPulse 0.6s ease-in-out;
}

/* ── NDVI Grid ── */

.mock-ndvi {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.1rem;
  position: relative;
}

.ndvi-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  margin-top: 0.5rem;
}
.ndvi-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.ndvi-cell.revealed {
  opacity: 0.8;
  transform: scale(1);
}
.ndvi-cell:hover {
  opacity: 1 !important;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(77, 184, 72, 0.4);
  z-index: 2;
  position: relative;
}

/* NDVI Tooltip */
.ndvi-tooltip {
  position: absolute;
  background: #1a1a3e;
  border: 1px solid var(--border-teal);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 10;
  white-space: nowrap;
}
.ndvi-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.ndvi-tooltip-zone { color: var(--text-muted); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ndvi-tooltip-value { color: var(--teal); font-weight: 700; margin: 0.2rem 0; }
.ndvi-tooltip-status { font-size: 0.55rem; }
.ndvi-tooltip-status[data-status="Healthy"] { color: var(--green); }
.ndvi-tooltip-status[data-status="Fair"] { color: var(--yellow); }
.ndvi-tooltip-status[data-status="Stressed"] { color: #CC5555; }

/* ── Timeline ── */

.mock-timeline-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.1rem;
}

.timeline-track {
  height: 20px;
  border-radius: 3px;
  background: #0d1a12;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}
.timeline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a3322, #2a5a32, #4DB848, #68cc60, #4DB848, #2a5530);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 3px;
}
.timeline-fill.expanded { transform: scaleX(1); }

/* Shimmer overlay */
.timeline-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  opacity: 0;
}
.timeline-shimmer.active {
  opacity: 1;
  animation: shimmerSlide 2.5s ease-in-out 0.8s;
}
@keyframes shimmerSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Month markers */
.timeline-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 16.2%,
    rgba(0, 0, 0, 0.15) 16.2%,
    rgba(0, 0, 0, 0.15) 16.7%
  );
  pointer-events: none;
}

.timeline-months {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}
.timeline-months span {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: #333355;
}
