/* 🎨 SlideQuick - Premium Social Carousel Studio Styling Sheets */
:root {
  --bg-slate-900: #0f172a;
  --bg-slate-950: #020617;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --border-slate: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #020617 80%);
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-slate);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.85);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 10px var(--primary));
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subdomain-badge {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subdomain-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

/* Studio Layout Grid */
.studio-grid {
  display: grid;
  grid-template-columns: 360px 1fr 280px;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 40px;
  height: calc(100vh - 120px);
  min-height: 600px;
}

@media (max-width: 1200px) {
  .studio-grid {
    grid-template-columns: 320px 1fr;
    height: auto;
  }
  .action-panel-wrapper {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .action-panel-wrapper {
    grid-column: span 1;
  }
}

/* Glassmorphic Panel Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-slate);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-slate);
  padding-bottom: 12px;
}

.panel-scrollable {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-control {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  transition: all 0.3s ease;
  outline: none;
}

.input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border: none;
  color: white;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Customizer Slides List */
.slide-thumbs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.slide-thumb-card {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-slate);
  background: rgba(2, 6, 23, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-thumb-card:hover {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(99, 102, 241, 0.2);
}

.slide-thumb-card.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.thumb-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.thumb-meta {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

/* Center Sandbox Canvas Previewer */
.previewer-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Dynamic Live Carousel Frame */
.carousel-viewport {
  width: 500px;
  height: 500px;
  perspective: 1000px;
  position: relative;
  border-radius: 16px;
}

/* Live Export Slide Element Wrapper */
.carousel-slide-element {
  width: 500px;
  height: 500px;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  user-select: none;
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* High Resolution Export Capture Wrapper (hidden from viewport) */
#export-render-box {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 500px;
  height: 500px;
  z-index: -9999;
}

/* Slide Inner Styling Formats */
.slide-top-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.slide-brand-logo {
  height: 20px;
  max-width: 80px;
  object-fit: contain;
}

.slide-content-center {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.slide-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-watermark {
  font-size: 9px;
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cover Template Specifics */
.cover-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.cover-body {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.5;
}

/* Bullet Points Layout */
.bullets-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.bullets-body {
  font-size: 13.5px;
  opacity: 0.8;
  line-height: 1.4;
  margin-bottom: 12px;
}

.bullets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.bullets-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
}

.bullet-dot {
  width: 18px;
  height: 18px;
  background: var(--slide-accent);
  color: #020617;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Quote Layout */
.quote-mark {
  font-size: 64px;
  font-family: 'Outfit', sans-serif;
  line-height: 0.1;
  opacity: 0.45;
  color: var(--slide-accent);
  margin-bottom: -10px;
}

.quote-body {
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.95;
}

.quote-author {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slide-accent);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stats Layout */
.stats-number {
  font-family: 'Outfit', sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--slide-accent);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stats-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.stats-body {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.4;
}

/* CTA Layout */
.cta-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--slide-accent);
}

.cta-body {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.5;
}

.cta-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 12px;
  margin-top: 16px;
}

.cta-avatar {
  width: 44px;
  height: 44px;
  background: var(--slide-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #020617;
}

.cta-name {
  font-size: 14px;
  font-weight: 800;
}

.cta-handle {
  font-size: 11px;
  opacity: 0.6;
}

/* Carousel Control Arrows */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-slate);
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn.btn-prev {
  left: -70px;
}

.carousel-nav-btn.btn-next {
  right: -70px;
}

@media (max-width: 680px) {
  .carousel-nav-btn.btn-prev { left: 10px; }
  .carousel-nav-btn.btn-next { right: 10px; }
  .carousel-viewport { width: 100%; max-width: 420px; height: 420px; }
  .carousel-slide-element { width: 100%; max-width: 420px; height: 420px; padding: 24px; }
}

/* Right Panel: Action controls & Gumroad overlays */
.pricing-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-slate);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.pricing-card.enterprise {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.pricing-header {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pricing-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-buy-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.pricing-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.pricing-buy-btn.sec-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-slate);
}

.pricing-buy-btn.sec-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
