/* WOŚP Popup Styles - Miraculous Theme */
:root {
  --mlb-red: #F80000;
  --mlb-black: #111111;
  --mlb-dark-bg: #0F0F1A;
  --mlb-text: #FFFFFF;
  --mlb-font: 'Montserrat', sans-serif;
}

.wosp-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wosp-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.wosp-miraculous-card {
  background: rgba(15, 15, 26, 0.95);
  width: 95%;
  max-width: 1000px;
  border-radius: 40px;
  position: relative;
  padding: 0; /* Remove padding to allow full bleed */
  box-shadow: 
    0 0 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  overflow: hidden;
  z-index: 999;
  display: flex; /* Flex container for split layout */
}

/* Background Pattern (Dots) */
.wosp-miraculous-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Red Glow Accent - Right Side */
.wosp-miraculous-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(248, 0, 0, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wosp-popup-overlay.show .wosp-miraculous-card {
  transform: scale(1);
}

.wosp-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

/* Left Side - Visuals */
.wosp-logo-section {
  flex: 0 0 35%; /* 35% width */
  background: linear-gradient(180deg, rgba(248,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.wosp-logo-section::before {
  content: '34';
  position: absolute;
  font-size: 300px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  font-family: 'Montserrat', sans-serif;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wosp-logo-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(248, 0, 0, 0.5));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* Right Side - Content */
.wosp-info-section {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Typography */
.wosp-heading {
  font-family: var(--mlb-font);
  font-weight: 900;
  font-size: 42px;
  color: var(--mlb-text);
  margin-bottom: 20px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.red-text {
  color: var(--mlb-red);
  display: block;
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 5px;
}

.wosp-text-content {
  font-family: var(--mlb-font);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
  border-left: 3px solid var(--mlb-red);
  padding-left: 20px;
}

/* Button */

/* Custom Scrollbar for text content */
.wosp-text-content::-webkit-scrollbar {
  width: 6px;
}
.wosp-text-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.wosp-text-content::-webkit-scrollbar-thumb {
  background: var(--mlb-red);
  border-radius: 3px;
}

/* Button */
.wosp-action-button {
  display: inline-block;
  background-color: var(--mlb-red);
  color: white;
  font-family: var(--mlb-font);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(248, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wosp-action-button:hover {
  background-color: #d60000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(248, 0, 0, 0.5);
}

/* Close Button */
.wosp-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  font-size: 20px;
}

.wosp-close-btn:hover {
  background: var(--mlb-red);
  color: white;
  transform: rotate(90deg);
}

/* Signature */
.wosp-footer-signature {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0.9;
  mix-blend-mode: overlay;
}

.wosp-footer-signature img {
  height: 70px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transform: rotate(-8deg);
}

/* Floating Hearts Animation */
.wosp-floating-heart {
  position: fixed;
  bottom: -100px;
  z-index: 20001; /* Above everything */
  pointer-events: none;
  animation: floatUp linear forwards;
  opacity: 0.8;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .wosp-miraculous-card {
    flex-direction: column;
    max-width: 90%;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .wosp-card-content {
    flex-direction: column;
  }

  .wosp-logo-section {
    width: 100%;
    padding: 30px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .wosp-info-section {
    padding: 30px;
  }

  .wosp-heading {
    font-size: 32px;
    text-align: center;
  }
  
  .red-text {
    text-align: center;
  }

  .wosp-stats-real {
    flex-direction: row; /* Keep side by side on mobile if possible */
    gap: 10px;
  }
  
  .stat-value {
    font-size: 28px;
  }
}

/* Countdown & Pulse Button */
.wosp-countdown-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
  opacity: 0.8;
}

.countdown-timer {
  font-size: 24px;
  font-weight: 800;
  color: var(--mlb-red);
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wosp-action-button.pulse-btn {
  position: relative;
  overflow: hidden;
  animation: btnPulse 2s infinite;
}

.wosp-action-button.pulse-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: btnShine 3s infinite;
}

@keyframes btnPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 0, 0, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(248, 0, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 0, 0, 0); }
}

@keyframes btnShine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

/* Real Stats */
.wosp-stats-real {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 25px 20px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.stat-value {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(45deg, #ff0000, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.1;
  margin-bottom: 5px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* Progress Bar */
.wosp-goal-wrapper {
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wosp-goal-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.wosp-progress-bar {
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
  padding: 3px; /* Inner padding for the bar */
}

.wosp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0000, #ff4d4d);
  border-radius: 10px;
  transition: width 1s ease-out;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
  position: relative;
}

.wosp-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.3) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.3) 75%,
    transparent 75%,
    transparent
  );
  background-size: 30px 30px;
  animation: progressStripe 1s linear infinite;
}

@keyframes progressStripe {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

/* QR Code Section */
.wosp-qr-section {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 30px;
  border-left: 4px solid var(--mlb-red);
}

.wosp-qr-code img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  display: block;
  border: 2px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.wosp-qr-text p {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-weight: 500;
}

/* Actions Container */
.wosp-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.wosp-action-button {
  flex: 1;
  background: linear-gradient(45deg, #d60000, #ff0000);
  border: none;
  padding: 18px 30px;
  font-size: 18px;
  letter-spacing: 2px;
  box-shadow: 0 10px 25px rgba(248, 0, 0, 0.4);
}

.wosp-share-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 56px;
  height: 56px;
  border-radius: 15px;
  font-size: 22px;
}

.wosp-share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Ticker - REMOVED */
.wosp-ticker-container {
  display: none;
}

/* Puszka Trigger */
.wosp-can-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  z-index: 9998;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
  animation: wospShakeAndGlow 5s infinite ease-in-out;
}

.wosp-can-trigger img {
  width: 100%;
  height: auto;
  display: block;
}

.wosp-can-trigger:hover {
  animation: none;
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 0 15px rgba(248, 0, 0, 0.8));
}

.wosp-can-trigger:active {
  transform: scale(0.95);
}

@keyframes wospShakeAndGlow {
  0%, 100% { transform: rotate(0deg); filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(248, 0, 0, 0.5)); }
  90% { transform: rotate(0deg); }
  92% { transform: rotate(5deg); }
  94% { transform: rotate(-5deg); }
  96% { transform: rotate(5deg); }
  98% { transform: rotate(-5deg); }
}

/* Speech Bubble */
.wosp-speech-bubble {
  position: absolute;
  bottom: 100%;
  right: 10px;
  background: white;
  color: var(--mlb-black);
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10000;
  animation: bubbleShow 8s infinite ease-in-out;
}

.wosp-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
}

.wosp-can-trigger:hover .wosp-speech-bubble {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes bubbleShow {
  0%, 85% { opacity: 0; transform: translateY(10px); }
  90%, 95% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* Badge */
.wosp-badge {
  position: absolute;
  top: 0;
  right: 10px;
  background: var(--mlb-red);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 10001;
  animation: pulseBadge 2s infinite;
  border: 2px solid white;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}



