/*
 * Device Mockup Component Styles
 *
 * Styles for iPhone, iPad, and MacBook device frames
 * used in campaign content preview.
 */

/* ============================================
   SHARED DEVICE STYLES
   ============================================ */

.device-mockup {
  position: relative;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.device-mockup-content {
  overflow: hidden;
}

/* ============================================
   iPHONE MOCKUP (iPhone 15 Pro Max style)
   ============================================ */

.iphone-mockup {
  width: 320px;
  background: #1c1c1e;
  border-radius: 50px;
  padding: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.iphone-frame {
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}

/* Dynamic Island */
.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 32px;
  background: #1c1c1e;
  border-radius: 20px;
  z-index: 10;
}

/* Status bar */
.iphone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px 8px;
  font-size: 14px;
  font-weight: 600;
}

.iphone-status-bar .time {
  color: #000;
}

.iphone-status-bar .icons {
  display: flex;
  gap: 4px;
}

/* iMessage style content */
.iphone-content {
  min-height: 520px;
  padding: 20px;
  background: #fff;
}

.imessage-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5ea;
  margin-bottom: 16px;
}

.imessage-avatar {
  width: 32px;
  height: 32px;
  background: #007aff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.imessage-name {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.imessage-bubble {
  max-width: 85%;
  padding: 10px 14px;
  background: #e5e5ea;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  color: #000;
  margin-bottom: 8px;
}

.imessage-bubble.sent {
  background: #007aff;
  color: #fff;
  margin-left: auto;
}

/* Home indicator */
.iphone-home-indicator {
  width: 120px;
  height: 4px;
  background: #000;
  border-radius: 2px;
  margin: 16px auto 8px;
}

/* ============================================
   iPAD MOCKUP (Gmail Preview)
   ============================================ */

.ipad-mockup {
  width: 480px;
  background: #e4e4e7;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.ipad-frame {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* Gmail header */
.gmail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.gmail-menu-icon {
  width: 24px;
  height: 24px;
  color: #5f6368;
}

.gmail-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
  color: #5f6368;
}

.gmail-logo .text {
  font-weight: 400;
}

.gmail-search {
  flex: 1;
  margin: 0 16px;
  padding: 10px 16px;
  background: #f1f3f4;
  border-radius: 8px;
  font-size: 14px;
  color: #5f6368;
}

