/* Post Export Success Page Styles - Matches Welcome Screen Design Exactly */

.export-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  /* Fully transparent background */
  backdrop-filter: none;
  /* No blur background */
  -webkit-backdrop-filter: none;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0d0d0d;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}

.export-success-overlay.show {
  opacity: 1;
}

.export-success-container {
  width: calc(100vw - 16px);
  max-width: 1000px;
  height: 100%;
  max-height: calc(100vh - 16px);
  background: #f5f5f7;
  /* Matching light welcome screen card */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.export-success-overlay.show .export-success-container {
  transform: scale(1);
}

/* Hero section with Welcome Video background */
.export-success-hero {
  width: 100%;
  height: 380px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.export-success-hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.export-success-hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fades the video out to match welcome screen exactly */
.export-success-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(transparent, #f5f5f7);
  z-index: 1;
  pointer-events: none;
}

/* Close Button (Fitted on top-left of the hero) */
.export-success-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #525252;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.export-success-close:hover {
  background: #ffffff;
  color: #000000;
  transform: rotate(90deg);
}

/* Body / Container Content */
.export-success-body {
  width: 100%;
  max-width: 920px;
  /* Widened card body content region */
  padding: 48px 32px 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Brand logo and name */
.export-success-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.export-success-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.export-success-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: #171717;
  letter-spacing: -0.01em;
}

/* Content Area */
.export-success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 480px;
  /* Restrict content text width to keep it centered and leave gutters */
  text-align: center;
}

.export-success-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: #0d0d0d;
}

.export-success-subtitle {
  font-size: 16.5px;
  color: #525252;
  line-height: 1.5;
  margin: 0;
  max-width: 520px;
}

.export-success-pitch {
  font-size: 14.5px;
  color: #737373;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

/* Bookmark side section positioning */
.export-success-bookmark-side {
  position: absolute;
  right: 48px;
  top: 125px;
  /* Centered next to title/subtitle text */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
}

.export-success-bookmark-side img {
  width: 44px;
  height: auto;
  margin-bottom: 15px;
  opacity: 0.9;
}

.export-success-bookmark-side span {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #171717;
  white-space: nowrap;
}

/* Share/Actions */
.export-success-actions {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 360px;
}

.export-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.export-btn-secondary {
  background: #ffffff;
  color: #171717;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.export-btn-secondary:hover {
  background: #f5f5f7;
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.15);
}


/* Responsiveness */
@media (max-width: 1024px) {
  .export-success-container {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 24px;
  }
}

@media (max-width: 800px) {
  .export-success-bookmark-side {
    display: none;
    /* Hide side graphic on tablet/mobile viewports to avoid overlapping */
  }
}

@media (max-width: 680px) {
  .export-success-hero {
    height: 280px;
    min-height: 280px;
  }

  .export-success-body {
    padding: 36px 20px 48px;
  }


}

/* Sidebar Footer Styling Fixes */
.app-menu-links {
  padding-bottom: 200px !important; /* Spacing so scrolling links do not hide behind footer */
}

.brand-credits {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 24px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  background: inherit !important; /* Inherit drawer background */
  z-index: 99 !important;
  gap: 6px !important;
}

[data-theme="dark"] .brand-credits {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.brand-credits .logo {
  width: 36px !important;
  height: 36px !important;
  margin-bottom: 4px !important;
  border-radius: 50% !important;
  display: block !important;
  align-self: center !important;
}

.brand-credits .h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #171717 !important;
  margin: 0 !important;
  display: block !important;
}

[data-theme="dark"] .brand-credits .h3 {
  color: #ffffff !important;
}

.brand-credits .footnote {
  font-size: 11.5px !important;
  color: #737373 !important;
  margin: 0 0 4px 0 !important;
  display: block !important;
}

.brand-credits div[style*="display: flex"] {
  display: flex !important;
  justify-content: center !important;
  gap: 24px !important; /* Increased space between footer links */
  width: 100% !important;
  margin-top: 4px !important;
}

/* Welcome Page Badges Row & Outline Buttons */
.welcome-hero .content {
  justify-content: flex-start !important;
  padding-top: 420px !important; /* Pushes all content (logo, badges, heading) further down to create more empty space at the top */
  gap: 12px !important;
}

.welcome-badges-row {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  margin-top: 8px !important;
  margin-bottom: 16px !important; /* Reset margin so badges sit clean above heading */
  flex-wrap: wrap !important;
  z-index: 10 !important;
}

.welcome-hero h1.header {
  font-size: 42px !important; /* Smaller heading font size */
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #0d0d0d !important;
  margin: 0 auto 12px !important;
  max-width: 680px !important;
  text-align: center !important;
}

[data-theme="dark"] .welcome-hero h1.header {
  color: #ffffff !important;
}

.welcome-badge-outline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12.5px !important; /* Slightly smaller text size */
  font-weight: 400 !important; /* System light font */
  padding: 6px 14px !important; /* Compact, balanced padding */
  border-radius: 50px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: rgba(0, 0, 0, 0.6) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}

/* Small glowing gradient dot icon on the left */
.welcome-badge-outline::before {
  content: "" !important;
  display: inline-block !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6366f1, #a855f7) !important; /* Glowing gradient style */
  box-shadow: 0 0 5px rgba(99, 102, 241, 0.8), 0 0 10px rgba(168, 85, 247, 0.5) !important; /* Subtle glow effect */
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

[data-theme="dark"] .welcome-badge-outline {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

/* Mobile Spacing Alignments */
@media (max-width: 800px) {
  .welcome-hero .content {
    padding-top: 290px !important; /* Adjusted push down for mobile screen viewports */
  }
  .welcome-badges-row {
    margin-bottom: 8px !important;
  }
  .welcome-hero h1.header {
    font-size: 28px !important;
    max-width: 90% !important;
  }
}

/* Welcome Start Button Gradient Styling */
.welcome-start-btn {
  background: linear-gradient(135deg, #6366f1, #a855f7) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
  transition: all 0.2s ease !important;
}

.welcome-start-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #9333ea) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
}