/* Black Friday Page Styles */

.blackfriday-hero {
  padding: 120px 0 80px;
  background:
    radial-gradient(circle at 15% 20%, rgba(227,27,72,0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(188,46,145,0.15) 0%, transparent 45%),
    linear-gradient(135deg, #0b1220 0%, #1a1f2e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.blackfriday-hero .container { position: relative; z-index: 2; }

.bf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff;
}

.bf-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin: 16px 0 12px;
  background: linear-gradient(135deg, #ffffff 0%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bf-subtitle {
  color: #e5e7eb;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 760px;
}

.bf-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.bf-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Offers */
.bf-offers {
  padding: 60px 0 100px;
  background: #fff;
}

/* Category Sections */
.offer-category {
  margin-bottom: 60px;
}

.offer-category:last-child {
  margin-bottom: 0;
}

/* Black Friday Banner Image */
.bf-banner-image {
  margin: 60px 0;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.bf-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .bf-banner-image {
    margin: 40px 0;
    border-radius: 12px;
  }
  
  .bf-banner-image img {
    border-radius: 12px;
  }
}

.category-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.8rem;
  color: #081F2C;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #1f2937;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: glow-red 2s ease-in-out infinite;
}

@keyframes glow-red {
  0%, 100% { box-shadow: 0 0 10px rgba(220, 38, 38, 0.3); }
  50% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.6); }
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

@media (max-width: 900px){
  .offer-grid { grid-template-columns: 1fr; }
  .category-title { font-size: 1.5rem; }
}

.offer-card {
  border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: 16px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(31, 41, 55, 0.3);
}

.offer-card.popular {
  border: 2px solid #1f2937;
  position: relative;
}

.offer-card.popular::before {
  content: '⭐ BEST VALUE';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
  padding: 4px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 1;
}

.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--gradient-start, #B91C1C), var(--gradient-end, #7C2D92));
  color: #fff;
  position: relative;
  z-index: 1;
}

