/* ============================================================
 * Binderim public homepage — hero, popular searches, marketplace
 * listings, price momentum, SEO shortcuts.
 * Ported from the Binderim Design System handoff (design/styles.css).
 * Consumes tokens from css/shared/binderim-tokens.css. Loaded only on
 * the public homepage (Home/Index) via @section Styles.
 * ============================================================ */

/* ===== HERO ===== */
.bx-hero {
  position: relative;
  padding: 36px 32px 28px;
  border-radius: 20px;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--grad-hero);
  border: 1px solid var(--border-1);
  font-family: var(--font-sans);
}
.bx-hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(99, 102, 241, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.bx-hero-pattern {
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 25%, #6366f1 1.5px, transparent 1.5px),
    radial-gradient(circle at 75% 75%, #6366f1 1.5px, transparent 1.5px);
  background-size: 48px 48px;
  pointer-events: none;
}
.theme-dark .bx-hero-pattern { background-image:
    radial-gradient(circle at 25% 25%, #818cf8 1.5px, transparent 1.5px),
    radial-gradient(circle at 75% 75%, #818cf8 1.5px, transparent 1.5px); }
.bx-hero-inner { position: relative; z-index: 1; }

.bx-hero-heading { text-align: center; margin-bottom: 24px; }
.bx-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-1);
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 14px;
}
.bx-hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 4px rgba(99,102,241,0.20); animation: bx-ping 1.8s ease-in-out infinite; }
@keyframes bx-ping { 0%, 100% { box-shadow: 0 0 0 4px rgba(99,102,241,0.20); } 50% { box-shadow: 0 0 0 8px rgba(99,102,241,0); } }
.bx-hero-title {
  font-size: 2rem; font-weight: 800; color: var(--fg-1);
  margin: 0 auto 12px;
  letter-spacing: -0.5px; line-height: 1.2;
  max-width: 760px;
}
.bx-hero-title > :first-child { color: var(--color-brand); }
.bx-hero-title-rest { font-size: inherit; color: var(--fg-1); }
.bx-hero-title-rest .caret { color: var(--color-brand); animation: bx-blink 0.9s steps(2, end) infinite; }
@keyframes bx-blink { 50% { opacity: 0; } }
.bx-hero-sub {
  font-size: 1rem; color: var(--fg-3); margin: 0 auto;
  max-width: 620px; line-height: 1.6;
}

/* Game grid */
.bx-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.bx-game-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform 250ms var(--ease-standard), box-shadow 250ms, border-color 250ms;
}
.bx-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--indigo-400);
  box-shadow: var(--shadow-brand);
}
.bx-game-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo-50), var(--indigo-100));
  display: flex; align-items: center; justify-content: center;
}
.theme-dark .bx-game-icon { background: linear-gradient(135deg, #1e293b, #2d3a52); }
.bx-game-icon img { width: 32px; height: 32px; object-fit: contain; }
.bx-game-body { flex: 1; min-width: 0; }
.bx-game-title { font-size: 1rem; font-weight: 800; color: var(--fg-1); margin: 0 0 4px; }
.bx-game-desc  { font-size: 0.8rem; color: var(--fg-3); margin: 0 0 6px; line-height: 1.4; }
.bx-game-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.bx-stat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 8px;
  background: var(--slate-100); color: var(--slate-600);
}
.theme-dark .bx-stat-badge { background: rgba(99,102,241,0.12); color: var(--fg-2); }
.bx-stat-badge .bi { color: var(--color-brand); }
.bx-game-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--slate-100); color: var(--slate-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.theme-dark .bx-game-arrow { background: var(--slate-700); color: var(--slate-400); }
.bx-game-card:hover .bx-game-arrow { background: var(--color-brand); color: #fff; }

/* Feature slider */
.bx-feature-slider {
  background: var(--bg-canvas);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}
.bx-slide { display: flex; align-items: flex-start; gap: 14px; }
.bx-slide-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
}
.bx-slide-body { flex: 1; }
.bx-slide-title { font-size: 1rem; font-weight: 700; color: var(--fg-1); margin: 0 0 4px; }
.bx-slide-desc { font-size: 0.88rem; color: var(--fg-3); margin: 0; line-height: 1.55; }
.bx-slide-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-1); }
.bx-slide-dots { display: flex; gap: 6px; }
.bx-slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--slate-300);
  transition: all 250ms var(--ease-standard);
}
.bx-slide-dot.active { width: 24px; border-radius: 4px; background: var(--color-brand); }

