/*
 * PopupZen — Template Styles
 * Pre-built template overrides on top of the base frontend.css.
 * Colors/sizes can be further overridden by per-popup inline CSS.
 *
 * @package PopupZen
 */

/* ══════════════════════════════════════
   TEMPLATE: Minimal (default)
   Clean, centered card. No extra styles needed — base is minimal.
   ══════════════════════════════════════ */

.pz-template-minimal .pz-popup-inner {
  padding: 48px;
}

.pz-template-minimal .pz-popup-content h2,
.pz-template-minimal .pz-popup-content h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}

.pz-template-minimal .pz-popup-content p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 24px;
  opacity: 0.8;
}

/* ══════════════════════════════════════
   TEMPLATE: Bold
   Dark background, punchy colors, large CTA.
   ══════════════════════════════════════ */

.pz-template-bold .pz-popup-inner {
  background: #1a1a2e !important;
  color: #f0f0f0 !important;
  border-radius: 4px !important;
  padding: 52px 48px;
  border-top: 6px solid #e94560;
}

.pz-template-bold .pz-popup-content h2,
.pz-template-bold .pz-popup-content h3 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 16px;
}

.pz-template-bold .pz-popup-content a.button,
.pz-template-bold .pz-popup-content .wp-block-button__link,
.pz-template-bold .pz-popup-content input[type="submit"] {
  background: #e94560 !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: none !important;
}

.pz-template-bold .pz-close-btn {
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.1);
}

.pz-template-bold .pz-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════
   TEMPLATE: Newsletter
   Warm, inviting. Illustrated left column suggestion via ::before.
   ══════════════════════════════════════ */

.pz-template-newsletter .pz-popup-inner {
  padding: 0;
  overflow: hidden;
  max-width: 680px !important;
}

.pz-template-newsletter .pz-popup-content {
  padding: 48px;
  margin-top: 0;
}

.pz-template-newsletter .pz-popup-inner::before {
  content: '';
  display: block;
  height: 8px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.pz-template-newsletter .pz-popup-content input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.pz-template-newsletter .pz-popup-content input[type="email"]:focus {
  outline: none;
  border-color: #667eea;
}

.pz-template-newsletter .pz-popup-content input[type="submit"],
.pz-template-newsletter .pz-popup-content .wp-block-button__link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 13px 28px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  transition: opacity 0.2s !important;
}

.pz-template-newsletter .pz-popup-content input[type="submit"]:hover,
.pz-template-newsletter .pz-popup-content .wp-block-button__link:hover {
  opacity: 0.9 !important;
}

.pz-template-newsletter .pz-popup-content h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.pz-template-newsletter .pz-popup-content .pz-subtext {
  font-size: 0.85rem;
  opacity: 0.55;
  margin-top: 8px;
}

/* ══════════════════════════════════════
   TEMPLATE: Announcement
   Full-width banner at top or bottom.
   ══════════════════════════════════════ */

.pz-template-announcement {
  align-items: flex-start !important;
  padding: 0 !important;
}

.pz-template-announcement .pz-overlay {
  display: none;
}

.pz-template-announcement .pz-popup-inner {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  max-width: none !important;
  width: 100%;
  border-radius: 0 !important;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  z-index: 999999;
}

.pz-template-announcement .pz-close-btn {
  position: static;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.pz-template-announcement .pz-popup-content {
  margin-top: 0;
  flex: 1;
}

.pz-template-announcement .pz-popup-content p {
  margin: 0;
  font-size: 0.95rem;
}

.pz-template-announcement .pz-popup-content a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* ══════════════════════════════════════
   TEMPLATE: Cookie Notice
   Bottom bar, GDPR-style.
   ══════════════════════════════════════ */

.pz-template-cookie {
  align-items: flex-end !important;
  padding: 0 !important;
}

.pz-template-cookie .pz-overlay {
  display: none;
}

.pz-template-cookie .pz-popup-inner {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: none !important;
  width: 100%;
  border-radius: 0 !important;
  border-top: 3px solid #2563eb;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #f8f9fa !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.pz-template-cookie .pz-popup-content {
  margin-top: 0;
  font-size: 0.88rem;
  flex: 1;
  min-width: 260px;
}

.pz-template-cookie .pz-popup-content p {
  margin: 0;
}

.pz-template-cookie .pz-close-btn {
  position: static;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  width: auto;
  height: auto;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pz-template-cookie .pz-close-btn svg {
  display: none;
}

.pz-template-cookie .pz-close-btn::before {
  content: 'Accept & Close';
}

/* ══════════════════════════════════════
   TEMPLATE: Custom (no extra styles — user provides custom CSS)
   ══════════════════════════════════════ */
