/* =========================
   Global variables & base
   ========================= */
:root{
  --bg-dark-1: #0b0b0b;
  --bg-dark-2: #121212;
  --panel-bg: rgba(0,0,0,0.35);
  --panel-border: rgba(255,255,255,0.08);
  --muted: rgba(255,255,255,0.7);
  --accent: #0096ff;
  --gold: #ffd700;
  --card-radius: 12px;
  --card-padding: 14px;
  --transition-fast: 0.18s ease;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; }
body { font-family: var(--font-sans); color: #e6e6e6; background: linear-gradient(180deg,var(--bg-dark-1),var(--bg-dark-2)); }

/* =========================
   Breadcrumb
   ========================= */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: transform 0.28s ease, color 0.18s ease;
  display: inline-block;
}

.breadcrumb a:hover {
  color: #ffffff;
  transform: translateX(-5px);
}

/* =========================
   Detail container / panels
   ========================= */
.blook-detail-container,
.section-card,
.stat-item,
a.pack-chip {
  background: var(--panel-bg);
  border-radius: 10px;
  border: 2px solid var(--panel-border);
  padding: 20px;
}

.blook-detail-container {
  border-radius: 15px;
  padding: 30px;
}

/* =========================
   Hero layout (image left, info right)
   ========================= */
.blook-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto auto auto;
  gap: 34px 30px;
  align-items: start;
  width: 100%;
  max-width: 1100px;
  margin: 5px auto;
}

/* left image column spanning rows */
.blook-hero-image {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
  max-width: 320px;
}

.blook-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* =========================
   Title row and rarity
   ========================= */
/* single authoritative definition for title row */
.blook-title-row {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
  margin-top: 6px;
}

/* title styling */
.blook-title {
  font-size: 2.6rem;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg,#fff,#e6e6e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* rarity badge inline with title */
.blook-rarity-badge {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 1.05em;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.02);
}

/* =========================
   Stats grid and stat items
   ========================= */
.parent-grid {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr; /* example */
  grid-template-rows: auto 1fr;
  position: relative;
  gap: 16px;
}

/* important grid sits in the top row but visually overlaps into row 2 */
.blook-important-stats-grid {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  position: relative;
  z-index: 2;                     /* sits above normal stats */
  transform: translateY(var(--important-shift, 55px));
  transition: transform .18s ease;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin: 20px 0 30px 0;
}

/* normal grid stays in the second row but is pulled up slightly */
.blook-stats-grid {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-bottom: 30px;
}

.stat-item-larger {
  background: rgba(0,0,0,0.45);
  padding: 18px;
  border-radius: 10px;
  border: 2px solid var(--panel-border);
  text-align: center;
  min-width: 296px;
  flex: 0 0 auto;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-item-larger:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.6); }

.stat-item {
  background: rgba(0,0,0,0.45);
  padding: 18px;
  border-radius: 10px;
  border: 2px solid var(--panel-border);
  text-align: center;
  min-width: 140px;
  flex: 0 0 auto;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-item:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.6); }

.stat-label {
  font-size: 0.9em;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.6em;
  font-weight: 800;
  color: #ffffff;
}

/* =========================
   Found in / packs chips
   ========================= */
.found-in-section {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  margin-top: 10px;
}

.found-in-section h3 { margin-bottom: 15px; font-size: 1.15em; color: #fff; }

/* pack chip styled as non-link chip */
a.pack-chip {
  background: rgba(0,0,0,0.42);
  border: 3px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.18s ease, transform 0.18s ease;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

a.pack-chip:link, a.pack-chip:visited { color: #fff; text-decoration: none; }
a.pack-chip:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  border-color: var(rgba(255,255,255,0.08));
  background: rgba(0,0,0,0.5);
}
a.pack-chip:focus { outline: 3px solid rgba(255,255,255,0.12); outline-offset: 2px; }

/* image inside chip */
a.pack-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

/* =========================
   Section cards and recommendations
   ========================= */
.blook-sections { display: grid; gap: 20px; }

.section-card {
  background: rgba(0,0,0,0.42);
  padding: 22px;
  border-radius: 10px;
  border: 2px solid var(--panel-border);
  margin: 15px;
}

.section-card.highlight {
  border-color: var(--gold);
  background: rgba(255,215,0,0.06);
}

.section-card h2 { margin-bottom: 20px; font-size: 1.25em; color: #fff; }

.recommendation-box {
  background: rgba(0,150,255,0.12);
  border: 2px solid rgba(0,150,255,0.35);
  padding: 18px;
  border-radius: 10px;
}

.recommendation-box.warning {
  background: rgba(255,150,0,0.12);
  border-color: rgba(255,150,0,0.35);
}

.recommendation-box h3 { margin-bottom: 10px; }

/* =========================
   Pack price and small utilities
   ========================= */

/* =========================
   Accessibility & small helpers
   ========================= */
.loading { color: var(--muted); padding: 18px; text-align: center; }
a { color: inherit; }

/* =========================
   Responsive rules
   ========================= */
@media (max-width: 768px) {
  .blook-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 12px;
  }
  .blook-hero-image { grid-column: 1 / -1; grid-row: 1 / 2; width: 60%; max-width: 260px; margin: 0 auto; }
  .blook-title-row { grid-column: 1 / -1; grid-row: 2 / 3; justify-content: center; text-align: center; }
  .blook-stats-grid { grid-column: 1 / -1; grid-row: 3 / 4; justify-content: center; }
  .blook-important-stats-grid { grid-column: 1 / -1; grid-row: 1 / 1; justify-content: center; }
  .found-in-section { grid-column: 1 / -1; grid-row: 4 / 5; align-items: center; text-align: center; }
  .blook-title { font-size: 2rem; }
  .stat-value { font-size: 1.4em; }
}

