/* ============================================================
   NIREV AI — Dashboard  [v3 — Hero Design]
   ============================================================ */

/* ── Hero Section ── */
.dashboard-hero {
  position: relative;
  background: linear-gradient(135deg,
    rgba(201, 168, 76, 0.07) 0%,
    rgba(224, 123, 0, 0.04) 40%,
    transparent 70%
  );
  border: 1px solid var(--black-border);
  border-radius: 20px;
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: 200px;
  animation: fade-up var(--dur-slow) var(--ease-out) both;
}

/* Decorative top border */
.dashboard-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-pure) 30%,
    var(--orange-core) 70%,
    transparent 100%
  );
  opacity: 0.5;
}

/* Subtle glow behind character area */
.dashboard-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse 80% 100% at 100% 50%,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Hero Content */
.dashboard-hero__content {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.dashboard-hero__greeting {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: var(--space-2);
  font-weight: 400;
}

.dashboard-hero__title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--white-primary);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.dashboard-hero__title span {
  background: linear-gradient(135deg, var(--gold-pure) 0%, var(--gold-bright) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-hero__sub {
  font-size: var(--text-base);
  color: var(--white-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.6;
  max-width: 440px;
}

.dashboard-hero__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  background: linear-gradient(135deg, var(--orange-core), var(--orange-bright));
  color: #0A0A0A;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast);
  box-shadow: 0 2px 12px rgba(224,123,0,0.25);
}

.dashboard-hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(224,123,0,0.35);
}

.dashboard-hero__link {
  font-size: var(--text-sm);
  color: var(--white-muted);
  cursor: pointer;
  transition: color var(--dur-fast);
  border: none;
  background: none;
  padding: 10px var(--space-3);
}

.dashboard-hero__link:hover { color: var(--gold-bright); }

/* Hero Character */
.dashboard-hero__character {
  flex-shrink: 0;
  width: 220px;
  z-index: 1;
  position: relative;
}

.dashboard-hero__character img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 48px rgba(201,168,76,0.18))
          drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}

@media (max-width: 1100px) {
  .dashboard-hero__character { width: 160px; }
  .dashboard-hero__title { font-size: 2.25rem; }
}

@media (max-width: 900px) {
  .dashboard-hero { padding: var(--space-6); }
  .dashboard-hero__character { display: none; }
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stats-grid { grid-template-columns: 1fr; } }

/* ── Stat Card ── */
.stat-card {
  background: var(--black-surface);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-smooth),
              border-color var(--dur-base),
              box-shadow var(--dur-base);
  box-shadow: var(--shadow-card);
  animation: fade-up var(--dur-slow) var(--ease-out) both;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.10s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.20s; }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card--gold:hover   { border-color: var(--gold-line); box-shadow: var(--shadow-gold-sm); }
.stat-card--orange:hover { border-color: var(--orange-line); box-shadow: var(--shadow-orange); }

/* Top accent line */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0;
  transition: opacity var(--dur-base);
}

.stat-card--gold::before   { background: linear-gradient(90deg, var(--gold-dim), var(--gold-pure)); }
.stat-card--orange::before { background: linear-gradient(90deg, var(--orange-core), var(--orange-bright)); }
.stat-card:hover::before   { opacity: 1; }

.stat-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-secondary);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.stat-card__value {
  font-family: var(--font-ui);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
  animation: count-up var(--dur-slow) var(--ease-spring) both;
}

.stat-card--gold   .stat-card__value { color: var(--gold-bright); }
.stat-card--orange .stat-card__value { color: var(--orange-bright); }

.stat-card__trend {
  font-size: var(--text-sm);
  color: var(--white-secondary);
  letter-spacing: -0.01em;
}

.stat-card__trend.up   { color: var(--status-success); }
.stat-card__trend.down { color: var(--status-danger); }

/* ── Dashboard Grid ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

@media (max-width: 1000px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.section-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--white-primary);
  letter-spacing: -0.01em;
}

.section-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-bright);
  transition: color var(--dur-fast);
  opacity: 0.8;
  cursor: pointer;
}

.section-link:hover { opacity: 1; color: var(--orange-light); }

/* ── Activity List ── */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4);
  background: var(--black-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--black-border);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  cursor: pointer;
  animation: stagger-in var(--dur-slow) var(--ease-out) both;
}

.activity-item:nth-child(1) { animation-delay: 0.05s; }
.activity-item:nth-child(2) { animation-delay: 0.10s; }
.activity-item:nth-child(3) { animation-delay: 0.15s; }

.activity-item:hover {
  background: var(--black-card);
  border-color: var(--black-subtle);
  transform: translateX(3px);
}

.activity-item__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.activity-item__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.activity-item__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.activity-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white-primary);
  letter-spacing: -0.01em;
}

.activity-item__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-secondary);
  letter-spacing: 0.04em;
}

.activity-item__score {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Quick Actions ── */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--black-elevated);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  color: var(--white-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--dur-fast);
  cursor: pointer;
  letter-spacing: -0.01em;
}

.quick-action-btn:hover {
  background: var(--black-card);
  border-color: var(--orange-line);
  color: var(--orange-bright);
  transform: translateY(-1px);
}

.quick-action-btn__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--white-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
  transition: background var(--dur-fast);
}

.quick-action-btn:hover .quick-action-btn__icon { background: var(--orange-ghost); }

/* ── Intelligence Panel ── */
.intel-panel {
  background: var(--intel-bg);
  border: 1px solid var(--intel-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--intel-glow);
}

.intel-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.intel-panel__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--white-primary);
  letter-spacing: -0.01em;
}

.intel-panel__title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-core);
  box-shadow: 0 0 8px var(--orange-core);
  animation: glow-pulse 2s ease-in-out infinite;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: intel-reveal var(--dur-base) var(--ease-out) both;
}

.insight-item:first-child { padding-top: 0; }
.insight-item:last-child  { border-bottom: none; padding-bottom: 0; }
.insight-item:nth-child(1) { animation-delay: 0.0s; }
.insight-item:nth-child(2) { animation-delay: 0.07s; }
.insight-item:nth-child(3) { animation-delay: 0.14s; }
.insight-item:nth-child(4) { animation-delay: 0.21s; }

.insight-item__icon {
  font-size: var(--text-base);
  color: var(--orange-bright);
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  text-align: center;
}

.insight-item__content { flex: 1; min-width: 0; }

.insight-item__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white-secondary);
  margin-bottom: 4px;
}

.insight-item__value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white-primary);
  letter-spacing: -0.01em;
}

.insight-bar-wrap {
  flex: 1;
  max-width: 80px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.insight-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-core), var(--orange-bright));
  border-radius: var(--radius-pill);
  animation: reveal-bar var(--dur-slow) var(--ease-out) both;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-8);
}

.empty-state__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  opacity: 0.2;
}

.empty-state__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.empty-state__text {
  font-size: var(--text-sm);
  max-width: 280px;
  margin: 0 auto var(--space-6);
  line-height: 1.7;
  color: var(--white-muted);
}
