/* ===== Solutions Detail Page Styles ===== */

/* Hero Section */
.solution-hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--tech)) 100%);
  color: hsl(var(--primary-foreground));
  overflow: hidden;
}

.solution-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, hsl(var(--background)));
  pointer-events: none;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--tech)) 100%);
}

.solution-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.solution-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs-wrapper {
  margin-bottom: 1.25rem;
}

.solution-hero .breadcrumbs-wrapper .breadcrumbs {
  justify-content: center;
}

.solution-hero .breadcrumb-link,
.solution-hero .breadcrumb-current {
  color: rgba(255, 255, 255, 0.95);
}

.solution-hero .breadcrumb-link:hover {
  color: #fff;
}

.solution-hero .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
}

.solution-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Badges */
.solution-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.badge-ghost {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  color: hsl(var(--primary-foreground));
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.badge-ghost:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.badge-primary {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
  backdrop-filter: blur(15px);
  color: hsl(var(--primary-foreground));
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  padding-left: 2rem;
}

.badge-primary::before {
  content: '✨';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateY(-50%) scale(1.2); }
}

/* Title */
.solution-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  color: hsl(var(--primary-foreground));
}

@media (min-width: 640px) {
  .solution-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .solution-title {
    font-size: 3.25rem;
  }
}

.solution-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Meta Cards */
.solution-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.meta-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.meta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.meta-card:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.meta-card:hover::before {
  opacity: 1;
}

.meta-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.meta-content {
  flex: 1;
  text-align: left;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  display: block;
}

.meta-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary-foreground));
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: hsl(var(--primary-foreground));
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Hero Divider */
.hero-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  margin: 2rem auto;
  border-radius: 2px;
  position: relative;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-divider::before {
  left: -20px;
}

.hero-divider::after {
  right: -20px;
}

/* CTA Actions */
.solution-hero .cta-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
  padding-top: 2rem;
}

.solution-hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.solution-hero .btn-gradient {
  background: #ffffff !important;
  color: hsl(var(--primary)) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
}

.solution-hero .btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.5s ease;
}

.solution-hero .btn-gradient:hover::before {
  left: 100%;
}

.solution-hero .btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: hsl(var(--primary)) !important;
}

.solution-hero .btn-outline {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(20px);
  color: hsl(var(--primary-foreground)) !important;
  border: 3px solid rgba(255, 255, 255, 0.7) !important;
  font-weight: 700;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.solution-hero .btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.solution-hero .btn-outline:hover::before {
  opacity: 1;
}

.solution-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: hsl(var(--primary-foreground)) !important;
}

.solution-hero .btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Solution Body */
.solution-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: hsl(var(--foreground));
}

.solution-body h2,
.solution-body h3,
.solution-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  font-weight: 700;
}

.solution-body h2 {
  font-size: 2rem;
}

.solution-body h3 {
  font-size: 1.5rem;
}

.solution-body h4 {
  font-size: 1.25rem;
}

.solution-body p {
  margin-bottom: 1.5rem;
}

.solution-body ul,
.solution-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.solution-body li {
  margin-bottom: 0.5rem;
}

.solution-body a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.solution-body a:hover {
  color: hsl(var(--tech));
}

.solution-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.solution-body blockquote {
  border-left: 4px solid hsl(var(--primary));
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

/* Markdown-rendered content */
.markdown-content h1 { font-size: 1.75rem; margin-top: 0; margin-bottom: 1rem; font-weight: 700; color: hsl(var(--foreground)); }
.markdown-content h4, .markdown-content h5, .markdown-content h6 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; color: hsl(var(--foreground)); }
.markdown-content h4 { font-size: 1.25rem; }
.markdown-content h5 { font-size: 1.125rem; }
.markdown-content h6 { font-size: 1rem; }
.markdown-content code { background: hsl(var(--muted)); padding: 0.2em 0.4em; border-radius: var(--radius); font-size: 0.9em; }
.markdown-content pre { background: hsl(var(--muted)); padding: 1rem; border-radius: var(--radius); overflow-x: auto; margin: 1.5rem 0; border: 1px solid hsl(var(--border)); }
.markdown-content pre code { background: none; padding: 0; }
.markdown-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.markdown-content th, .markdown-content td { border: 1px solid hsl(var(--border)); padding: 0.5rem 0.75rem; text-align: left; }
.markdown-content th { background: hsl(var(--muted)); font-weight: 600; }
.markdown-content hr { border: none; border-top: 1px solid hsl(var(--border)); margin: 2rem 0; }

/* Features Section */
.solution-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--tech)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px hsl(var(--primary) / 0.2);
  transform: translateY(-6px);
  border-color: hsl(var(--primary));
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--secondary)) 100%);
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--tech) / 0.1));
  border-radius: var(--radius-lg);
  border: 2px solid hsl(var(--primary) / 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--tech) / 0.15));
  border-color: hsl(var(--primary) / 0.4);
  transform: scale(1.1) rotate(5deg);
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-content {
  flex: 1;
}

.feature-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsl(var(--foreground));
  font-weight: 600;
  margin: 0;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--tech)) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: hsl(var(--primary-foreground));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.cta-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--primary-foreground));
}

.cta-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.cta-card .cta-actions {
  margin-top: 0;
}

.cta-card .btn-outline {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Section Styles */
.section-large {
  padding: 4rem 0;
}

.bg-secondary {
  background: hsl(var(--secondary));
}

.section-title {
  margin-bottom: 3rem;
}

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

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Responsive */
@media (max-width: 768px) {
  .solution-hero {
    padding: 2.5rem 0 3rem;
  }

  .solution-title {
    font-size: 1.75rem;
  }

  .solution-subtitle {
    font-size: 1.125rem;
  }

  .solution-meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .meta-card {
    padding: 1.25rem;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .solution-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card h3 {
    font-size: 1.5rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
  }

  .solution-body {
    font-size: 1rem;
  }
}

/* Animation */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-delay-1 {
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.fade-in-delay-2 {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