.gmail-avatar {
  width: 32px;
  height: 32px;
  background: #4285f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Gmail content */
.gmail-content {
  min-height: 400px;
  padding: 20px;
}

.gmail-compose {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gmail-compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f2f6fc;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
}

.gmail-compose-body {
  padding: 16px;
}

.gmail-field {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.gmail-field-label {
  width: 60px;
  color: #5f6368;
}

.gmail-field-value {
  color: #202124;
}

.gmail-body-content {
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #202124;
}

/* ============================================
   MACBOOK MOCKUP (Browser Preview)
   ============================================ */

.macbook-mockup {
  width: 100%;
  max-width: 720px;
  background: #e4e4e7;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.macbook-frame {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* Browser chrome */
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f5f5f7;
  border-bottom: 1px solid #e5e7eb;
}

.browser-traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-light.red { background: #ff5f57; }
.traffic-light.yellow { background: #febc2e; }
.traffic-light.green { background: #28c840; }

.browser-nav-buttons {
  display: flex;
  gap: 4px;
  color: #9ca3af;
}

.browser-nav-buttons svg {
  width: 16px;
  height: 16px;
}

.browser-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #6b7280;
}

.browser-url-bar .lock-icon {
  width: 12px;
  height: 12px;
  color: #9ca3af;
}

.browser-actions {
  display: flex;
  gap: 8px;
  color: #9ca3af;
}

.browser-actions svg {
  width: 16px;
  height: 16px;
}

/* Browser content */
.browser-content {
  min-height: 400px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #000b14;
  margin-bottom: 32px;
}

.landing-logo .icon {
  width: 24px;
  height: 24px;
  color: #6b7280;
}

.landing-headline {
  font-size: 28px;
  font-weight: 700;
  color: #000b14;
  margin-bottom: 16px;
}

.landing-body {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
  max-width: 400px;
  margin-bottom: 32px;
  text-align: center;
}

/* Center smart field editors inside browser content */
.browser-content .smart-field-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.browser-content .smart-field-editor .landing-headline,
.browser-content .smart-field-editor .landing-body {
  text-align: center;
}

/* Override min-height for headline in browser - it's a single line */
.browser-content .smart-field-editor .landing-headline.smart-field-editor-content {
  min-height: auto;
  padding: 0;
}

/* Reduce min-height for body in browser */
.browser-content .smart-field-editor .landing-body.smart-field-editor-content {
  min-height: auto;
  padding: 0;
}

.macbook-mockup .browser-content .star-rating {
  display: flex;
  gap: 8px;
  margin-bottom: 32px; /* Maintain proper spacing between stars and button in preview */
}

.macbook-mockup .browser-content .star-rating .star {
  width: 32px;
  height: 32px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s ease;
}

.macbook-mockup .browser-content .star-rating .star.filled {
  color: #fbbf24;
}

.macbook-mockup .browser-content .star-rating .star:hover {
  color: #fbbf24;
}

/* CTA button */
.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 27px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.landing-cta:hover {
  background: #333;
}

/* CTA input (editable) */
.landing-cta-wrapper {
  display: flex;
  justify-content: center;
}

.landing-cta-input {
  text-align: center;
  min-width: 160px;
  max-width: 280px;
}

.landing-cta-input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ============================================
   PREVIEW CONTAINER LAYOUT
   ============================================ */

.preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  background: #fafafa;
  border-radius: 12px;
  min-height: 500px;
  position: relative;
  overflow: visible;
}

/* Center the macbook mockup container */
.preview-container > .relative {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-container .macbook-mockup {
  margin: 0 auto;
}

/* Side preview hint (partially visible) */
.preview-hint {
  position: absolute;
  opacity: 0.4;
  pointer-events: none;
}

.preview-hint.left {
  left: -120px;
}

.preview-hint.right {
  right: -120px;
}

/* Floating notice box */
.floating-notice {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 200px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eceff0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  line-height: 1.5;
  color: #52595f;
}

/* Speech bubble arrow pointing right */
.floating-notice::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.floating-notice::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 11px;
  border-style: solid;
  border-color: transparent transparent transparent #eceff0;
}

/* Emoji bar */
.emoji-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid #eceff0;
  border-radius: 24px;
  margin-top: 16px;
}

.emoji-bar button {
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.emoji-bar button:hover {
  background: #f5f5f5;
}

.emoji-bar .add-emoji {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 16px;
  color: #52595f;
}

/* ============================================
   REFERRAL LANDING PAGE MOCKUP
   ============================================ */

.referral-landing-mockup {
  display: flex;
  justify-content: center;
  width: 100%;
}

.referral-landing-card {
  width: 450px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  padding: 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* Logo */
.referral-landing-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.referral-landing-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Headline */
.referral-landing-headline-wrapper {
  position: relative;
  text-align: center;
}

.referral-landing-headline {
  font-size: 22px;
  font-weight: 700;
  color: #000b14;
  line-height: 1.3;
  text-align: center;
  cursor: text;
  outline: none;
  border-radius: 6px;
  padding: 4px 6px;
  transition: background 0.15s;
}

.referral-landing-headline:hover,
.referral-landing-headline:focus {
  background: #f0f4ff;
}

/* Subtitle */
.referral-landing-subtitle-wrapper {
  position: relative;
  text-align: center;
}

.referral-landing-subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  text-align: center;
  cursor: text;
  outline: none;
  border-radius: 6px;
  padding: 4px 6px;
  transition: background 0.15s;
}

.referral-landing-subtitle:hover,
.referral-landing-subtitle:focus {
  background: #f0f4ff;
}

/* Reward card */
.referral-reward-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.referral-reward-title {
  font-size: 15px;
  font-weight: 700;
  color: #000b14;
  margin-bottom: 6px;
}

.referral-reward-desc-wrapper {
  position: relative;
}

.referral-reward-desc {
  font-size: 13px;
  color: #6b7280;
  cursor: text;
  outline: none;
  border-radius: 6px;
  padding: 3px 5px;
  transition: background 0.15s;
}

.referral-reward-desc:hover,
.referral-reward-desc:focus {
  background: #f0f4ff;
}

/* Form fields mockup */
.referral-landing-form-mockup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.referral-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.referral-form-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.referral-form-input-mockup {
  height: 40px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  color: #9ca3af;
  pointer-events: none;
}

.referral-form-input {
  width: 100%;
  height: 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.referral-form-input::placeholder {
  color: #9ca3af;
}

.referral-form-input:focus {
  border-color: #000b14;
  background: #ffffff;
}

.referral-form-input--error {
  border-color: #ef4444;
  background: #fff8f8;
}

.referral-form-input--error:focus {
  border-color: #ef4444;
}

.referral-form-error {
  font-size: 11px;
  color: #ef4444;
  margin-top: 2px;
}

.referral-form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 12px;
}

.referral-form-divider::before,
.referral-form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.referral-form-send-btn {
  width: 100%;
  padding: 14px;
  background: #000b14;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.85;
}

/* Share section */
.referral-landing-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.referral-share-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: #9ca3af;
  font-size: 12px;
}

.referral-share-divider::before,
.referral-share-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.referral-share-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.referral-share-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  pointer-events: none;
}

.referral-copy-btn-mockup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  pointer-events: none;
}
