/* Documentation Pages Enhanced Styling */

/* Container styling - scoped to main content only */
main .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Typography */
main .container h1 {
  font-family: "Montserrat", sans-serif;
  color: var(--vxm-brand-blue);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--vxm-brand-blue);
  text-transform: uppercase;
}

main .container h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--vxm-dark);
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--vxm-brand-blue);
  text-transform: uppercase;
}

main .container h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--vxm-success);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  text-transform: uppercase;
}

main .container h4 {
  font-family: "Montserrat", sans-serif;
  color: var(--vxm-gray-700);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

main .container h5,
main .container h6 {
  font-family: "Montserrat", sans-serif;
  color: #444444;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
main .container p {
  font-family: "Montserrat", sans-serif;
  color: var(--vxm-gray-600);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

main .container p strong {
  color: var(--vxm-gray-700);
  font-weight: 600;
}

/* Links */
main .container a {
  color: var(--vxm-brand-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

main .container a:hover {
  color: var(--vxm-success);
  border-bottom: 1px solid var(--vxm-success);
}

/* Lists */
main .container ul,
main .container ol {
  font-family: "Montserrat", sans-serif;
  color: var(--vxm-gray-600);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

main .container ul li,
main .container ol li {
  margin-bottom: 0.75rem;
  position: relative;
}

main .container ul li::marker {
  color: var(--vxm-brand-blue);
}

main .container ol li::marker {
  color: var(--vxm-brand-blue);
  font-weight: 600;
}

main .container li strong {
  color: var(--vxm-gray-700);
  font-weight: 600;
}

/* Horizontal rules - make them subtle */
main .container hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2.5rem 0;
  opacity: 0.5;
}

/* Code blocks */
main .container pre {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

main .container code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  color: var(--vxm-gray-700);
  line-height: 1.6;
}

main .container p code {
  background-color: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #d32f2f;
}

/* Special callouts */
main .container p:has(strong:first-child) {
  background-color: #f0fdf9;
  border-left: 4px solid var(--vxm-brand-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* Back link styling */
main .container > p:last-child {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

main .container > p:last-child a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0;
}

main .container > p:last-child a:before {
  content: "← ";
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Responsive design */

/* Comparison Table Wrapper */
.comparison-wrapper {
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Comparison Table Base */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--vxm-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  table-layout: fixed;
  min-width: 800px;
}

/* Column Widths */
.comparison-table .feature-col {
  width: 20%;
}

.comparison-table .platform-col {
  width: 26.66%;
}

/* Table Header */
.comparison-table thead {
  background: linear-gradient(135deg, #3B6DB8 0%, #20ad96 100%);
}

.comparison-table th {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: black;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
  vertical-align: middle;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

.comparison-table th.feature-col {
  text-align: left;
  font-size: 1rem;
}

.comparison-table th img {
  max-width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.comparison-table th div {
  font-size: 0.875rem;
  line-height: 1.3;
  margin-top: 0.5rem;
}

/* Table Body */
.comparison-table tbody tr {
  transition: all 0.2s ease;
}

.comparison-table tbody tr:nth-child(odd) {
  background-color: var(--vxm-white);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.comparison-table tbody tr:hover {
  background-color: #f0fdf9 !important;
  box-shadow: 0 2px 8px rgba(0, 191, 166, 0.15);
}

.comparison-table td {
  font-family: "Montserrat", sans-serif;
  color: var(--vxm-gray-600);
  padding: 1.25rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table td.feature-name {
  font-weight: 600;
  color: #1f2937;
  background-color: #f8f9fa;
  border-right: 2px solid #e5e7eb;
  text-align: left;
}

/* Remove border from last row */
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive Design */

@media (max-width: 1024px) {
  .comparison-table {
    min-width: 700px;
    font-size: 0.85rem;
  }

  .comparison-table th {
    padding: 1.25rem 0.75rem;
    font-size: 0.875rem;
  }

  .comparison-table td {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }

  .comparison-table th img {
    max-width: 60px;
  }
}

@media (max-width: 767px) {
  main .container {
    padding: 40px 15px;
  }

  main .container h1 {
    font-size: 2rem;
  }

  main .container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  main .container h3 {
    font-size: 1.25rem;
  }

  main .container h4 {
    font-size: 1.125rem;
  }

  main .container ul,
  main .container ol {
    padding-left: 1.5rem;
  }

  main .container pre {
    padding: 1rem;
    font-size: 0.875rem;
  }
  .comparison-wrapper {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .comparison-wrapper::after {
    content: "← Swipe to see all columns →";
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: #f0fdf9;
    color: var(--vxm-brand-blue);
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border-top: 2px solid var(--vxm-brand-blue);
  }

  .comparison-table {
    min-width: 650px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.875rem 0.625rem;
    font-size: 0.8rem;
  }

  .comparison-table th img {
    max-width: 50px;
  }
}

@media (max-width: 480px) {
  main .container h1 {
    font-size: 1.75rem;
  }

  main .container h2 {
    font-size: 1.375rem;
  }

  main .container pre {
    padding: 0.75rem;
  }
  .comparison-table {
    min-width: 600px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .comparison-table th img {
    max-width: 40px;
  }
}
