/* ==========================================================================
   Wayzuno Marketing, Viral Share & Price Drop Alert System
   ========================================================================== */

/* Price Alert Banner above search results */
.price-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 16px 0 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.price-alert-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-alert-banner-icon {
  font-size: 20px;
  line-height: 1;
}

.price-alert-banner-text strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
}

.price-alert-banner-text small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.btn-open-price-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-open-price-alert:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Card Action: Share Deal Button */
.btn-share-deal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-share-deal:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-share-deal svg {
  width: 14px;
  height: 14px;
}

/* Modal Dialogs */
.marketing-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 520px;
  width: calc(100% - 32px);
  margin: auto;
}

.marketing-modal::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
}

.marketing-modal-shell {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.marketing-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.marketing-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketing-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.marketing-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.marketing-modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

/* Route Badge in Modals */
.modal-route-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #334155;
}

.modal-route-badge strong {
  color: #0f172a;
  font-size: 14px;
}

.modal-route-badge .badge-tag {
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Forms inside modal */
.marketing-form-group {
  margin-bottom: 16px;
}

.marketing-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.marketing-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.marketing-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.marketing-submit-btn {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 8px;
}

.marketing-submit-btn:hover {
  background: #1d4ed8;
}

.marketing-success-message {
  text-align: center;
  padding: 20px 10px;
}

.marketing-success-message .success-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.marketing-success-message h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #0f172a;
}

.marketing-success-message p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

/* Deal Card Preview Box */
.deal-preview-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.deal-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.deal-preview-route {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.deal-preview-price {
  font-size: 18px;
  font-weight: 800;
  color: #059669;
}

.deal-preview-details {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.deal-preview-highlight {
  display: inline-block;
  margin-top: 8px;
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Share Channels Grid */
.share-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-share-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-share-copy {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.btn-share-copy:hover {
  background: #e2e8f0;
}

.btn-share-reddit {
  background: #ff4500;
  color: #ffffff;
}
.btn-share-reddit:hover {
  background: #e03d00;
}

.btn-share-x {
  background: #000000;
  color: #ffffff;
}
.btn-share-x:hover {
  background: #18181b;
}

.btn-share-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn-share-whatsapp:hover {
  background: #1ebe5d;
}

/* Floating Toast Notification */
.wayzuno-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.wayzuno-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .price-alert-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-open-price-alert {
    justify-content: center;
  }
  .share-channels-grid {
    grid-template-columns: 1fr;
  }
}