/* ===== SEO SHORTCUTS (Sık aranılar) ===== */
.bx-seo {
  background: var(--bg-canvas);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 22px 24px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.bx-seo-head { margin-bottom: 16px; }
.bx-seo-title {
  margin: 0 0 4px;
  font-size: 1.2rem; font-weight: 800;
  color: var(--fg-1);
  letter-spacing: -0.3px;
}
.bx-seo-sub { margin: 0; color: var(--fg-3); font-size: 0.88rem; line-height: 1.55; max-width: 640px; }
.bx-seo-groups { display: flex; flex-direction: column; gap: 14px; }
.bx-seo-group { display: flex; flex-direction: column; gap: 8px; }
.bx-seo-group-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 2px;
}
.bx-seo-group-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-brand);
}
.bx-seo-group-count {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  background: var(--bg-sunken); color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.bx-seo-group::after {
  content: ''; height: 1px; background: var(--border-1);
  margin-top: 6px;
}
.bx-seo-group:last-child::after { display: none; }
.bx-seo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-seo-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg-app);
  border: 1px solid var(--border-1);
  color: var(--fg-1);
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 180ms var(--ease-standard);
}
.bx-seo-chip:hover {
  background: var(--color-brand-soft);
  border-color: var(--indigo-300);
  color: var(--color-brand);
  transform: translateY(-1px);
}
.bx-seo-chip-icon { font-size: 11px; color: var(--fg-4); }
.bx-seo-chip:hover .bx-seo-chip-icon { color: var(--color-brand); }

/* ===== POPULAR SEARCHES ===== */
.bx-popular {
  background: var(--bg-canvas);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.bx-popular-head h2 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; color: var(--fg-1); }
.bx-popular-head p  { margin: 0 0 12px; color: var(--fg-3); font-size: 0.85rem; }
.bx-popular-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-popular-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--slate-100);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 0.8rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.theme-dark .bx-popular-chip { background: var(--slate-900); border-color: var(--slate-700); color: #93c5fd; }
.bx-popular-chip:hover { background: var(--slate-200); }
.theme-dark .bx-popular-chip:hover { background: var(--slate-800); }

/* ===== SECTION HEADER ===== */
.bx-section {
  background: var(--bg-canvas);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
  font-family: var(--font-sans);
}
.bx-section-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 14px;
}
.bx-section-title { font-size: 1.2rem; font-weight: 800; color: var(--fg-1); margin: 0 0 4px; }
.bx-section-sub   { font-size: 0.88rem; color: var(--fg-3); margin: 0; }
.bx-section-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700; color: var(--color-brand);
  text-decoration: none; white-space: nowrap;
}
.bx-section-link:hover { color: var(--color-brand-hover); }

/* ===== CARD GRID (marketplace) ===== */
.bx-card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .bx-card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .bx-card-grid { grid-template-columns: repeat(2, 1fr); } }

.bx-card {
  position: relative;
  background: var(--bg-app);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 250ms var(--ease-standard), box-shadow 250ms, border-color 250ms;
}
.bx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--indigo-400); }

