/* =============================================================================
   FILE: public/css/bundles.css
   Protocol Bundle Cards — Day 15 (B3)
   ============================================================================= */

:root {
  --bundle-gold:   #8B6F5E;
  --bundle-pale:   #F9F3EE;
  --bundle-border: #E8DDD5;
  --bundle-green:  #5A8A6E;
  --bundle-radius: 14px;
  --bundle-trans:  240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------------------
   Section wrapper
   --------------------------------------------------------------------------- */
.bundles-section {
  padding: 40px 0;
}

.bundles-section__header {
  text-align: center;
  margin-bottom: 32px;
}

.bundles-section__badge {
  display: inline-block;
  background: var(--bundle-pale);
  color: var(--bundle-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--bundle-border);
  margin-bottom: 10px;
}

.bundles-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C2218;
  margin: 0 0 8px;
}

.bundles-section__subtitle {
  font-size: 0.875rem;
  color: #7A6E65;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------------
   Bundle Grid
   --------------------------------------------------------------------------- */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Bundle Card
   --------------------------------------------------------------------------- */
.bundle-card {
  background: #fff;
  border: 1px solid var(--bundle-border);
  border-radius: var(--bundle-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--bundle-trans), transform var(--bundle-trans);
  position: relative;
}

.bundle-card:hover {
  box-shadow: 0 8px 32px rgba(44, 34, 24, 0.12);
  transform: translateY(-2px);
}

/* Featured glow */
.bundle-card--featured {
  border-color: var(--bundle-gold);
  box-shadow: 0 2px 16px rgba(139, 111, 94, 0.14);
}

/* Locked overlay */
.bundle-card--locked {
  opacity: 0.7;
}

.bundle-card__lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(44, 34, 24, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
}

/* Featured ribbon */
.bundle-card__ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bundle-gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Card header area */
.bundle-card__header {
  background: var(--bundle-pale);
  padding: 28px 20px 20px;
  text-align: center;
  position: relative;
}

.bundle-card__emoji {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.bundle-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2C2218;
  margin: 0 0 4px;
  line-height: 1.3;
}

.bundle-card__category {
  font-size: 0.72rem;
  color: #7A6E65;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Card body */
.bundle-card__body {
  padding: 16px 20px;
  flex: 1;
}

.bundle-card__desc {
  font-size: 0.8rem;
  color: #7A6E65;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* Item chips */
.bundle-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}

.bundle-card__item-chip {
  font-size: 0.68rem;
  background: #F5F2EF;
  color: #7A6E65;
  border-radius: 8px;
  padding: 2px 8px;
  border: 1px solid var(--bundle-border);
}

/* Pricing row */
.bundle-card__pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bundle-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2C2218;
}

.bundle-card__original-price {
  font-size: 0.8rem;
  color: #BDB5AE;
  text-decoration: line-through;
}

.bundle-card__savings {
  font-size: 0.72rem;
  background: #EDF5F0;
  color: var(--bundle-green);
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 7px;
  margin-left: auto;
}

/* CTA */
.bundle-card__cta {
  width: 100%;
  background: var(--bundle-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--bundle-trans);
  letter-spacing: 0.01em;
}

.bundle-card__cta:hover { background: #6B5244; }

.bundle-card__cta:disabled {
  background: #BDB5AE;
  cursor: not-allowed;
}

/* Loading shimmer for bundles section */
@keyframes bundle-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.bundle-skeleton {
  height: 340px;
  border-radius: var(--bundle-radius);
  background: linear-gradient(90deg, #f0ebe5 25%, #faf7f4 50%, #f0ebe5 75%);
  background-size: 800px 100%;
  animation: bundle-shimmer 1.4s infinite;
}

@media (max-width: 600px) {
  .bundle-grid { grid-template-columns: 1fr; }
}
