/* Custom styling for mechanics.html - Process & Timeline Focus */

/* Enhanced 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);
}

/* Centered Highlight Box */
.highlight-box.center-highlight {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 2px solid rgba(20, 184, 166, 0.3);
}

.highlight-box.center-highlight p {
  font-size: 1.5rem;
  margin: 0;
}

/* Product Comparison Cards */
.grid-2 .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.grid-2 .card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.15);
}

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

.grid-2 .card h4 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

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

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

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

table tbody tr {
  transition: background 0.2s ease;
}

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

table tbody td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

table tbody tr td:first-child {
  font-weight: 600;
  color: var(--text);
}

/* Highlight special rows */
table tbody tr td strong {
  color: var(--primary);
}

/* Timeline Enhancement - Detailed Process Flow */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin: 2.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 50%, var(--border) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--background);
  box-shadow: 0 0 0 2px var(--primary), 0 0 8px rgba(20, 184, 166, 0.4);
  z-index: 2;
}

.timeline-item h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

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

.timeline-item p:last-child {
  margin-bottom: 0;
}

/* Code Block Enhancement (Blockchain Receipt) */
pre {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

pre code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--primary);
  display: block;
}

/* Stat Box Enhancement */
.stat-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;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.stat-box p {
  margin: 0.5rem 0;
}

.stat-box p:first-of-type {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.stat-box p:last-of-type {
  font-size: 1rem;
  color: var(--primary);
  font-style: italic;
}

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

.feature-list li {
  padding: 0.875rem 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(--primary);
}

/* X-List (Things to Avoid) */
.x-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.x-list li {
  padding: 0.875rem 1.25rem;
  margin: 0.5rem 0;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  border-left: 3px solid #ef4444;
  position: relative;
  padding-left: 2.5rem;
  color: var(--text-muted);
}

.x-list li::before {
  content: '✗';
  position: absolute;
  left: 1rem;
  color: #ef4444;
  font-weight: 700;
  font-size: 1rem;
}

/* Card Grid at Bottom */
.card-grid .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: all 0.3s ease;
}

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

.card-grid .card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.card-grid .card p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

/* Section Spacing */
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;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline::before {
    left: 0.4rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -1.85rem;
    width: 14px;
    height: 14px;
  }

  pre {
    padding: 1.5rem;
    font-size: 0.8rem;
  }

  pre code {
    font-size: 0.75rem;
  }

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