/* Welcome Page Specific Styles - Compact Desktop Layout */

/* Welcome Hero */
.welcome-hero {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  color: white;
  padding-bottom: 2rem;
}

.welcome-hero .nav-logo {
  text-decoration: none;
  color: white;
}

.welcome-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
}

.success-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.welcome-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* Hero Demo Box - Integrated */
.hero-demo {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.demo-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.demo-thai-text {
  font-size: 1.5rem;
  line-height: 2;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.demo-translation {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
  margin: 0 0 1rem 0;
}

.demo-shortcuts {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.demo-shortcuts kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Color Legend - Compact */
.color-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.legend-color {
  width: 20px;
  height: 6px;
  border-radius: 3px;
}

.legend-color.new {
  background: rgba(239, 68, 68, 0.5);
  border-bottom: 2px solid #ef4444;
}

.legend-color.learning {
  background: rgba(251, 191, 36, 0.5);
  border-bottom: 2px solid #f59e0b;
}

.legend-color.known {
  background: rgba(34, 197, 94, 0.5);
  border-bottom: 2px solid #22c55e;
}

/* Setup Section */
.setup-section {
  padding: 2rem 2rem;
  background: var(--gray-50);
}

.setup-container {
  max-width: 900px;
  margin: 0 auto;
}

.setup-section h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

/* Setup Grid - 2 columns on desktop */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.setup-step {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.setup-step-wide {
  grid-column: 1 / -1;
}

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

.setup-step-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.setup-step h3 {
  font-size: 1rem;
  color: var(--gray-900);
  margin: 0;
}

.setup-step-content {
  padding-left: 43px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.setup-step-content p {
  color: var(--gray-600);
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
}

/* Horizontal layout: text left, video right */
.setup-horizontal {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.setup-horizontal .setup-text {
  flex: 1;
  min-width: 200px;
}

.setup-horizontal .setup-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.setup-horizontal .setup-video {
  flex-shrink: 0;
}

.setup-horizontal .setup-video video {
  display: block;
  max-height: 320px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Stacked layout: text top, video centered below */
.setup-stacked {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.setup-stacked p {
  margin-bottom: 1rem;
}

.video-centered {
  display: flex;
  justify-content: center;
}

.video-centered video {
  display: block;
  max-height: 400px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Video Demos */
.video-demo {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.video-demo video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.video-demo-youtube video {
  width: 100%;
  max-width: 650px;
  max-height: none;
}

/* YouTube Content - Stacked for larger video */
.youtube-content {
  display: block;
  padding-left: 43px;
}

.youtube-left {
  margin-bottom: 1rem;
}

.youtube-right {
  width: 100%;
  text-align: center;
}

.youtube-right .btn-youtube-small {
  margin-top: 0.75rem;
}

.youtube-instructions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.youtube-instruction {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border-radius: 6px;
}

.yt-icon {
  width: 26px;
  height: 26px;
  background: var(--gray-200);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
}

.youtube-instruction p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.btn-youtube-small {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-youtube-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

/* Sync Content */
.sync-content {
  padding-left: 43px;
}

.sync-benefits-inline {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.sync-benefits-inline span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Premium Note */
.premium-note {
  color: #7c3aed;
  font-weight: 500;
}

.premium-note a {
  color: #7c3aed;
  text-decoration: underline;
}

.premium-note a:hover {
  color: #5b21b6;
}

/* What's Next - Compact horizontal */
.next-section {
  padding: 1.5rem 2rem;
  background: white;
  border-top: 1px solid var(--gray-200);
}

.next-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.next-left, .next-right {
  flex: 1;
}

.next-section h3 {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.milestone-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.milestone-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gray-700);
}

.site-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-links-inline a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.8rem;
  transition: all 0.2s;
}

.site-links-inline a:hover {
  border-color: var(--blue-500);
  background: #eff6ff;
  color: var(--blue-600);
}

/* Welcome Footer - Compact */
.welcome-footer {
  padding: 1.25rem 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.welcome-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

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

.welcome-footer .footer-links a {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-decoration: none;
}

.welcome-footer .footer-links a:hover {
  color: var(--gray-700);
}

.welcome-footer .footer-copyright {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin: 0;
}

/* Responsive - Stack on smaller screens */
@media (max-width: 768px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .setup-horizontal {
    flex-direction: column;
    align-items: flex-start;
  }

  .setup-horizontal .setup-video video {
    max-height: 200px;
    max-width: 100%;
  }

  .video-demo-youtube video {
    max-width: 100%;
  }

  .youtube-instructions {
    flex-direction: column;
  }

  .next-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .welcome-footer .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .welcome-hero h1 {
    font-size: 1.75rem;
  }

  .demo-thai-text {
    font-size: 1.25rem;
  }

  .setup-step-content {
    padding-left: 0;
    align-items: stretch;
  }

  .youtube-content {
    padding-left: 0;
  }

  .sync-content {
    padding-left: 0;
  }

  .sync-benefits-inline {
    flex-direction: column;
    gap: 0.5rem;
  }

  .color-legend {
    gap: 1rem;
  }

  .video-demo video {
    max-height: 280px;
  }
}
