/**
 * BAREKAT HERITAGE STATS
 * 4 Independent Floating Medallion Cards on Hero Boundary
 */

.bk-heritage-stats {
  --bk-gold: #c9932b;
  --bk-gold-bright: #f8c24e;
  --bk-crimson: #990707;
  --bk-crimson-dark: #6e0c0c;
  --bk-cream-card: #fdfbf7;
  --bk-border: #ecdcc5;
  --bk-text: #1f1b18;

  position: relative;
  z-index: 5;
  margin-top: -65px;
  margin-bottom: 30px;
  direction: rtl;
  font-family: inherit;
  clear: both;
}

.bk-stats-shell {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: clamp(14px, 3.2vw, 36px);
}

/* 4 Floating Cards Grid */
.bk-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Standalone Card */
.bk-stat-token {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 60%, #faf5ea 100%);
  border: 1.5px solid var(--bk-border);
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(110, 10, 10, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.bk-stat-token:hover {
  transform: translateY(-8px);
  border-color: var(--bk-gold);
  box-shadow: 0 22px 48px rgba(153, 7, 7, 0.14), 0 0 22px rgba(248, 194, 78, 0.22);
}

/* Ornamental Gold Notch at Top of Card */
.bk-token-notch {
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d49a24, var(--bk-gold-bright), #d49a24);
  margin-bottom: 14px;
}

/* Royal Crimson & Gold Medallion Seal */
.bk-token-seal {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bk-crimson) 0%, var(--bk-crimson-dark) 100%);
  border: 1.5px solid var(--bk-gold-bright);
  box-shadow: 0 6px 16px rgba(153, 7, 7, 0.28), inset 0 1px 0 rgba(255, 230, 180, 0.35);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bk-stat-token:hover .bk-token-seal {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 22px rgba(153, 7, 7, 0.38), 0 0 15px rgba(248, 194, 78, 0.35);
}

.bk-token-seal svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Data Content */
.bk-token-data {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bk-token-title {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 800;
  color: var(--bk-crimson);
  line-height: 1.35;
}

.bk-token-figure {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  font-weight: 900;
  color: var(--bk-text);
  line-height: 1.1;
}

/* Responsive: Tablet (641px - 980px) */
@media (max-width: 980px) {
  .bk-heritage-stats {
    margin-top: -55px;
  }
  .bk-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Responsive: Mobile (<= 640px) */
@media (max-width: 640px) {
  .bk-heritage-stats {
    margin-top: -50px;
    margin-bottom: 20px;
  }
  .bk-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bk-stat-token {
    padding: 16px 10px 14px;
    border-radius: 16px;
  }
  .bk-token-notch {
    width: 26px;
    height: 2.5px;
    margin-bottom: 10px;
  }
  .bk-token-seal {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 9px;
  }
  .bk-token-seal svg {
    width: 25px;
    height: 25px;
  }
  .bk-token-figure {
    font-size: 1.4rem;
  }
  .bk-token-title {
    font-size: 0.86rem;
  }
}

/* Ultra Small (<= 360px) */
@media (max-width: 360px) {
  .bk-stats-grid {
    gap: 8px;
  }
  .bk-stat-token {
    padding: 13px 8px 12px;
  }
  .bk-token-figure {
    font-size: 1.25rem;
  }
  .bk-token-title {
    font-size: 0.78rem;
  }
}
