/* ==========================================================================
   BEATSHOUSE — Home Soft Simplify Layer v4.0
   Reduces visual complexity on [home] shortcode. Neutral palette.
   ========================================================================== */

.bh-app.bh-soft-home {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.bh-app.bh-soft-home .bh-hero-dynamic { height: 180px; }

.bh-app.bh-soft-home .bh-hero-noise,
.bh-app.bh-soft-home .bh-hero-slide  { opacity: 0.06 !important; }

.bh-app.bh-soft-home .bh-mode-tabs   { gap: 6px; margin-top: 6px; }
.bh-app.bh-soft-home .bh-mode-btn    { padding: 8px 10px; font-size: 8px; }

/* Consistent card — outer shell + inner highlight (double-bezel) */
.bh-app.bh-soft-home .bh-home-cta,
.bh-app.bh-soft-home .bh-sale-card,
.bh-app.bh-soft-home .bh-stream-panel,
.bh-app.bh-soft-home .bh-power-card,
.bh-app.bh-soft-home .bh-library-hub,
.bh-app.bh-soft-home .bh-service-card,
.bh-app.bh-soft-home .bh-profile-card {
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
              0 8px 24px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.22s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.38s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.38s cubic-bezier(0.19, 1, 0.22, 1);
}

.bh-app.bh-soft-home .bh-sale-card:hover,
.bh-app.bh-soft-home .bh-service-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
              0 12px 32px rgba(6, 6, 8, 0.5);
  transform: translateY(-1px);
}

/* Heading typography */
.bh-app.bh-soft-home .bh-home-cta h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Hide non-essential nav elements */
.bh-app.bh-soft-home .bh-nav-grid,
.bh-app.bh-soft-home .bh-primary-cta,
.bh-app.bh-soft-home .bh-mode-tabs {
  display: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Compact action button padding + touch baseline */
.bh-app.bh-soft-home .bh-sale-actions button,
.bh-app.bh-soft-home .bh-sale-actions a,
.bh-app.bh-soft-home .bh-home-actions a,
.bh-app.bh-soft-home .bh-home-actions button {
  padding: 10px 14px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.14s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-app.bh-soft-home .bh-sale-actions button:active,
.bh-app.bh-soft-home .bh-sale-actions a:active,
.bh-app.bh-soft-home .bh-home-actions a:active,
.bh-app.bh-soft-home .bh-home-actions button:active {
  transform: scale(0.96);
}

.bh-app.bh-soft-home .bh-home-actions  { display: none !important; }
.bh-app.bh-soft-home .bh-home-metric strong { font-size: 13px; }

/* ── Shortcut pills ── */
.bh-soft-shortcuts {
  margin: 8px 10px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.bh-soft-shortcuts::-webkit-scrollbar { height: 3px; }
.bh-soft-shortcuts::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.bh-soft-shortcut {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font: 700 8px / 1 'DM Mono', 'Space Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 6px;
  min-height: 44px;
  white-space: nowrap;
  text-align: center;
  touch-action: manipulation;
  transition: border-color 0.14s cubic-bezier(0.23, 1, 0.32, 1),
              color 0.14s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.14s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-soft-shortcut:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.bh-soft-shortcut:active {
  transform: scale(0.96);
  transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Compact mode ── */
.bh-app.bh-soft-home.bh-home-compact .bh-nav-grid       { display: none !important; }
.bh-app.bh-soft-home.bh-home-compact .bh-home-power     { display: none !important; }
.bh-app.bh-soft-home.bh-home-compact .bh-stream-panel   { display: none !important; }
.bh-app.bh-soft-home.bh-home-compact .bh-sales-grid .bh-sale-card:nth-child(n+3) { display: none; }
.bh-app.bh-soft-home.bh-home-compact .bh-library-hub .bh-lib-card:nth-child(n+7) { display: none; }
.bh-app.bh-soft-home.bh-home-compact .bh-service-panel.active .bh-service-grid,
.bh-app.bh-soft-home.bh-home-compact .bh-service-panel.active .bh-service-form   { display: none !important; }

/* ── Toggle wrap ── */
.bh-soft-toggle-wrap {
  margin: 8px 10px 0;
  display: flex;
  justify-content: flex-end;
}

.bh-soft-toggle {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  font: 700 8px / 1 'DM Mono', 'Space Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.14s cubic-bezier(0.23, 1, 0.32, 1),
              color 0.14s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.14s cubic-bezier(0.23, 1, 0.32, 1);
}

.bh-soft-toggle:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.bh-soft-toggle:active {
  transform: scale(0.96);
  transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .bh-app.bh-soft-home { max-width: 100% !important; }

  .bh-app.bh-soft-home .bh-hero-dynamic {
    height: 140px;
    padding: 0 12px;
  }

  .bh-app.bh-soft-home .bh-hero-dynamic h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .bh-app.bh-soft-home .bh-home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bh-soft-shortcuts {
    margin-top: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bh-app.bh-soft-home.bh-home-compact .bh-home-actions {
    grid-template-columns: 1fr;
  }

  .bh-app.bh-soft-home.bh-home-compact .bh-sales-grid .bh-sale-card:nth-child(n+2) {
    display: none;
  }
}
