/* ==========================================================================
   Custom Styles specific to the 4-Bit AC Nano-Processor Page
   ========================================================================== */

/* Animation Container & Cards */
/* ==================== LIGHT MODE TEXT OVERRIDES ==================== */
/* Forces pure black text for maximum readability in light mode */

:root.light-mode .diagram-desc,
:root.light-mode .comparison-table td {
    color: #000000;
}

/* Overrides the blue/indigo accent colors for table headers and bold text in light mode */
:root.light-mode .comparison-table th,
:root.light-mode .comparison-table strong {
    color: #000000;
    font-weight: 800; /* Makes it slightly thicker to compensate for the lack of color */
}

/* Optional: Make the card headers black in light mode too */
:root.light-mode .diagram-card h3 {
    color: #000000;
}

.animation-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.diagram-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  padding: 2rem;
  border-radius: 8px;
  text-align: left;
}

.diagram-card h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.diagram-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* SVG Wave Animations */
.svg-wrapper {
  background: rgba(4, 11, 17, 0.4);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border-main);
}

:root.light-mode .svg-wrapper {
  background: rgba(243, 243, 242, 0.6);
}

svg.wave-svg {
  width: 100%;
  height: auto;
  display: block;
}

.path-wave1 {
  stroke: var(--accent-primary);
  stroke-width: 3;
  fill: none;
  animation: slideWave 3s linear infinite;
}

.path-wave2 {
  stroke: var(--accent-secondary);
  stroke-width: 3;
  fill: none;
  animation: slideWave 3s linear infinite;
}



@keyframes slideWave {
  from {
    stroke-dashoffset: 100;
    stroke-dasharray: 20 10;
  }
  to {
    stroke-dashoffset: 0;
    stroke-dasharray: 20 10;
  }
}


/* Custom Comparison Table */
.table-container {
  overflow-x: auto;
  margin-top: 3rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th, 
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-main);
  border-right: 1px solid var(--border-main);
  color: var(--text-main);
  text-align: left;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: none;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table th {
  background-color: rgba(0, 212, 255, 0.05);
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Table Row Hover Effect */
.comparison-table tbody tr {
  transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.08); /* Subtle secondary accent hover */
}

.comparison-table strong {
  color: var(--accent-secondary);
}