﻿/* ============================================================
   ASI Computer — Product Specs Shared Stylesheet
   Used by all standalone spec pages in the /specs/ folder.
   Designed for embedding into product detail pages via JS fetch().
   ============================================================ */

/* ---- Specs Layout ---- */
.dji-specs-page {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg);
  padding: 2.5rem 0 4rem;
}

.dji-specs-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.dji-specs-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.dji-specs-header p {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dji-specs-group {
  margin-bottom: 3rem;
}

.dji-specs-group-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  padding-left: 0.5rem;
}

.dji-specs-category {
  margin-bottom: 2rem;
}

.dji-specs-category-title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.dji-specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dji-specs-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}

.dji-specs-table tbody tr:last-child {
  border-bottom: none;
}

/* Zebra striping */
.dji-specs-table tbody tr.row-even {
  background: #ffffff;
}

.dji-specs-table tbody tr.row-odd {
  background: #f7f8fc;
}

/* Subtle hover accent on rows */
.dji-specs-table tbody tr:hover {
  background: rgba(17, 56, 212, 0.04);
}

.dji-specs-table tbody tr.row-odd:hover {
  background: rgba(17, 56, 212, 0.07);
}

.dji-specs-table td {
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-small);
  vertical-align: top;
  line-height: 1.6;
}

.dji-specs-table td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  width: 38%;
}

.dji-specs-table td:last-child {
  color: var(--text-primary);
}

/* Superscript footnote styling */
.dji-specs-table td:last-child sup {
  font-size: 0.7em;
  vertical-align: super;
  color: var(--accent);
  cursor: default;
}

/* Multi-line value formatting (from <br> replacements) */
.dji-specs-table td:last-child {
  white-space: pre-line;
}

.dji-specs-footnote {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.dji-specs-footnote p {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.dji-specs-footnote p:last-child {
  margin-bottom: 0;
}

.dji-specs-footnote strong {
  color: var(--text-primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .dji-specs-page {
    padding: 1.5rem 0 3rem;
  }

  .dji-specs-header {
    margin-bottom: 2rem;
  }

  .dji-specs-table {
    border-radius: var(--radius-sm);
  }

  .dji-specs-table td {
    padding: 0.625rem 1rem;
    font-size: var(--fs-xs);
  }

  .dji-specs-table td:first-child {
    width: 40%;
    font-size: var(--fs-xs);
  }

  .dji-specs-group {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .dji-specs-page {
    padding: 1rem 0 2.5rem;
  }

  .dji-specs-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .dji-specs-group-title {
    font-size: var(--fs-h4);
    padding-left: 0.375rem;
  }

  /* Card-style mobile layout */
  .dji-specs-table {
    display: block;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .dji-specs-table thead {
    display: none;
  }

  .dji-specs-table tbody {
    display: block;
  }

  .dji-specs-table tbody tr.row-even {
    background: #ffffff;
  }

  .dji-specs-table tbody tr.row-odd {
    background: #f7f8fc;
  }

  .dji-specs-table tbody tr {
    display: block;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-xs);
  }

  .dji-specs-table tbody tr:last-child {
    border-bottom: none;
  }

  .dji-specs-table tbody tr:hover {
    background: rgba(17, 56, 212, 0.04);
  }

  .dji-specs-table td {
    display: block;
    width: 100%;
    padding: 0.15rem 0;
    font-size: var(--fs-xs);
    line-height: 1.5;
  }

  .dji-specs-table td:first-child {
    width: 100%;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .dji-specs-table td:last-child {
    padding-top: 0;
    color: var(--text-primary);
    white-space: pre-line;
  }

  /* Category separator accent on first card in each group */
  .dji-specs-table tbody tr:first-child td:first-child {
    border-left: 2px solid var(--accent);
    padding-left: 0.5rem;
  }

  .dji-specs-footnote {
    padding: 0.75rem 1rem;
  }
}
