/* ── DEMO MODE STYLES ─────────────────────────────────────────────────────── */

/* Demo banner */
.demo-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 3px solid #e2b04a;
}
.demo-banner .demo-tag {
  background: #e2b04a;
  color: #1a1a2e;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.demo-banner a {
  color: #e2b04a;
  text-decoration: underline;
}

/* Adjust header position when demo banner is present */
.demo-banner + .jw-header {
  position: relative;
}

/* ── Notification Preview Overlay ─────────────────────────────────────────── */
.demo-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.demo-overlay.active { display: flex; justify-content: center; align-items: flex-start; }

.demo-preview-container {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  margin: 40px auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-preview-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 28px 24px;
  text-align: center;
}
.demo-preview-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 6px;
}
.demo-preview-header p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0;
}

.demo-preview-body {
  padding: 24px;
}

/* ── Phone Mockup ─────────────────────────────────────────────────────────── */
.phone-mockup {
  background: #f0f0f5;
  border-radius: 28px;
  padding: 12px;
  margin: 16px 0;
  border: 3px solid #d1d1d6;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.phone-screen {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}
.phone-status-bar {
  background: #f8f8f8;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #333;
  font-weight: 600;
}
.sms-header {
  background: #f8f8f8;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e5ea;
  text-align: center;
}
.sms-header .contact-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
}
.sms-header .contact-number {
  font-size: 0.75rem;
  color: #8e8e93;
}
.sms-body {
  padding: 16px;
  min-height: 200px;
}
.sms-bubble {
  background: #e5e5ea;
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 90%;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #000;
  white-space: pre-line;
  animation: fadeIn 0.3s ease-in 0.5s both;
}
.sms-time {
  text-align: center;
  font-size: 0.7rem;
  color: #8e8e93;
  margin-bottom: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Email Mockup ─────────────────────────────────────────────────────────── */
.email-mockup {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.email-toolbar {
  background: #f5f5f5;
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e0e0e0;
}
.email-dot { width: 10px; height: 10px; border-radius: 50%; }
.email-dot.red { background: #ff5f57; }
.email-dot.yellow { background: #febc2e; }
.email-dot.green { background: #28c840; }
.email-header-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.8rem;
  color: #555;
}
.email-header-row strong { color: #000; }
.email-subject {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.email-body-content {
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333;
}
.email-order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.email-order-table th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 2px solid #e2b04a;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #666;
}
.email-order-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
}
.email-order-table .total-row td {
  font-weight: 700;
  border-top: 2px solid #333;
  padding-top: 10px;
}

/* ── Notification Labels ──────────────────────────────────────────────────── */
.notif-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a2e;
}
.notif-label .notif-icon {
  font-size: 1.3rem;
}

/* ── CTA at bottom of preview ─────────────────────────────────────────────── */
.demo-cta {
  background: linear-gradient(135deg, #b8860b, #daa520);
  padding: 24px;
  text-align: center;
}
.demo-cta h3 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.demo-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  margin: 0 0 16px;
}
.demo-cta-btn {
  display: inline-block;
  background: #fff;
  color: #1a1a2e;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s;
}
.demo-cta-btn:hover { transform: scale(1.05); }

/* ── Close button ─────────────────────────────────────────────────────────── */
.demo-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}
.demo-close-btn:hover { background: rgba(255,255,255,0.3); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .demo-preview-container { margin: 20px auto; border-radius: 16px; }
  .demo-preview-header { padding: 20px 16px; }
  .demo-preview-header h2 { font-size: 1.3rem; }
  .phone-mockup { padding: 8px; }
  .demo-preview-body { padding: 16px; }
}
