/* AIBM Marketing Site - Components */
/* Cards, badges, progress bars, and reusable components */

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.card-body {
  margin-bottom: var(--space-lg);
}

.card-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-300);
}

/* Pillar Cards */
.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: currentColor;
}

.pillar-card.pillar-strategy { color: var(--pillar-strategy); }
.pillar-card.pillar-people { color: var(--pillar-people); }
.pillar-card.pillar-process { color: var(--pillar-process); }
.pillar-card.pillar-data { color: var(--pillar-data); }
.pillar-card.pillar-ai { color: var(--pillar-ai); }
.pillar-card.pillar-governance { color: var(--pillar-governance); }

/* Level Cards */
.level-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.level-card.expandable:hover {
  cursor: pointer;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.level-badge.level-0 { background-color: var(--level-0); }
.level-badge.level-1 { background-color: var(--level-1); }
.level-badge.level-2 { background-color: var(--level-2); color: var(--gray-900); }
.level-badge.level-3 { background-color: var(--level-3); }
.level-badge.level-4 { background-color: var(--level-4); }
.level-badge.level-5 { background-color: var(--level-5); }

.level-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.level-card.expanded .level-card-content {
  max-height: 1000px;
}

/* Progress Bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--gray-300);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-md) 0;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

/* Human vs AI Progress */
.dual-progress {
  display: flex;
  width: 100%;
  height: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-md) 0;
}

.human-progress {
  background-color: var(--gray-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.ai-progress {
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--white);
}

.badge-success {
  background-color: var(--pillar-people);
  color: var(--white);
}

/* Stats */
.stat-card {
  text-align: center;
  padding: var(--space-lg);
}

.stat-value {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  margin-top: var(--space-sm);
}

/* Timeline */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline-item {
  position: relative;
  padding-left: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--gray-300);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Icon */
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.icon-lg {
  width: 48px;
  height: 48px;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--gray-300);
  margin: var(--space-2xl) 0;
}

/* Icon sizes */
.icon-sm { width: 24px; height: 24px; }
.icon-md { width: 32px; height: 32px; }
.icon-lg { width: 48px; height: 48px; }
.icon-xl { width: 64px; height: 64px; }

/* Level/Pillar/Dept icons in headers */
.page-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

/* Chart containers */
.chart-container {
  margin: 2rem 0;
  text-align: center;
}

.chart {
  max-width: 100%;
  height: auto;
}

.chart-container figcaption {
  margin-top: 0.5rem;
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

/* Hero illustration */
.hero-illustration {
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
}

/* Level icons in lists */
.level-icon {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  vertical-align: middle;
}

/* Pillar icons */
.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

/* Department icons */
.department-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}
