/* ===============================
   LANDING PAGE STYLES
   =============================== */

/* Index page specific layout */
body.landing-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  margin: 0;
}

body.landing-page main {
  display: block;
  width: 100%;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Header section */
.landing-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

/* Hero Section */
.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-section h1 i {
  color: #3498db;
}

.hero-section .tagline {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  font-weight: 300;
}

.hero-section .description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.cta-primary {
  background: #3498db;
  color: white;
}

.cta-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-secondary:hover {
  background: white;
  color: #2c3e50;
  transform: translateY(-2px);
}

/* Features Highlight */
.features-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.feature-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.feature-badge i {
  color: #2ecc71;
}

/* Section titles */
.section-title {
  font-size: 2rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-description {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.examples-header h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-light);
}

.examples-header p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

/* Content section */
.landing-content {
  padding: 2rem;
}

/* Examples grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Example cards */
.example-card {
  background: var(--color-surface);
  border-radius: 15px;
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.example-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

/* CV Preview */
.example-preview-container {
  position: relative;
  height: 350px; /* Container height */
  background: #f8f9fa;
  overflow: hidden;
}

.example-pages {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 8px;
  padding: 12px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  cursor: grab;
}

.example-pages:active {
  cursor: grabbing;
}

.example-pages::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Prevent image dragging inside dragscroll */
.example-pages img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.example-page {
  flex: 0 0 auto;
  width: 231px; /* A4 aspect ratio: 231px wide for 326px height */
  height: 326px; /* Smaller than container (350px - 24px padding) */
  position: relative;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.cv-preview-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: white;
  display: block;
}

.page-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-sm);
}

.page-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.page-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  z-index: 3;
}

/* Page Indicators and Layout */

/* Example content */
.example-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Example card content */
.example-header {
  margin-bottom: 1rem;
}

.example-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-content-primary);
  margin-bottom: var(--space-1);
}

.example-character {
  color: var(--text-content-secondary);
  font-size: var(--font-size-sm);
  font-style: italic;
}

.example-title {
  color: var(--text-content-tertiary);
  font-size: var(--font-size-xs);
  margin-top: var(--space-1);
  font-weight: var(--font-weight-medium);
}

.example-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: 1rem;
}

.feature-tag {
  background: var(--color-background-subtle);
  color: var(--text-content-primary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--color-border);
}

.example-summary {
  font-size: var(--font-size-sm);
  color: var(--text-content-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Example actions */
.example-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: auto;
}

/* Example buttons - extending the existing btn styles */
.example-btn {
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-base);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.example-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.example-btn-secondary {
  background: var(--text-content-secondary);
  color: white;
}

.example-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Example type badge */
.example-type {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* Footer */
.landing-footer {
  background: var(--color-background-subtle);
  padding: 2rem;
  text-align: center;
  color: var(--text-content-secondary);
  border-top: 1px solid var(--color-border);
}

/* Responsive design */
@media (max-width: 768px) {
  body.landing-page {
    padding: 1rem;
  }

  .landing-header {
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .tagline {
    font-size: 1.2rem;
  }

  .hero-section .description {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .features-highlight {
    flex-direction: column;
    align-items: stretch;
  }

  .examples-header h1 {
    font-size: var(--font-size-3xl);
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .landing-content {
    padding: 1rem;
  }

  .example-preview-container {
    height: 280px;
  }

  .example-page {
    width: 185px; /* A4 aspect ratio: 185px wide for 256px height */
    height: 256px; /* Smaller than container (280px - 24px padding) */
  }

  .example-actions {
    flex-direction: column;
  }

  .example-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2rem;
    flex-direction: column;
  }

  .hero-section .tagline {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .examples-header h1 {
    font-size: var(--font-size-2xl);
  }

  .examples-stat-number {
    font-size: var(--font-size-2xl);
  }

  .example-preview {
    height: 200px;
  }

  .example-content {
    padding: 1rem;
  }
}