.bx-card-image {
  position: relative; display: block;
  background: var(--indigo-50);
  aspect-ratio: 3 / 4;
}
.bx-card-image-tall { aspect-ratio: 3 / 4; }
.theme-dark .bx-card-image { background: #172033; }
.bx-card-art { width: 100%; height: 100%; display: block; object-fit: contain; }
.bx-card-fav {
  position: absolute; top: 6px; left: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 0;
  color: #e74c3c; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.bx-card-tags { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.bx-card-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; line-height: 1.4;
  background: rgba(255,255,255,0.94); color: var(--fg-1);
  box-shadow: var(--shadow-xs);
}
.bx-card-pill-cond-nm, .bx-card-pill-cond-m { color: var(--color-success); }
.bx-card-pill-cond-lp { color: #b45309; }
.bx-card-pill-foil { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.bx-card-pill-lang { color: var(--fg-2); font-family: var(--font-mono); }

.bx-card-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.bx-card-title { font-size: 0.78rem; font-weight: 700; color: var(--fg-1); line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.05em; }
.bx-card-meta  { font-size: 0.7rem; color: var(--fg-3); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-card-seller { font-size: 0.7rem; color: var(--color-accent); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
.bx-card-seller .bi { color: var(--color-success); }

.bx-price-block { margin-top: 4px; }
.bx-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.bx-card-price { font-size: 0.95rem; font-weight: 800; color: var(--color-money); font-variant-numeric: tabular-nums; letter-spacing: -0.1px; }
.bx-delta {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 0.65rem; font-weight: 800;
  padding: 1px 5px; border-radius: 999px;
}
.bx-delta-good { background: rgba(4,120,87,0.10); color: var(--color-price-up); }
.bx-delta-bad  { background: rgba(185,28,28,0.10); color: var(--color-price-down); }
.bx-delta-eq   { background: var(--slate-100); color: var(--fg-3); }
.theme-dark .bx-delta-eq { background: var(--slate-800); }
.bx-fair { display: flex; align-items: center; gap: 3px; font-size: 0.66rem; color: var(--fg-3); line-height: 1.3; margin-top: 1px; }
.bx-fair-amount { font-family: var(--font-mono); font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.bx-fair-info { font-size: 9px; color: var(--fg-4); cursor: help; }

.bx-card-foot { margin-top: 6px; display: flex; gap: 5px; }
.bx-card-cta {
  flex: 1;
  border: 0; border-radius: 6px;
  background: var(--grad-cta); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 6px 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--font-sans);
  text-decoration: none;
}
.bx-card-icon-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--border-1); border-radius: 6px;
  background: var(--bg-canvas); color: var(--fg-3);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; text-decoration: none;
}

/* ===== MOMENTUM ===== */
.bx-momentum-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .bx-momentum-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .bx-momentum-grid { grid-template-columns: repeat(2, 1fr); } }
.bx-momentum-card {
  background: var(--bg-app);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 250ms var(--ease-standard), box-shadow 250ms, border-color 250ms;
}
.bx-momentum-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--indigo-400); }
.bx-momentum-prices { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.bx-yest { font-size: 0.7rem; color: var(--fg-3); }
.bx-today {
  font-size: 1rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.bx-today-up   { color: var(--color-price-up); }
.bx-today-down { color: var(--color-price-down); }
.bx-today .bx-delta { font-size: 0.7rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.bx-today .bx-delta-up   { background: rgba(34,197,94,0.10);  color: var(--color-success); }
.bx-today .bx-delta-down { background: rgba(220,38,38,0.10);  color: var(--color-danger); }

/* ===== HIGH-RATED SELLERS ===== */
.bx-seller-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .bx-seller-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .bx-seller-grid { grid-template-columns: 1fr; } }

.bx-seller-card {
  background: var(--bg-app);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 250ms var(--ease-standard), box-shadow 250ms, border-color 250ms;
}
.bx-seller-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--indigo-400); }

