/* Consolidated CSS Bundle - Combines 40+ stylesheets into optimized bundle */
/* This file combines all non-critical CSS for better loading performance */

/* Import unified theme as base */
@import url('unified-professional-theme.css');

/* ===== GENEALOGY COMPONENTS ===== */
/* From genealogy-components.css */
.ancestor-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.ancestor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.ancestor-name {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.ancestor-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-base);
}

.detail-icon {
  font-size: var(--font-size-lg);
  color: var(--primary-color);
}

/* ===== HEIRLOOM PORTRAIT STYLES ===== */
/* From heirloom-portrait.css */
.heirloom-modal {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.heirloom-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-light);
}

.heirloom-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-3xl);
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.heirloom-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

.heirloom-step {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.step-title {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.option-btn {
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.option-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.option-btn.selected {
  border-color: var(--primary-color);
  background: var(--bg-accent);
  box-shadow: var(--shadow-md);
}

/* ===== PORTRAIT GALLERY ===== */
/* From portrait-gallery.css */
.portrait-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.showcase-portrait-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.showcase-portrait-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.showcase-portrait-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 3px solid var(--primary-color);
}

.showcase-portrait-info {
  padding: var(--space-lg);
}

.showcase-portrait-name {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.showcase-portrait-details {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.ai-generated-badge {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--text-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.generation-speed {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* ===== PROGRESS BAR ELEGANT ===== */
/* From progress-bar-elegant.css */
.search-progress-bar {
  background: var(--gradient-warm);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.progress-info {
  margin-bottom: var(--space-md);
}

.progress-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.progress-icon {
  font-size: var(--font-size-xl);
}

.progress-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.progress-stats-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.progress-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
}

.progress-label-text {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

.progress-visual {
  position: relative;
}

.progress-track {
  height: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-markers {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.marker {
  font-size: var(--font-size-lg);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.marker.active {
  opacity: 1;
  transform: scale(1.2);
}

.marker.special {
  font-size: var(--font-size-xl);
}

/* ===== SKELETON LOADER ===== */
/* From skeleton-loader.css */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-sm);
}

.skeleton-text.title {
  height: 1.5em;
  width: 60%;
}

.skeleton-text.subtitle {
  height: 1.2em;
  width: 80%;
}

.skeleton-text.line {
  height: 1em;
  width: 100%;
}

.skeleton-text.short {
  width: 40%;
}

.skeleton-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
}

.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
/* From mobile-optimization.css and mobile-fixes.css */
@media (max-width: 768px) {
  .ancestor-details {
    grid-template-columns: 1fr;
  }
  
  .option-grid {
    grid-template-columns: 1fr;
  }
  
  .portrait-showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .showcase-portrait-image {
    height: 250px;
  }
  
  .progress-header-row {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
  }
  
  .progress-stats-row {
    justify-content: center;
  }
  
  .heirloom-step {
    padding: var(--space-lg);
  }
  
  .step-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== READABILITY FIXES ===== */
/* From readability-fixes.css */
.high-contrast {
  --text-primary: #000000;
  --text-secondary: #333333;
  --border-light: #CCCCCC;
  --border-medium: #999999;
}

.large-text {
  font-size: 1.125rem;
  line-height: 1.8;
}

.large-text h1 { font-size: 3rem; }
.large-text h2 { font-size: 2.5rem; }
.large-text h3 { font-size: 2rem; }

/* Focus indicators */
.button:focus,
.form-input:focus,
.option-btn:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* ===== DATA FORMAT STYLES ===== */
/* From data-format-styles.css */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.data-table tr:hover {
  background: var(--bg-accent);
}

.data-list {
  list-style: none;
  padding: 0;
}

.data-list-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-list-item:last-child {
  border-bottom: none;
}

.data-label {
  font-weight: 600;
  color: var(--text-primary);
}

.data-value {
  color: var(--text-secondary);
}

/* ===== TESTIMONIALS ===== */
/* From testimonials.css */
.testimonials {
  background: var(--gradient-subtle);
  padding: var(--space-3xl) 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.testimonial {
  background: var(--bg-primary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

.testimonial p {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.testimonial strong {
  color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-inverse);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* ===== PRINT OPTIMIZATIONS ===== */
@media print {
  .search-progress-bar,
  .button,
  .modal,
  .loading-overlay,
  header,
  footer {
    display: none !important;
  }
  
  .ancestor-card,
  .testimonial {
    break-inside: avoid;
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}