/* Custom styling for content pages - global, technical, team, ethics, regulatory */

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

/* Enhanced 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;
  line-height: 1.6;
}

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

/* Content Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

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

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

.card h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.125rem;
}

.card p {
  margin: 0.75rem 0;
  line-height: 1.7;
  color: var(--text-muted);
}

.card ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.card ul li {
  margin: 0.75rem 0;
  line-height: 1.6;
  color: var(--text-muted);
}

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

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

/* Highlight Boxes */
.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;
}

.highlight-box p {
  margin: 0.75rem 0;
  line-height: 1.7;
}

.highlight-box ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.highlight-box li {
  margin: 0.75rem 0;
}

/* Team Member Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.team-member .member-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.team-member h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.5rem;
}

.team-member .member-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
  font-size: 1rem;
}

.team-member p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
}

/* Architecture Diagram Boxes */
.arch-box {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
}

.arch-box h4 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.25rem;
  text-align: center;
}

.arch-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arch-box ul li {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: var(--surface-elevated);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.arch-box ul li::before {
  content: '→';
  margin-right: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

/* Tech Stack Lists */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tech-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
}

.tech-category h4 {
  margin: 0 0 1.5rem 0;
  color: var(--primary);
  font-size: 1.125rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.tech-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-category ul li {
  padding: 0.75rem 0;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}

.tech-category ul li:last-child {
  border-bottom: none;
}

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

/* Check List */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.check-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Policy Boxes (for ethics/regulatory) */
.policy-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.policy-box h4 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.policy-box p {
  margin: 0.75rem 0;
  line-height: 1.7;
  color: var(--text-muted);
}

.policy-box ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.policy-box li {
  margin: 0.75rem 0;
  line-height: 1.6;
}

/* Warning Boxes */
.warning-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.warning-box h4 {
  margin: 0 0 1rem 0;
  color: #ef4444;
  font-size: 1.25rem;
}

.warning-box p {
  margin: 0.75rem 0;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Stat Boxes */
.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 .number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

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

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

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

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

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

  .tech-stack {
    grid-template-columns: 1fr;
  }

  .stat-box .number {
    font-size: 2.5rem;
  }

  table {
    font-size: 0.875rem;
  }

  table thead th,
  table tbody td {
    padding: 1rem;
  }
}
