/**
 * Features Hub & Technical Architecture Page Styles
 *
 * @package OpenContent
 */

/* 1. Features Page Hero */
.oc-features-hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--oc-bg-soft) 100%);
  text-align: center;
  border-bottom: 1px solid var(--oc-border-subtle);
}

.oc-features-hero-title {
  font-size: clamp(2.25rem, 3.5vw + 1rem, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.oc-features-hero-desc {
  font-size: 1.25rem;
  color: var(--oc-text-body);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* 2. Sticky Pill Anchor Navigation */
.oc-features-nav-wrap {
  position: sticky;
  top: var(--oc-header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--oc-border-subtle);
  z-index: calc(var(--oc-z-sticky) - 1);
  padding: 0.75rem 0;
  transition: all 0.2s ease;
}

.oc-features-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.oc-features-pills::-webkit-scrollbar {
  display: none;
}

.oc-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--oc-text-body);
  background: #FFFFFF;
  border: 1px solid var(--oc-border-subtle);
  border-radius: var(--oc-radius-full);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.oc-feature-pill:hover,
.oc-feature-pill.active {
  background: var(--oc-ink);
  color: #FFFFFF !important;
  border-color: var(--oc-ink);
  box-shadow: var(--oc-shadow-xs);
}

/* 3. In-Depth Feature Modules */
.oc-feature-module {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--oc-border-subtle);
}

.oc-feature-module:nth-child(even) {
  background-color: var(--oc-bg-soft);
}

.oc-module-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 4.5rem;
}

.oc-module-grid.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.oc-module-grid.reverse .oc-module-text {
  order: 2;
}

.oc-module-grid.reverse .oc-module-visual {
  order: 1;
}

.oc-module-text h2 {
  font-size: clamp(1.85rem, 2.5vw + 1rem, 2.5rem);
  margin-bottom: 1.25rem;
}

.oc-module-text p.lead {
  font-size: 1.125rem;
  color: var(--oc-text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.oc-tech-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.oc-tech-spec-item {
  background: #FFFFFF;
  border: 1px solid var(--oc-border-subtle);
  border-radius: var(--oc-radius-md);
  padding: 1rem;
}

.oc-tech-spec-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--oc-text-heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.oc-tech-spec-desc {
  font-size: 0.8125rem;
  color: var(--oc-text-muted);
  line-height: 1.45;
}

/* 4. Provider Matrix Table */
.oc-provider-table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--oc-border-subtle);
  border-radius: var(--oc-radius-xl);
  overflow: hidden;
  box-shadow: var(--oc-shadow-sm);
  margin-top: 2.5rem;
}

.oc-provider-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.oc-provider-table th {
  background: #F8FAFC;
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--oc-text-heading);
  border-bottom: 1px solid var(--oc-border-subtle);
}

.oc-provider-table td {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--oc-border-subtle);
  color: var(--oc-text-body);
}

.oc-provider-table tr:last-child td {
  border-bottom: none;
}

.oc-provider-table tr:hover td {
  background-color: var(--oc-bg-violet-tint);
}

/* 5. Capability Comparison Matrix */
.oc-matrix-section {
  padding: 5.5rem 0;
  background-color: var(--oc-bg-white);
}

.oc-matrix-table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--oc-border-subtle);
  border-radius: var(--oc-radius-xl);
  overflow-x: auto;
  box-shadow: var(--oc-shadow-md);
}

.oc-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.oc-matrix-table th {
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: left;
  background: #F8FAFC;
  border-bottom: 2px solid var(--oc-border-subtle);
}

.oc-matrix-table th.tier-col {
  text-align: center;
  width: 180px;
}

.oc-matrix-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--oc-border-subtle);
  color: var(--oc-text-body);
}

.oc-matrix-table td.tier-cell {
  text-align: center;
}

.oc-matrix-table tr:hover td {
  background-color: #F8FAFC;
}

.oc-matrix-category {
  background: #F1F5F9;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oc-text-muted);
}

/* 6. Responsive Rules for Features Page */
@media (max-width: 1024px) {
  .oc-module-grid,
  .oc-module-grid.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .oc-module-grid.reverse .oc-module-text {
    order: 1;
  }

  .oc-module-grid.reverse .oc-module-visual {
    order: 2;
  }

  .oc-tech-specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .oc-features-hero {
    padding: 3.5rem 0 2.5rem;
  }

  .oc-features-nav-wrap {
    top: var(--oc-header-height);
  }

  .oc-feature-module {
    padding: 3.5rem 0;
  }
}
