/* VibeClips.ai - Static Styles */
/* Apple-style Dark UI for Cloudflare Pages */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --luxara-primary: #6366f1;
  --luxara-secondary: #8b5cf6;
  --success: #22c55e;
  --warning: #eab308;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text-primary);
}

/* Hero */
.hero {
  text-align: center;
  padding: 8rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
}

/* Main Container */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.step.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--accent-purple), transparent);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.step.active .dot {
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.step span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.step.active span {
  color: var(--text-primary);
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

/* Step Content */
.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-header.compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.step-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.step-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.subtitle {
  margin: 0 !important;
}

/* URL Form */
.url-form {
  max-width: 600px;
  margin: 0 auto;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}

.input-icon {
  font-size: 1.25rem;
  opacity: 0.5;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.error-msg {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.supported-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-accent {
  padding: 0.875rem 1.5rem;
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-accent:hover {
  background: rgba(234, 179, 8, 0.3);
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--luxara-primary), var(--luxara-secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-premium:hover {
  opacity: 0.9;
}

/* Analyzing State */
.analyzing {
  text-align: center;
  padding: 3rem 0;
}

.pulse-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.progress-track {
  max-width: 400px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 1.5rem auto;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  border-radius: 2px;
  animation: shimmer 2s infinite;
}

.progress-fill.fast {
  width: 75%;
  animation: shimmer 1s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Moments Layout */
.moments-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .moments-layout {
    grid-template-columns: 280px 1fr;
  }
}

.video-preview-compact {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1rem;
}

.video-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 2rem;
}

.video-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Moments List */
.moments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.moment-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  color: inherit;
  font-family: inherit;
}

.moment-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
}

.moment-card.selected {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-purple);
}

.moment-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.moment-card.selected .moment-icon {
  background: var(--accent-purple);
}

.moment-content {
  flex: 1;
  min-width: 0;
}

.moment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.moment-time {
  font-weight: 600;
  font-size: 0.875rem;
}

.viral-score {
  padding: 0.125rem 0.5rem;
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.moment-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moment-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.moment-card:hover .moment-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

.score-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.score-bar-fill {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.score-bar-fill > div {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

/* Preview Area */
.preview-area {
  margin-bottom: 2rem;
}

.phone-preview {
  max-width: 280px;
  margin: 0 auto;
}

.phone-preview.small {
  max-width: 200px;
}

.phone-screen {
  aspect-ratio: 9/16;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid #333;
}

.split-screen {
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  gap: 2px;
}

.split-top, .split-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-top {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
}

.split-bottom {
  background: linear-gradient(135deg, #1a1a1a, #242424);
}

.placeholder-content {
  text-align: center;
  padding: 1rem;
}

.placeholder-content span {
  font-size: 3rem;
  opacity: 0.5;
}

.placeholder-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.placeholder-content small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.template-placeholder {
  text-align: center;
}

.template-placeholder span {
  font-size: 2.5rem;
}

.template-placeholder p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.preview-caption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .templates-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.template-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.template-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.template-card.selected {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-purple);
}

.template-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.template-card.selected .template-icon-box {
  background: var(--accent-purple);
}

.template-card h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.template-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.template-check {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent-purple);
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Export Options */
.settings-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.settings-box h4 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .settings-row {
    grid-template-columns: 1fr 1fr;
  }
}

.setting label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quality-toggle {
  display: flex;
  gap: 0.5rem;
}

.quality-toggle button {
  flex: 1;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quality-toggle button.active {
  background: var(--accent-purple);
  color: white;
}

.format-badge {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.export-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .export-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.export-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.export-card.premium {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
}

.premium-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: var(--luxara-primary);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-header span {
  font-size: 1.5rem;
}

.card-header h3 {
  font-size: 1.125rem;
}

.features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.features li span {
  font-size: 1rem;
}

.features li.disabled {
  color: var(--text-muted);
}

.secure-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Processing & Success States */
.processing-state, .success-state, .ad-state {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.export-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 300px;
  margin: 1.5rem auto 0;
}

.ad-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(234, 179, 8, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.ad-placeholder {
  max-width: 400px;
  aspect-ratio: 16/9;
  margin: 1.5rem auto;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ad-placeholder span {
  font-size: 3rem;
}

.ad-placeholder p {
  color: var(--text-muted);
}

.ad-placeholder small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ad-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  padding: 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.luxara-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.luxara-brand:hover {
  background: rgba(255, 255, 255, 0.1);
}

.luxara-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--luxara-primary), var(--luxara-secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.luxara-label {
  display: block;
  font-size: 0.625rem;
  color: var(--text-muted);
}

.luxara-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--luxara-primary), var(--luxara-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.copyright-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .header-content {
    padding: 0.75rem 1rem;
  }
  
  .nav {
    display: none;
  }
  
  .hero {
    padding-top: 6rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 1.25rem;
    border-radius: 20px;
  }
  
  .step-header.compact {
    flex-direction: column;
    text-align: center;
  }
  
  .input-wrapper {
    flex-direction: column;
    padding: 0.75rem;
  }
  
  .input-wrapper input {
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .progress-bar {
    padding: 0;
  }
  
  .step span {
    display: none;
  }
  
  .step-actions {
    flex-direction: column;
  }
  
  .step-actions button {
    width: 100%;
  }
  
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ad-actions {
    flex-direction: column;
  }
}