.offer-head h3 { font-size: 1.4rem; font-family: var(--font-heading, 'Oswald'); flex: 1 1 auto; }
.discount-badge {
  background: rgba(220, 38, 38, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Pricing Display */
.bf-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}

.bf-price-original {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.bf-price-now {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.bf-price-save {
  color: #fff;
  font-weight: 600;
  background: #dc2626;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  animation: pulse-save 2s ease-in-out infinite;
}

@keyframes pulse-save {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.offer-body { 
  padding: 22px; 
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.offer-body p { color: var(--text-secondary, #6B7280); }

.bf-features { 
  display: grid; 
  gap: 8px; 
  margin: 6px 0 4px;
  flex: 1;
}

.bf-feature {
  display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-primary, #081F2C);
}
.bf-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f2937; box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.15); }

.offer-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.offer-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Countdown (optional visual) */
.countdown {
  display: inline-flex; gap: 10px; margin-top: 16px; color: #fff; align-items: baseline;
}
.countdown .seg { 
  background: rgba(220, 38, 38, 0.25); 
  padding: 8px 10px; 
  border-radius: 8px; 
  font-weight: 700; 
  min-width: 54px; 
  text-align: center;
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}
.countdown .lbl { font-size: 11px; opacity: .9; display: block; font-weight: 500; color: #fff; }

/* Footer CTA */
.bf-footer-cta {
  background: linear-gradient(135deg, var(--gradient-start, #B91C1C), var(--gradient-end, #7C2D92));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.bf-footer-cta h2 { font-family: var(--font-heading, 'Oswald'); margin-bottom: 10px; }
.bf-footer-cta p { opacity: .95; margin-bottom: 18px; }

/* --- Urgency Enhancements --- */
.bf-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 44px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 10px, rgba(255,255,255,0.0) 10px 20px),
    linear-gradient(135deg, var(--gradient-start, #B91C1C), var(--gradient-end, #7C2D92));
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  z-index: 1001;
  overflow: hidden;
}

.bf-topbar-scroll {
  display: flex;
  width: fit-content;
  animation: scroll-left 30s linear infinite;
}

.bf-topbar-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
  height: 44px;
  white-space: nowrap;
}

.bf-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 14px;
  text-transform: uppercase;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.bf-topbar:hover .bf-topbar-scroll {
  animation-play-state: paused;
}

/* Legacy topbar styles (kept for compatibility) */
.bf-topbar .label { font-weight: 700; letter-spacing: .3px; display: inline-flex; align-items:center; gap:8px; }
.bf-topbar .label .dot { width:8px; height:8px; border-radius:50%; background:#fff; animation: pulse 1.2s infinite; }
.bf-topbar .countdown-mini { display: inline-flex; gap: 10px; font-weight: 700; }
.bf-topbar .seg { 
  background: rgba(255, 255, 255, 0.25); 
  padding: 6px 8px; 
  border-radius: 8px; 
  min-width: 50px; 
  text-align:center;
  color: #fff;
  font-weight: 800;
}
.bf-topbar .lbl { font-size: 10px; opacity: .9; display:block; font-weight: 500; }

/* Adjust page layout when topbar present */
body.bf-has-topbar .header { top: 44px; }
body.bf-has-topbar .scroll-progress-bar { top: 44px; position: fixed; }

.bf-urgency-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  animation: glow 1.8s ease-in-out infinite;
}

.offer-card { position: relative; }
.offer-card .ribbon {
  position: absolute; 
  top: 10px; 
  right: 10px; 
  padding: 6px 14px; 
  color: #fff; 
  font-weight: 800; 
  letter-spacing:.3px;
  background: linear-gradient(135deg, #ff3d6e, #ff9b3d); 
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  z-index: 10;
  font-size: 0.75rem;
}
.offer-card .ribbon span { display: inline-block; }

/* Sticky CTA (mobile-first) */
.bf-sticky-cta {
  position: fixed; left:0; right:0; bottom: 0; z-index: 1002;
  background: rgba(8, 31, 44, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 -8px 30px rgba(0,0,0,.2);
  padding: 12px 16px; display: flex; gap: 10px; align-items: center; justify-content: center;
}
.bf-sticky-cta .btn { padding: 12px 16px; font-size: 14px; }
.bf-sticky-cta .btn-primary { animation: wiggle 4s ease-in-out infinite; }
@media (min-width: 768px){ .bf-sticky-cta { display: none; } }

/* Animations */
@keyframes pulse { 0%,100%{ transform: scale(1); opacity: 1 } 50%{ transform: scale(1.2); opacity:.7 } }
@keyframes glow { 0%,100%{ box-shadow: 0 0 0 rgba(255,255,255,0.0) } 50%{ box-shadow: 0 0 30px rgba(255,255,255,0.2) } }
@keyframes wiggle {
  0%,100%{ transform: translateZ(0) }
  2%{ transform: rotate(-2deg) }
  4%{ transform: rotate(2deg) }
  6%{ transform: rotate(-2deg) }
  8%{ transform: rotate(2deg) }
  10%{ transform: translateZ(0) }
}

/* --- Black Theme --- */
.bf-theme-cyber .blackfriday-hero {
  padding: 140px 0 80px;
  background:
    linear-gradient(135deg, rgba(10, 15, 26, 0.85) 0%, rgba(26, 31, 46, 0.85) 50%, rgba(10, 15, 26, 0.85) 100%),
    url('../images/bg.png');
  background-size: cover, auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
  color: #ffffff;
}

.bf-theme-cyber .bf-urgency-badge {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.4);
  color: #fff;
}

.bf-theme-cyber .bf-topbar {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 10px, rgba(255,255,255,0.0) 10px 20px),
    linear-gradient(135deg, #dc2626, #b91c1c);
}

.bf-theme-cyber .offer-head {
  background: linear-gradient(135deg, #1f2937, #111827);
}

.bf-theme-cyber .offer-card .ribbon {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.bf-theme-cyber .bf-footer-cta {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.bf-theme-cyber .btn.btn-primary {
  background: #1f2937 !important;
  box-shadow: 0 4px 15px rgba(31, 41, 55, 0.3) !important;
}
.bf-theme-cyber .btn.btn-primary:hover {
  background: #111827 !important;
  box-shadow: 0 8px 25px rgba(31, 41, 55, 0.45) !important;
}