.bx-seller-head { display: flex; align-items: center; gap: 10px; }
.bx-seller-avatar {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-cta); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 800;
  text-decoration: none; line-height: 1;
}
.bx-seller-id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bx-seller-name {
  font-size: 0.92rem; font-weight: 800; color: var(--fg-1);
  text-decoration: none; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bx-seller-name:hover { color: var(--color-brand); }
.bx-seller-rating { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--fg-3); flex-wrap: wrap; }
.bx-seller-stars { display: inline-flex; gap: 1px; color: #f59e0b; font-size: 0.72rem; }
.bx-seller-score { font-weight: 800; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.bx-seller-count { color: var(--fg-3); }

.bx-seller-comment {
  position: relative;
  background: var(--bg-canvas);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 10px 12px 22px;
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.bx-seller-comment-icon { color: var(--color-accent); font-size: 0.85rem; }
.bx-seller-comment-text {
  margin: 0; font-size: 0.78rem; color: var(--fg-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bx-seller-comment-author {
  position: absolute; right: 12px; bottom: 8px;
  font-size: 0.68rem; font-weight: 700; color: var(--fg-3);
}
.bx-seller-comment-empty {
  align-items: center; justify-content: center; text-align: center;
  padding: 16px 12px; color: var(--fg-4); font-size: 0.76rem; font-style: italic;
}

.bx-seller-foot { display: flex; gap: 6px; }
.bx-seller-btn {
  flex: 1;
  border-radius: 7px;
  font-size: 0.72rem; font-weight: 700;
  padding: 7px 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; white-space: nowrap;
  font-family: var(--font-sans);
}
.bx-seller-btn-ghost {
  background: var(--bg-canvas); color: var(--fg-2);
  border: 1px solid var(--border-1);
}
.bx-seller-btn-ghost:hover { border-color: var(--indigo-400); color: var(--color-brand); }
.bx-seller-btn-primary {
  background: var(--grad-cta); color: #fff; border: 0;
}
.bx-seller-btn-primary:hover { opacity: 0.92; }

/* ===== FAQ ===== */
.bx-faq {
  background: var(--bg-canvas);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 22px 24px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.bx-faq-head { margin-bottom: 14px; }
.bx-faq-title {
  margin: 0 0 4px;
  font-size: 1.2rem; font-weight: 800;
  color: var(--fg-1);
  letter-spacing: -0.3px;
}
.bx-faq-sub { margin: 0; color: var(--fg-3); font-size: 0.88rem; line-height: 1.55; max-width: 640px; }
.bx-faq-list { display: flex; flex-direction: column; gap: 8px; }
.bx-faq-item {
  border: 1px solid var(--border-1);
  border-radius: 10px;
  background: var(--bg-sunken);
  overflow: hidden;
}
.bx-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.bx-faq-q::-webkit-details-marker { display: none; }
.bx-faq-q h3 {
  margin: 0;
  font-size: 0.92rem; font-weight: 700;
  color: var(--fg-1);
  line-height: 1.4;
}
.bx-faq-chevron {
  flex-shrink: 0;
  color: var(--fg-3);
  transition: transform 0.2s ease;
}
.bx-faq-item[open] .bx-faq-chevron { transform: rotate(180deg); }
.bx-faq-a {
  padding: 0 16px 14px;
  color: var(--fg-2);
  font-size: 0.88rem; line-height: 1.6;
}

/* ===== RESPONSIVE: HERO + SECTIONS ===== */
@media (max-width: 760px) {
  .bx-faq { padding: 18px 14px; }
  .bx-faq-title { font-size: 1.05rem; }
  .bx-faq-q h3 { font-size: 0.86rem; }
  .bx-hero { padding: 24px 18px 22px; border-radius: 16px; margin-bottom: 16px; }
  .bx-hero-title { font-size: 1.45rem; }
  .bx-hero-sub { font-size: 0.9rem; }
  .bx-game-grid { grid-template-columns: 1fr; gap: 10px; }
  .bx-section { padding: 16px 14px; }
  .bx-section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bx-section-title { font-size: 1.05rem; }
  .bx-seo { padding: 18px 14px; }
  .bx-seo-title { font-size: 1.05rem; }
  .bx-seo-chip { font-size: 0.78rem; padding: 7px 12px; }
}
