/* Custom styling for roadmap.html - Timeline & Phases */

/* Page Title */
main > h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

main > .text-muted {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--text-muted);
}

/* Phase Cards */
.phase-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  margin: 3rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px 12px 0 0;
}

.phase-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.2);
  transform: translateY(-2px);
}

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.phase-header h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--primary);
  border: none;
  padding: 0;
}

.phase-header h2::after {
  display: none;
}

.phase-timeline {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Deliverables Grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.deliverable-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  transition: all 0.3s ease;
}

.deliverable-item:hover {
  background: var(--surface);
  border-left-color: var(--accent);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.deliverable-item h4 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.125rem;
}

.deliverable-item p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.deliverable-item ul {
  margin: 1rem 0 0 0;
  padding-left: 1.25rem;
}

.deliverable-item ul li {
  margin: 0.5rem 0;
  color: var(--text-muted);
}

/* Milestones */
.milestones {
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.milestones h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

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

.milestone-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.milestone-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.125rem;
}

.milestone-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* KPIs/Metrics */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.kpi-box {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.kpi-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.kpi-box .kpi-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.kpi-box .kpi-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  position: relative;
  padding-left: 2.5rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.feature-list li strong {
  color: var(--text);
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px 0 0 12px;
}

.highlight-box h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Timeline Connector */
.timeline-connector {
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.timeline-connector::before,
.timeline-connector::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--background), 0 0 0 6px var(--primary);
}

.timeline-connector::before {
  top: -6px;
}

.timeline-connector::after {
  bottom: -6px;
}

/* Tables */
table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
}

table thead {
  background: var(--surface-elevated);
}

table thead th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  border-bottom: 2px solid var(--border);
}

table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--border);
}

table tbody tr:last-child {
  border-bottom: none;
}

table tbody tr:hover {
  background: var(--surface-elevated);
}

table tbody td {
  padding: 1.25rem 1.5rem;
}

/* Section Styling */
section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

section h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  main > h1 {
    font-size: 2rem;
  }

  .phase-card {
    padding: 2rem 1.5rem;
  }

  .phase-header {
    flex-direction: column;
  }

  .phase-header h2 {
    font-size: 1.75rem;
  }

  .deliverables-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-box .kpi-value {
    font-size: 2rem;
  }

  .milestone-item {
    gap: 1rem;
  }

  .milestone-icon {
    font-size: 1.5rem;
  }
}
