/* * Pre-order Status Widget - Modern Glass Theme (2025)
 * Design: Responsive, Glassmorphism, Timeline Layout
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Oswald:wght@500;700&display=swap');

:root {
  /* Brand Colors */
  --bb-gold: #c69c3a;
  --bb-gold-glow: #e6b94d;
  --bb-blue: #06649a;
  --bb-blue-glow: #0d8bc7;
  
  /* Glass Theme Vars */
  --bb-bg-blur: 12px;
  --bb-glass-bg: rgba(255, 255, 255, 0.75);
  --bb-glass-border: rgba(255, 255, 255, 0.8);
  --bb-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --bb-text-main: #1a1a1a;
  --bb-text-muted: #555555;
  
  /* Spacing */
  --bb-radius: 20px;
}

/* --- Container Reset --- */
.bb-widget-modern {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  color: var(--bb-text-main);
  box-sizing: border-box;
  margin: 0;
  line-height: 1.6;
}

.bb-widget-modern * {
  box-sizing: border-box;
}

/* --- Main Glass Container --- */
.bb-glass-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bb-glass-bg);
  backdrop-filter: blur(var(--bb-bg-blur));
  -webkit-backdrop-filter: blur(var(--bb-bg-blur));
  border: 1px solid var(--bb-glass-border);
  box-shadow: var(--bb-card-shadow);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* Add a subtle top gradient line for premium feel */
.bb-glass-container::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--bb-gold), var(--bb-blue));
}

/* --- Header Section --- */
.bb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bb-main-title {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 1px;
  background: -webkit-linear-gradient(45deg, #111, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bb-subtitle {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  color: var(--bb-text-muted);
}
.bb-updated-badge {
  font-size: 0.85rem;
  background: rgba(0,0,0,0.05);
  padding: 4px 12px;
  border-radius: 20px;
  color: #666;
  font-weight: 500;
}

/* --- Status Grid (Cards) --- */
.bb-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.bb-glass-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--bb-radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bb-glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
}

.bb-status-info { margin-bottom: 1.5rem; }
.bb-status-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 0.5rem;
}
.bb-status-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: #222;
}
.bb-status-desc { margin: 0; color: #666; font-size: 0.95rem; }

/* Progress Bars */
.bb-progress-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}
.bb-progress-track {
  flex-grow: 1;
  height: 14px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.bb-progress-fill {
  height: 100%;
  border-radius: 10px;
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
/* Shimmer Effect */
.bb-progress-fill::after {
  content: ''; position: absolute; top:0; left:0; bottom:0; right:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  animation: bb-shimmer 2s infinite;
}
@keyframes bb-shimmer { 100% { transform: translateX(100%); } }

.fill-gold { background: linear-gradient(90deg, var(--bb-gold), var(--bb-gold-glow)); }
.fill-blue { background: linear-gradient(90deg, var(--bb-blue), var(--bb-blue-glow)); }

.bb-progress-stat {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 3ch;
  text-align: right;
}
.stat-gold { color: var(--bb-gold); }
.stat-blue { color: var(--bb-blue); }

/* --- Divider --- */
.bb-ornamental-divider {
  height: 40px;
  background-image: url('https://api.blackbriarmusic.com/img/perks/line-spacer.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  margin: 2rem 0;
}

/* --- Updates Feed (Timeline Style) --- */
.bb-updates-section {
  position: relative;
}

.bb-section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--bb-gold);
  padding-left: 15px;
  color: #333;
}

/* The Timeline Container */
.bb-updates-list {
  position: relative;
  padding-left: 30px; /* Make room for the line */
  border-left: 2px solid rgba(198, 156, 58, 0.3); /* faint gold line */
  margin-left: 10px;
}

.bb-update-card {
  position: relative; /* Context for the dot */
  padding: 0; 
  overflow: hidden;
  margin-bottom: 3rem; /* Space between cards */
  display: flex;
  flex-direction: column;
  
  /* separation styles */
  border-top: 4px solid var(--bb-gold); /* Top accent to separate from previous */
  background: rgba(255, 255, 255, 0.75); /* Slightly more opaque */
}

/* The Timeline Dot */
.bb-update-card::before {
  content: '';
  position: absolute;
  top: 25px; /* Align with the date/header */
  left: -38px; /* Move back to sit on the timeline line */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bb-gold);
  border: 3px solid #fff; /* White ring around dot */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
}

/* Distinct Header Area */
.bb-card-header {
  padding: 1.2rem 2rem;
  /* Distinct background to separate title from content */
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.bb-date {
  font-size: 0.75rem;
  color: var(--bb-gold); /* Gold date looks premium */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.25rem;
}

.bb-update-title {
  font-size: 1.4rem;
  margin: 0;
  color: #111;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  line-height: 1.2;
}

.bb-body-text {
  padding: 1.5rem 2rem 2rem;
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}
.bb-body-text p { margin-bottom: 1rem; }
.bb-body-text p:last-child { margin-bottom: 0; }


/* --- Gallery & Image Fixes (The "Crop" Magic) --- */
.bb-media-frame {
  width: 100%;
  background: #f0f0f0;
  position: relative;
  /* Enforce Cinematic Aspect Ratio */
  aspect-ratio: 21 / 9; 
  /* Fallback height limit if ratio fails */
  max-height: 500px;
  overflow: hidden;
}

.bb-media-track {
  width: 100%; height: 100%; position: relative;
}

.bb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }

/* The Image Fix: Cover the area, center it */
.bb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center 30%; /* Focus slightly on top-center */
  display: block;
}

/* Gallery Nav */
.bb-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer; z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.2s;
  user-select: none;
}
.bb-nav-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.bb-nav-btn.prev { left: 15px; }
.bb-nav-btn.next { right: 15px; }

.bb-badge-count {
  position: absolute; bottom: 15px; right: 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  z-index: 10;
  backdrop-filter: blur(4px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .bb-glass-container { padding: 1.5rem; }
  .bb-header { flex-direction: column; align-items: center; text-align: center; }
  .bb-status-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bb-media-frame { aspect-ratio: 16/9; } /* Taller images on mobile */
  .bb-main-title { font-size: 2rem; }
}

@media (max-width: 600px) {
  /* Timeline Adjustments for smaller screens */
  .bb-updates-list {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
  }
  .bb-update-card::before {
    display: none; /* Hide dots on mobile to save space */
  }
  .bb-media-frame { aspect-ratio: 16/9; }
}