/**
 * IntervAI Pro - Dashboard Styles
 */

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-welcome-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.hero-welcome-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-greeting {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.hero-subtext {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.hero-stats-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-stat-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-readiness-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.readiness-ring-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 1rem;
}

.readiness-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.readiness-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.readiness-fill {
  fill: none;
  stroke: var(--color-emerald);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 48; /* 82% */
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
  transition: stroke-dashoffset 1s ease;
}

.readiness-score-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.readiness-score-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.readiness-score-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.readiness-verdict {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-emerald);
  margin-bottom: 0.25rem;
}

.readiness-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Track Cards Grid */
.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid var(--border-glass);
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.track-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.icon-code-bg { background: rgba(99, 102, 241, 0.15); color: var(--color-sky); }
.icon-sys-bg { background: rgba(6, 182, 212, 0.15); color: var(--color-cyan); }
.icon-star-bg { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald); }
.icon-lead-bg { background: rgba(245, 158, 11, 0.15); color: var(--color-amber); }

.track-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.track-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.track-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-glass);
}

/* Company Roadmaps Row */
.company-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.company-card {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.company-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-2px);
}

.company-logo {
  font-size: 1.8rem;
}

.company-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.company-info span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Recent Sessions List */
.history-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-glass);
}

.history-item-row:last-child {
  border-bottom: none;
}

.history-role {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.history-q, .history-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-right: 0.75rem;
}

.empty-history-box {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

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