/* ============================================
   WIDGET: GOLD PRICE HISTORY TABLE (Frame 34)
   10-day price history with change badges
   ============================================ */

/* ---- Outer white card ---- */
.gh-card {
  background-color: #ffffff;
  border: 2px solid #f1f1f1;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
}

/* ---- Header: title + description ---- */
.gh-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.gh-header__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  color: #000000;
  margin: 0;
}

.gh-header__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #333333;
  margin: 0;
}

/* ---- Table wrapper (enables horizontal scroll on small screens) ---- */
.gh-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Table ---- */
.gh-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0 0;
  table-layout: fixed;
   border-collapse: separate;
  border-spacing: 0 16px
}



/* ---- Header row ---- */
.gh-table thead tr {
  background-color: #f6f6f6;
}

.gh-table thead th {
  padding: 13px 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: #000000;
  text-align: center;
  white-space: nowrap;
  border: none;
}

/* First header cell (Noida / Year) */
.gh-table thead th:first-child {
  border-radius: 10px 0 0 10px;
  padding-left: 16px;
  text-align: left;
  min-width: 90px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: normal;
}

/* Last header cell */
.gh-table thead th:last-child {
  border-radius: 0 10px 10px 0;
}

/* ---- Data rows ---- */
.gh-table tbody tr {
  background-color: #f6f6f6;
}


.gh-table tbody {
  border-spacing: 0 8px;
}

/* Trick: simulate row gap using transparent pseudo rows */
.gh-table tbody tr:not(:last-child) td {
  /* bottom pseudo-border acts as gap */
  box-shadow: 0 8px 0 #ffffff;
}

.gh-table tbody td {
  padding: 13px 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #000000;
  text-align: center;
  white-space: nowrap;
  border: none;
}

/* Date cell */
.gh-table tbody td:first-child {
  border-radius: 10px 0 0 10px;
  padding-left: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
}

/* Last cell in row */
.gh-table tbody td:last-child {
  border-radius: 0 10px 10px 0;
}

/* ---- Price cell ---- */
.gh-price {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
}

/* ---- Change badge ---- */
.gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.gh-badge--up {
  background-color: #bb0e0e;
  color: #ffffff;
}

.gh-badge--down {
  background-color: #0a6700;
  color: #ffffff;
}

.gh-badge--neutral {
  background-color: #fad369;
  color: #000000;
}

/* Arrow icons inside badge */
.gh-badge__icon {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
}

/* ---- Show More button ---- */
.gh-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background-color: #d71920;
  border: none;
  border-radius: 10px;
  font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.gh-show-more:hover {
  background-color: #b5141a;
}

/* ---- Legend row ---- */
.gh-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.gh-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: #000000;
  white-space: nowrap;
}

.gh-legend__icon {
  font-style: normal;
  font-size: 16px;
  font-family: Helvetica, Arial, sans-serif;
}
.gct-row .gct-cell:first-child {white-space: normal;line-height: 28px;}
@media (max-width: 991px) {
    .gct-row .gct-cell:first-child {
        position: sticky;
        left: 0;
        background: #f6f6f6;
        z-index: 2;
        box-shadow: 2px 0 5px rgba(0, 0, 0, .08);
        white-space: normal;
    }
    .gh-table thead th:first-child, .gh-table tbody td:first-child {
        position: sticky;
        left: 0;
        background: #f6f6f6;
        z-index: 2;
        min-width: 90px;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1) !important;
        padding-left: 8px;
        white-space: normal;
        width: 120px;
    }
}
/* ============================================
   RESPONSIVE: Tablet (≤900px)
   ============================================ */
@media (max-width: 900px) {  
  .gh-header__desc {
    font-size: 16px;
    line-height: 24px;
  }

  .gh-table {
    min-width: 620px;
  }

  .gh-table thead th,
  .gh-table tbody td {
    padding: 10px 5px;
    font-size: 13px;
  }

  .gh-table tbody td:first-child {
    font-size: 13px;}

  .gh-legend__item {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
 .gh-header__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;}

     .gh-header__desc {
    font-size: 16px;
    line-height: 28px;
  }


  .gh-table {
    min-width: 700px;
  }
}

/* ============================================
   RESPONSIVE: Mobile (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .gh-card {padding: 14px;gap: 16px;}
  .gh-badge {font-size: 12px;padding: 1px 4px;gap: 3px;}
  .gh-legend {gap: 14px;}
  .gh-legend__item {font-size: 14px;}
  .gs-price-card__header{column-gap: 10px;width: 100%;flex-wrap: wrap;row-gap: 8px;}
  .gs-price-card__location-name{white-space: normal;line-height: 22px;}
  .gs-price-card__location {align-items: start;}
}
