/* ==========================================================================
   BBC Comparison Table — Design Tokens & Reset
   ========================================================================== */

.bbc-comparison,
.bbc-comparison *,
.bbc-comparison *::before,
.bbc-comparison *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ==========================================================================
   Section Container
   ========================================================================== */

.bbc-comparison {
  margin-inline: auto;
  text-align: center;
  background-color: transparent;
}


/* ==========================================================================
   Table Wrapper — enables horizontal scroll on small screens
   ========================================================================== */

.bbc-table-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  background: #000;

}

/* Subtle scrollbar styling */
.bbc-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.bbc-table-wrapper::-webkit-scrollbar-track {
  background: #000;
}

.bbc-table-wrapper::-webkit-scrollbar-thumb {
  background: #2e2e2e;
  border-radius: 3px;
}

/* ==========================================================================
   Table
   ========================================================================== */

.bbc-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  table-layout: fixed;
  border: none;
  margin: 0;
  background: transparent;
  border: none !important;
  margin: 0 !important;
}

.bbc-table th,
.bbc-table td {
  border: none !important;
  background: transparent;
}

/* ==========================================================================
   Table Head
   ========================================================================== */

.bbc-table__head {
  border-block-end: 1px solid rgba(212, 175, 55, 0.12);
}

.bbc-table__th {
  padding: 2rem 1.5rem !important;
  color: #c4c4c4;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;

  /* H5 */
  font-family: Mirella;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
}

.bbc-table__th--criteria {
  text-align: left;
  width: 22%;

  color: #7C7C7C;

  /* Heading Text */
  font-family: "Inter Display";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  /* 128.571% */
  text-transform: uppercase;
}

.bbc-table__th--highlight {
  color: #d4a84b;
}

/* Product name in header */
.bbc-table__product-name {
  display: inline;
}

.bbc-table__product-name--gold {
  color: #d4a84b;
}

/* Recommended badge */
.bbc-table__badge {
  display: inline-flex;
  margin-inline-start: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;

  padding: 2px 8px;

  border-radius: 4px;
  background: rgba(212, 175, 55, 0.12);
  font-family: "Inter Display";
  font-size: 8px;
  font-weight: 400;
  line-height: 2.25;
  text-transform: uppercase;
}

/* ==========================================================================
   Table Body
   ========================================================================== */

.bbc-table__row {
  border-block-end: 1px solid rgba(212, 175, 55, 0.12);
  transition: background-color 150ms ease;
}

.bbc-table__row:nth-child(odd) {
  background-color: #070605;
}

.bbc-table__row:nth-child(even) {
  background-color: #000;
}

.bbc-table__row:hover {
  background-color: #1a1a1a;
}

.bbc-table__row--last {
  border-block-end: none;
}

/* Table cells */
.bbc-table__td {
  padding: 1.5rem 1.5rem !important;
  text-align: center;
  vertical-align: middle;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #a0a0a0;
}

.bbc-table__td--criteria {
  text-align: left;
  white-space: nowrap;

  color: #BFBFBF;

  /* H6 */
  font-family: Mirella;
  font-size: 16px;
  font-weight: 400;
  line-height: 110%;
}

/* ==========================================================================
   Icons — Check & Cross
   ========================================================================== */

.bbc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bbc-icon--check {
  color: #c8a24e;
}

.bbc-icon--cross {
  color: #c75050;
}

/* ==========================================================================
   Text Values
   ========================================================================== */

.bbc-value {
  color: #7C7C7C;

  text-align: center;

  /* Number Text */
  font-family: "JetBrains Mono";
  font-size: 14px;
  font-weight: 400;
  line-height: 1.28;
}

.bbc-value--gold {
  color: #E2B967;
  font-weight: 500;
}

/* ==========================================================================
   Responsive — Card layout for small screens
   ========================================================================== */

@media (max-width: 768px) {


  /* Switch to card-based layout */
  .bbc-table {
    min-width: 0;
  }

  .bbc-table__head {
    /* Visually hide the header but keep accessible */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .bbc-table__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .bbc-table__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #2e2e2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2e2e2e;
  }

  .bbc-table__row:hover {
    background-color: #1a1a1a;
  }

  .bbc-table__td {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem !important;
    background: #252525;
  }

  .bbc-table__td::before {
    content: attr(data-label);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-block-end: 2px;
  }

  .bbc-table__td--criteria {
    grid-column: 1 / -1;
    text-align: center;
    background: #222222;
    padding: 1rem !important;
    font-size: 1rem;
    white-space: normal;
  }

  .bbc-table__td--criteria::before {
    display: none;
  }

  .bbc-table__td--highlight {
    background: rgba(200, 162, 78, 0.06);
  }
}

@media (max-width: 400px) {

  .bbc-table__td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   Animations — Viewport Entry
   ========================================================================== */

/* Initial hidden state */
.bbc-table__head,
.bbc-table__row {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 150ms ease;
}

/* In-view active state */
.bbc-table__head.bbc-comparison--in-view,
.bbc-table__row.bbc-comparison--in-view {
  opacity: 1;
  transform: translateY(0);
}