/**
 * Promo Lab - майстерня промо-віджетів
 * Stylesheet (Multi-Layout & Responsive)
 */

/* ==========================================================================
   Global Keyframe Animations
   ========================================================================== */
@keyframes promoLabPop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes promoLabPulse {
  0% { box-shadow: 0 0 0 rgba(255, 209, 102, 0); }
  50% { box-shadow: 0 0 12px rgba(255, 209, 102, 0.65); }
  100% { box-shadow: 0 0 0 rgba(255, 209, 102, 0); }
}

@keyframes promoLabSlideDown {
  0% { opacity: 0; transform: translateY(-16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes promoLabFlame {
  0% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.18) rotate(3deg); }
  100% { transform: scale(1) rotate(-2deg); }
}

@keyframes promoLabShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==========================================================================
   Top Bar Common
   ========================================================================== */
.promo-lab-topbar {
  width: 100%;
  box-sizing: border-box;
  animation: promoLabSlideDown 0.35s ease-out;
  font-family: inherit;
  line-height: 1.4;
}

.promo-lab-sticky {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.promo-lab-close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: inherit;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.promo-lab-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

/* ==========================================================================
   Test Mode Badges
   ========================================================================== */
.promo-lab-test-hidden {
  display: none !important;
}

.promo-lab-test-pill {
  display: inline-flex;
  align-items: center;
  background: #7950f2;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.promo-lab-test-floating-badge {
  position: absolute;
  top: 6px;
  left: 12px;
  background: #7950f2;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  z-index: 10;
}

.promo-lab-product-test-pill {
  display: inline-flex;
  align-items: center;
  background: #7950f2;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ==========================================================================
   Layout 1: Wide Hero Banner (countdown)
   ========================================================================== */
.promo-lab-wide {
  padding: 12px 16px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.promo-lab-wide .promo-lab-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.promo-lab-wide .promo-lab-info {
  display: flex;
  flex-direction: column;
}

.promo-lab-wide .promo-lab-heading {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.promo-lab-wide .promo-lab-subheading {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
}

.promo-lab-wide .promo-lab-countdown {
  display: flex;
  gap: 10px;
  align-items: center;
}

.promo-lab-wide .promo-lab-time-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.promo-lab-wide .promo-lab-time-val {
  background: #ffffff;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 10px;
  min-width: 40px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  line-height: 1;
}

.promo-lab-wide .promo-lab-time-unit {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.promo-lab-wide .promo-lab-btn-wide {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.4);
  text-transform: uppercase;
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-lab-wide .promo-lab-btn-wide:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.promo-lab-wide .promo-lab-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Layout 2: Compact Ticker (compact)
   ========================================================================== */
.promo-lab-compact {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.promo-lab-compact .promo-lab-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.promo-lab-compact .promo-lab-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.promo-lab-compact .promo-lab-logo {
  font-weight: 700;
  font-size: 15px;
  color: #ffd166;
}

.promo-lab-compact .promo-lab-msg {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.promo-lab-compact .promo-lab-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-lab-compact .promo-lab-sparkle {
  display: inline-block;
  animation: promoLabPop 1.4s ease-in-out infinite;
}

.promo-lab-compact .promo-lab-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 209, 102, 0.2);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.promo-lab-compact .promo-lab-pulse {
  animation: promoLabPulse 2s infinite ease-in-out;
}

.promo-lab-compact .promo-lab-sub {
  font-size: 12px;
  opacity: 0.85;
}

.promo-lab-compact .promo-lab-timer-inline {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.22);
  padding: 4px 10px;
  border-radius: 6px;
}

.promo-lab-compact .promo-lab-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-lab-compact .promo-lab-btn {
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.promo-lab-compact .promo-lab-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

/* ==========================================================================
   Layout 3: Floating Glassmorphism Pill (floating_pill)
   ========================================================================== */
.promo-lab-floating-wrap {
  padding: 10px 16px;
  width: 100%;
  box-sizing: border-box;
}

.promo-lab-floating-pill {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
}

.promo-lab-pill-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.promo-lab-pill-icon {
  font-size: 18px;
  line-height: 1;
}

.promo-lab-pill-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-lab-pill-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
}

.promo-lab-pill-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  background: rgba(0,0,0,0.25);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.promo-lab-pill-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-lab-pill-btn {
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.promo-lab-pill-btn:hover {
  text-decoration: none;
  transform: translateY(-1px) scale(1.02);
}

/* ==========================================================================
   Layout 4: Urgent Flash Sale (flash_sale)
   ========================================================================== */
.promo-lab-flash {
  padding: 10px 16px;
  position: relative;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.promo-lab-flash-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.promo-lab-flash-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.promo-lab-flash-flame {
  font-size: 20px;
  display: inline-block;
  animation: promoLabFlame 1s infinite alternate;
}

.promo-lab-flash-tag {
  background: #ffbe0b;
  color: #111111;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(255,190,11,0.5);
}

.promo-lab-flash-title {
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-lab-flash-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  background: rgba(0,0,0,0.35);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
}

.promo-lab-flash-timer .flash-colon {
  opacity: 0.7;
  animation: promoLabPop 1s infinite;
}

.promo-lab-flash-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-lab-flash-btn {
  padding: 7px 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  background-size: 200% auto;
  transition: transform 0.2s;
}

.promo-lab-flash-btn:hover {
  text-decoration: none;
  transform: scale(1.03);
}

/* ==========================================================================
   Layout 5: Clean Chic Minimalist (minimal)
   ========================================================================== */
.promo-lab-minimal {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.promo-lab-minimal-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  position: relative;
  flex-wrap: wrap;
}

.promo-lab-minimal-title {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.promo-lab-minimal-dot {
  opacity: 0.5;
  font-size: 10px;
}

.promo-lab-minimal-timer {
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promo-lab-minimal-btn {
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  transition: opacity 0.2s;
}

.promo-lab-minimal-btn:hover {
  opacity: 0.8;
}

.promo-lab-minimal .promo-lab-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  font-size: 14px;
}

/* ==========================================================================
   Product Page Countdown Boxes
   ========================================================================== */
.promo-lab-product-box {
  width: 100%;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: box-shadow 0.2s;
}

.promo-lab-theme-dark {
  background: #080606;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.promo-lab-theme-light {
  background: #f8f9fa;
  color: #212529;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.promo-lab-theme-accent {
  background: #f24545;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(242,69,69,0.3);
}

.promo-lab-theme-glass {
  background: rgba(20, 20, 25, 0.78);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.promo-lab-product-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.promo-lab-product-heading {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.promo-lab-product-timer {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
}

.promo-lab-product-price {
  font-weight: 700;
  font-size: 18px;
  color: #f5bd25;
  white-space: nowrap;
}

.promo-lab-product-inline-wrap {
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(0,0,0,0.03);
  border-left: 3px solid #f24545;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.promo-lab-product-inline-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.promo-lab-product-inline-timer {
  font-weight: 700;
  color: #f24545;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Responsive Breakpoints for All Widths
   ========================================================================== */

/* Laptop / Large Tablet (992px - 1199px) */
@media (max-width: 1199px) {
  .promo-lab-wide .promo-lab-container { gap: 16px; }
  .promo-lab-wide .promo-lab-time-val { font-size: 16px; padding: 5px 8px; min-width: 36px; }
  .promo-lab-floating-pill { gap: 12px; }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
  .promo-lab-wide { padding: 12px 14px; }
  .promo-lab-wide .promo-lab-container { flex-direction: column; text-align: center; gap: 12px; }
  .promo-lab-wide .promo-lab-heading { justify-content: center; }
  .promo-lab-compact { height: auto; padding: 10px 14px; }
  .promo-lab-compact .promo-lab-inner { flex-direction: column; text-align: center; gap: 8px; }
  .promo-lab-compact .promo-lab-left { flex-direction: column; gap: 4px; }
  .promo-lab-compact .promo-lab-title { white-space: normal; justify-content: center; }
  .promo-lab-floating-pill { border-radius: 16px; flex-direction: column; text-align: center; gap: 10px; padding: 12px 16px; }
  .promo-lab-pill-left { flex-direction: column; }
  .promo-lab-flash-inner { flex-direction: column; text-align: center; gap: 10px; }
  .promo-lab-flash-left { flex-direction: column; }
  .promo-lab-flash-title { white-space: normal; }
}

/* Mobile Devices (480px - 767px) */
@media (max-width: 767px) {
  .promo-lab-wide .promo-lab-time-val { font-size: 15px; padding: 4px 7px; min-width: 32px; }
  .promo-lab-wide .promo-lab-time-unit { font-size: 10px; }
  .promo-lab-wide .promo-lab-close { top: 8px; right: 8px; transform: none; }
  .promo-lab-floating-wrap { padding: 6px 10px; }
  .promo-lab-floating-pill { border-radius: 14px; padding: 10px 12px; }
  .promo-lab-minimal-inner { flex-direction: column; gap: 6px; text-align: center; padding-right: 28px; }
  .promo-lab-minimal .promo-lab-close { right: 4px; }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .promo-lab-topbar { font-size: 13px; }
  .promo-lab-wide .promo-lab-countdown { gap: 6px; }
  .promo-lab-wide .promo-lab-time-val { font-size: 14px; padding: 4px 6px; min-width: 28px; border-radius: 4px; }
  .promo-lab-wide .promo-lab-btn-wide { width: 100%; text-align: center; padding: 8px 12px; }
  .promo-lab-compact .promo-lab-btn { width: 100%; text-align: center; }
  .promo-lab-compact .promo-lab-cta { width: 100%; justify-content: center; }
  .promo-lab-pill-btn { width: 100%; text-align: center; }
  .promo-lab-pill-cta { width: 100%; justify-content: center; }
  .promo-lab-flash-btn { width: 100%; text-align: center; }
  .promo-lab-flash-cta { width: 100%; justify-content: center; }
  .promo-lab-test-pill { font-size: 10px; padding: 2px 6px; }
  .promo-lab-product-box { flex-direction: column; align-items: flex-start; gap: 8px; }
  .promo-lab-product-inline-wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
}
