/**
 * Frontend Styles - Preferred Source Banner
 */
:root {
  --psb-font-size: 14px; /* Mobile-first default */
  --psb-border-radius: 8px;
}

.psb-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  margin: 25px 0;
  border-radius: var(--psb-border-radius);
  font-size: var(--psb-font-size);
  line-height: 1.5;
  position: relative;
  box-sizing: border-box;
  transition: all 0.3s ease; /* Smooth for animations */
}

.psb-banner-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-grow: 1;
}

.psb-banner-image {
  max-width: 50px;
  height: auto;
  border-radius: 50%;
}

.psb-banner-text {
  margin: 0;
  padding: 0;
}

.psb-banner-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.psb-cta-button {
  padding: 10px 20px;
  border-radius: var(--psb-border-radius);
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.psb-cta-button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.psb-dismiss-button {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 5px;
  opacity: 0.6;
  color: inherit;
  transition: opacity 0.2s ease;
}

.psb-dismiss-button:hover {
  opacity: 1;
}

/* Preset 1: Modern */
.psb-preset-1 {
  background-color: #f8f9fa;
  color: #212529;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
}
.psb-preset-1 .psb-cta-button {
  background-color: #1a73e8;
  color: #ffffff;
}

/* Preset 2: Minimal */
.psb-preset-2 {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333333;
  border: 2px solid #e0e0e0;
}
.psb-preset-2 .psb-cta-button {
  background-color: #0066cc;
  color: #ffffff;
}
.psb-preset-2 .psb-dismiss-button {
    color: #888;
}

/* Preset 3: Prominent */
.psb-preset-3 {
  background-color: #4285f4;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}
.psb-preset-3 .psb-cta-button {
  background-color: #ffffff;
  color: #4285f4;
}

/* New Preset: Ecommerce (for Woo) */
.psb-preset-ecommerce {
  background-color: #ff9900;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}
.psb-preset-ecommerce .psb-cta-button {
  background-color: #fff;
  color: #ff9900;
}

/* New Preset: Holographic */
.psb-preset-holographic {
  background: linear-gradient(45deg, #f3ec78, #af4261);
  color: #000;
  text-shadow: 0 0 10px #0ff;
  box-shadow: 0 0 20px #0ff;
  filter: brightness(1.1);
}

/* New Preset: Gradient */
.psb-preset-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.psb-preset-gradient .psb-cta-button {
  background: #fff;
  color: #667eea;
}

/* Custom Preset */
.psb-custom {
    /* Styles are applied via inline CSS from class-psb-frontend.php */
}

/* Floating and Sticky */
.psb-floating-wrapper {
  position: fixed;
  z-index: 9999;
  max-width: 300px;
}

.psb-float-bottom-right {
  bottom: 20px;
  right: 20px;
}

.psb-sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Responsive (enhanced for 2025 mobile trends) */
@media (max-width: 768px) {
  .psb-banner-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px;
    margin: 15px 0;
  }
  .psb-banner-content {
    flex-direction: column;
  }
  .psb-banner-actions {
    width: 100%;
    justify-content: center;
  }
  .psb-dismiss-button {
    position: absolute;
    top: 5px;
    right: 5px;
  }
  :root {
    --psb-font-size: 14px; /* Smaller for mobile */
  }
}

/* Variant classes (for A/B visual diff) */
.psb-variant-a { border-left: 3px solid #f00; }
.psb-variant-b { border-left: 3px solid #0f0; }