/* ============================================
   MeetScribe Feature Pages Styles
   ============================================ */

/* Feature Hero */
.feature-hero {
  padding: 8rem 0 4rem;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.feature-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: radial-gradient(circle at 30% 20%, var(--primary) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, var(--accent) 0%, transparent 50%);
}

.feature-hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.feature-hero__breadcrumbs {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.feature-hero__breadcrumbs ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-hero__breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.feature-hero__breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.feature-hero__breadcrumbs a:hover {
  color: var(--primary);
}

.feature-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-hero__badge i {
  width: 16px;
  height: 16px;
}

.feature-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.feature-hero__title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-hero__description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.feature-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-hero__image {
  position: relative;
}

.feature-hero__screenshot {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Browser frame wrapper for screenshots */
.screenshot-frame {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.screenshot-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.screenshot-frame__dots {
  display: flex;
  gap: 6px;
}

.screenshot-frame__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.screenshot-frame__dots span:first-child { background: #ff5f57; }
.screenshot-frame__dots span:nth-child(2) { background: #febc2e; }
.screenshot-frame__dots span:nth-child(3) { background: #28c840; }

.screenshot-frame__url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.screenshot-frame__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Screenshot placeholder (when real screenshots aren't available yet) */
.screenshot-placeholder {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f0f0ff 0%, #e8e8f8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.screenshot-placeholder i {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* Feature Details Section */
.feature-details {
  padding: 5rem 0;
}

.feature-details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-detail-card {
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-detail-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.feature-detail-card__icon i {
  width: 24px;
  height: 24px;
}

.feature-detail-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-detail-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Feature Showcase (screenshot + text alternating) */
.feature-showcase {
  padding: 4rem 0;
}

.feature-showcase + .feature-showcase {
  padding-top: 0;
}

.feature-showcase__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-showcase__row:last-child {
  margin-bottom: 0;
}

.feature-showcase__row--reverse {
  direction: rtl;
}

.feature-showcase__row--reverse > * {
  direction: ltr;
}

.feature-showcase__text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-showcase__text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-showcase__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-showcase__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature-showcase__list li i {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Use Cases Section */
.feature-usecases {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.feature-usecases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.usecase-card {
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.usecase-card__role {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.usecase-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.usecase-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Feature CTA */
.feature-cta {
  padding: 5rem 0;
  text-align: center;
}

.feature-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-cta__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.feature-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Other Features Navigation */
.other-features {
  padding: 4rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.other-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.other-feature-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.other-feature-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.other-feature-link i {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.other-feature-link span {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Platforms Grid (for recording page) */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.platform-card__icon {
  width: 56px;
  height: 56px;
}

.platform-card__icon svg {
  width: 100%;
  height: 100%;
}

.platform-card h4 {
  font-size: 1rem;
  font-weight: 600;
}

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

/* Steps (compact version for feature pages) */
.feature-steps {
  padding: 4rem 0;
}

.feature-steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.feature-step {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  counter-increment: step;
}

.feature-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

  .feature-hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-hero__image {
    order: -1;
  }

  .feature-showcase__row,
  .feature-showcase__row--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-steps__list {
    grid-template-columns: 1fr;
  }
}
