/*
 * Pre-order Status Widget - "Light Parchment" Theme
 */

/* Main Container & Theme */
.bb-widget {
  width: 100%;
  font-family: "Poppins", "Helvetica", "Sans-serif";
  color: #222;
}
.bb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: #f4f4f7;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('https://www.transparenttextures.com/patterns/light-paper-fibers.png');
  border: 1px solid #d1d5db;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Section Cards */
.bb-section-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.07);
}

/* Header */
.bb-header {
  text-align: center;
  margin: 0.5rem 0 2rem;
}
.bb-header .cfm-intro-title {
  color: #111;
  font-size: 2rem;
}
.bb-sub {
  color: #555;
  font-size: 1rem;
  max-width: 60ch;
  margin: 0.5rem auto 0;
}

/* Divider */
.bb-divider {
  border: 0;
  height: 32px;
  margin: 2rem auto;
  background-color: white;
  background-image: url('https://api.blackbriarmusic.com/img/perks/line-spacer.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Layout */
.bb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .bb-row { grid-template-columns: 1fr; }
}
.bb-card { padding: 0; background: none; border: none; }

/* Titles & Subtitles */
.bb-status .title {
  font-family: "Oswald", "Helvetica", "Sans-serif";
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.5rem;
  color: #111;
}
.bb-status .sub {
  color: #666;
  margin: 0.25rem 0 1rem;
  font-size: 0.9rem;
  min-height: 2.7rem;
}

/* Progress Bars */
.bb-bar {
  background-color: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  height: 28px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}
.bb-bar .fill {
  height: 100%;
  width: 0;
  border-radius: 12px;
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-bar .fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 100%;
  transform: translateX(-100%);
  background-image: linear-gradient(100deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 90%);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Bar Colors */
.bb-bar .fill.processing {
  background-image: linear-gradient(45deg, #b38728, #d4a94a);
}
.bb-bar .fill.shipping {
  background-image: linear-gradient(45deg, #06649a, #0d8bc7);
}
.bb-percent {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

/* Updates */
.bb-section-card .title { margin-bottom: 1rem; }
.bb-updated { font-family: "Poppins", sans-serif; font-weight: 400; color: #777; font-size: 0.8rem; }
.bb-updates .item {
  position: relative;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border: none;
}
.bb-updates .item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background-color: #e5e7eb; border-radius: 3px;
}
.bb-updates .item:not(:last-child) { border-bottom: 1px solid #f0f2f5; }
.bb-updates .u-title {
  font-weight: 600; font-size: 1.1rem; margin: 0 0 0.25rem; color: #111;
}
.bb-updates .u-time { color: #777; font-size: 0.75rem; margin: 0 0 0.5rem; }
.bb-updates .u-body { line-height: 1.6; font-size: 0.95rem; color: #333; }

/* Simple slider (one image per view) */
.bb-gallery { position: relative; margin: 8px 0 10px; }
.bb-g-viewport { overflow: hidden; border-radius: 10px; }
.bb-g-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.bb-g-slide { flex: 0 0 100%; scroll-snap-align: center; }
@media (min-width:640px){ .bb-g-slide { flex-basis: 100%; } }
.bb-g-slide img {
  width: 100%; height: auto; display: block; object-fit: cover; background: #f4f4f4;
}

/* Nav buttons */
.bb-g-prev, .bb-g-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; background: rgba(0,0,0,0.55); color: #fff;
  width: 36px; height: 36px; border-radius: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bb-g-prev { left: 8px; }
.bb-g-next { right: 8px; }
.bb-g-prev:hover, .bb-g-next:hover { background: rgba(0,0,0,0.75); }
