/* ===========================================================
   BLOCKPREIS – ITEMS PAGE STYLESHEET
   =========================================================== */

/* ========= Page Header ========= */

.bp-page-header h1 {
  margin: 0 0 0.6rem;
}

.bp-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.bp-page-sub {
  max-width: 40rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Header mit Bunny-Illustration */
.bp-page-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2rem;
  align-items: center;
}

.bp-page-header-art img {
  width: 100%;
  max-width: 520px;
  border-radius: 1.5rem;
  display: block;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.bp-section-tight {
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
}

/* ========= Filterbereich ========= */

.bp-filters-shell {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.bp-filters-main {
  padding: 1.1rem 1.1rem 0.8rem;
}

.bp-filters-top {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bp-search-wrapper,
.bp-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bp-search-label,
.bp-filter-label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.bp-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.14s ease,
              box-shadow 0.14s ease,
              background 0.14s ease;
}

.bp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 107, 61, 0.4);
  background: rgba(0, 0, 0, 0.6);
}

.bp-textarea {
  border-radius: 14px;
  resize: vertical;
  min-height: 80px;
}

/* Filter-Row */

.bp-filters-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

/* Filterchips */

.bp-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.bp-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.08s ease;
}

.bp-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.bp-chip-active {
  background: var(--accent);
  color: #0d0713;
  border-color: var(--accent);
}

/* ========= Hint Card ========= */

.bp-hint-card {
  padding: 1rem 1.2rem;
}

.bp-hint-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.bp-hint-card p {
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* ========= Items Layout ========= */

.bp-items-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.2fr);
  gap: 1.4rem;
  align-items: stretch;
}

/* ========= Itemliste ========= */

.bp-items-panel {
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bp-items-head h2 {
  margin: 0;
  font-size: 1rem;
}

.bp-items-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.bp-items-scroll {
  margin-top: 0.5rem;
  max-height: 480px;
  overflow: auto;
  padding-right: 0.2rem;
}

/* Item-Row */

.bp-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bp-item-row {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0.45rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.bp-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.bp-item-active {
  background: rgba(255, 159, 60, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 159, 60, 0.4);
}

.bp-item-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Größere Icons in der Liste */
.bp-item-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Bild füllt die Icon-Box */
.bp-item-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bp-item-name {
  font-size: 0.9rem;
}

.bp-item-meta {
  font-size: 0.76rem;
  color: var(--text-soft);
}

.bp-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bp-item-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.bp-item-price-main {
  font-size: 0.86rem;
}

.bp-item-price-range {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.bp-item-demand-pill {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ========= Detailpanel ========= */

.bp-detail-panel {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.bp-detail-badge {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0;
}

/* Icon im Detail – größer & vollflächig */
.bp-detail-image-wrap {
  width: 96px;
  height: 96px;
  border-radius: 1.4rem;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent),
              radial-gradient(circle at 80% 90%, rgba(255, 159, 60, 0.4), transparent),
              rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  margin: 0.4rem 0;
  overflow: hidden;
}

/* Bild nutzt den kompletten Rahmen */
.bp-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Float-Animation fürs ausgewählte Itembild */
.bp-detail-float {
  animation: bp-detail-float 3s ease-in-out infinite;
}

@keyframes bp-detail-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.bp-detail-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
}

/* ✅ NEU: TAGS im Detailpanel */
.bp-detail-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 0.15rem 0 0;
}

.bp-tag-pill{
  font-size:.78rem;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255, 255, 255, 0.06);
  border:1px solid rgba(255, 255, 255, 0.10);
  color:rgba(255, 255, 255, 0.85);
}

.bp-detail-demand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.bp-demand-tag {
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bp-detail-trend {
  color: var(--text-soft);
}

.bp-detail-prices {
  display: flex;
  gap: 1rem;
  margin-top: 0.3rem;
}

.bp-detail-price-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bp-detail-label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.bp-detail-value {
  font-size: 0.98rem;
}

.bp-detail-description {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

/* ========= Chart ========= */

.bp-detail-chart {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.bp-detail-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}

.bp-chart-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.bp-chart-graph {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.06), transparent),
              rgba(4, 3, 9, 0.9);
  padding: 0.6rem 0.8rem;
  box-sizing: border-box;
  overflow: hidden;
}

.bp-chart-svg {
  width: 100%;
  height: 100%;
}

.bp-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.6;
}

.bp-chart-dot {
  fill: #fff;
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 0.3;
  cursor: pointer;
}

/* Beim Hovern Punkt etwas hervorheben */
.bp-chart-dot:hover {
  r: 2.4;
}

.bp-chart-hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ========= Community Votes ========= */

.bp-detail-votes {
  margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(12, 9, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-detail-vote-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.bp-vote-btn {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: background 0.14s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.bp-vote-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.bp-vote-btn-active {
  background: var(--accent);
  color: #0d0713;
  box-shadow: 0 0 0 1px rgba(255, 159, 60, 0.7);
}

.bp-vote-btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bp-vote-info {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ========= Responsive ========= */

@media (max-width: 960px) {
  .bp-page-header-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-page-header-art {
    order: -1;
    justify-self: center;
  }

  .bp-filters-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-items-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-items-scroll {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .bp-filters-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-items-panel,
  .bp-detail-panel {
    padding: 0.9rem 0.9rem 1rem;
  }

  .bp-item-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .bp-item-right {
    justify-content: space-between;
    width: 100%;
  }

  .bp-detail-prices {
    flex-direction: column;
  }
}
