/* Apply Helvetica everywhere */


.featured-scroll,
.featured-scroll * {
  font-family: Helvetica, Arial, sans-serif;
}
:host {
  display: block;
  width: 100%;
  height: 100%;        /* ✅ Let host fill its parent */
  overflow: hidden;    /* ✅ Let the inner scroll container handle scrolling */
}
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* Let featured-scroll handle it */
}

.featured-scroll {
  width: 100%;
  min-height: 100vh;
  height: 100vh;         /* ✅ Give it a fixed height so it can scroll */
  overflow-y: auto;      /* ✅ Enable vertical scrolling */
  overflow-x: hidden;
  background: #f8fafc;
  padding-bottom: 140px;
  font-family: Helvetica, Arial, sans-serif;
}
/* Scroll container */
// .featured-scroll {
//   width: 100%;

//   /* IMPORTANT */
//   min-height: 100vh;
//   height: auto;

//  // overflow-y: auto;
//  // overflow-x: hidden;

//   background: #f8fafc;
//   padding-bottom: 140px;

//   font-family: Helvetica, Arial, sans-serif;
// }

/* Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== HEADER ===== */
.featured-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 26px 0 18px;
}

.header-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.header-icon {
  color: #f59e0b;
  font-size: 26px;
  width: 26px;
  height: 26px;
  margin-top: 3px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
 color: #aa89e2;
}

.page-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* ===== SECTION ===== */
.section {
  padding: 26px 0 70px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  color: #14b8a6;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.section-desc {
  margin: 12px 0 18px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  max-width: 900px;
}

/* ===== GRID ===== */
.api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ===== CARD ===== */
.api-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;

  transition: transform 0.18s ease, box-shadow 0.18s ease,
border-color 0.18s ease;
}

.api-card:hover {
  border-color: rgba(124, 58, 237, 0.55); /* violet */
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.12);
  transform: translateY(-4px);
}

.api-card:hover .api-title {
  color: #7c3aed; /* violet title */
}

.api-card:active {
  transform: translateY(0px) scale(0.99);
  border-color: rgba(124, 58, 237, 0.75);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.18);
}

/* ===== BADGES ===== */
.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
mat-icon {
  font-family: 'Material Icons' !important;
  font-weight: normal;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
}

.badge-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Platform badge */
.badge-platform {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}

/* Status badge */
.badge-active {
  background: #dcfce7;
  color: #166534;
}

.badge-draft {
  background: #f1f5f9;
  color: #334155;
}

/* ===== CONTENT ===== */
.api-title {
  font-size: 18px;
  font-weight: 200;
  color: #0f172a;
  margin-bottom: 3px;
}

.api-slug {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.api-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;

  
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.api-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

/* ===== TAGS ===== */
.api-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-tags span {
  font-size: 12px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 999px;
  color: #334155;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .api-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .api-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 22px;
  }

  .container {
    padding: 0 16px;
  }
}
/* ================= RECOMMENDED SECTION ================= */

.section-muted {
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
}

.recommended-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.recommended-icon {
  color: #14b8a6 !important;
  font-size: 22px;
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

.recommended-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.recommended-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* recommended grid spacing */
.recommended-grid {
  margin-top: 18px;
}

/* highlight middle card */
.api-card-highlight {
  border-color: rgba(20, 184, 166, 0.35);
}

/* top-right arrow */
.api-card-top-right {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(20, 184, 166, 0.55);
}

.api-card {
  position: relative;
}

/* Internal badge */
.badge-internal {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}