/* ========== Vertical Models Page — model-guide style ========== */

.vm-page {
  padding-top: 72px;
  background: var(--bg, #f8fafc);
}

/* ── Hero ────────────────────────────────────── */
.vm-hero {
  position: relative;
  padding: 56px 0 44px;
  overflow: hidden;
  text-align: center;
}

.vm-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 50% 0%, rgba(157, 78, 221, 0.08), transparent),
    radial-gradient(ellipse 400px 300px at 70% 100%, rgba(0, 245, 212, 0.05), transparent);
}

.vm-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.vm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.vm-hero-badge svg {
  color: #9d4edd;
}

.vm-hero-badge span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
}

.vm-hero-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  background: linear-gradient(120deg, #0f172a 30%, #9d4edd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vm-hero-desc {
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 28px;
}

.vm-hero-desc strong {
  color: #0f172a;
}

/* Search bar inside hero */
.vm-search-bar {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.vm-search-bar .vm-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.vm-search-bar input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.vm-search-bar input:focus {
  outline: none;
  border-color: #9d4edd;
  box-shadow: 0 4px 24px rgba(157,78,221,0.12);
}

.vm-search-bar input::placeholder {
  color: #94a3b8;
}

/* ── Filter Section ──────────────────────────── */
.vm-filter-section {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}

.vm-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.vm-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.vm-cat-tab:hover {
  border-color: #9d4edd;
  color: #9d4edd;
}

.vm-cat-tab.active {
  background: linear-gradient(135deg, #00f5d4, #9d4edd);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(157, 78, 221, 0.25);
}

/* ── List Section ────────────────────────────── */
.vm-list-section {
  padding: 28px 0 80px;
}

.vm-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.vm-result-count {
  font-size: 13px;
  color: #64748b;
}

.vm-result-count strong {
  font-weight: 700;
  color: #9d4edd;
}

/* Grid — 3 columns */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Card ────────────────────────────────────── */
.vm-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  border-color: #9d4edd;
}

.vm-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vm-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.vm-card-info {
  min-width: 0;
  flex: 1;
}

.vm-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-card-vendor {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.vm-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vm-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.m-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
}

.m-tag.primary {
  background: rgba(0, 245, 212, 0.1);
  color: #0891b2;
}

.m-tag.violet {
  background: rgba(157, 78, 221, 0.1);
  color: #7c3aed;
}

.vm-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #9d4edd;
  transition: gap 0.2s;
}

.vm-card:hover .vm-card-cta {
  gap: 8px;
}

/* ── Empty State ─────────────────────────────── */
.vm-empty {
  text-align: center;
  padding: 80px 0;
}

.vm-empty h3 {
  margin-top: 16px;
  font-size: 18px;
  color: #475569;
}

.vm-empty p {
  margin-top: 8px;
  font-size: 14px;
  color: #94a3b8;
}

/* ── Detail Page — Badge Row ─────────────────── */
.vm-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.vm-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
}

.vm-badge.cat {
  background: rgba(157, 78, 221, 0.1);
  color: #7c3aed;
}

.vm-badge.type-open {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.vm-badge.type-api {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* ── Detail Section Styling ──────────────────── */
.detail-section {
  margin-bottom: 28px;
}

.detail-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.detail-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 10px;
}

.vm-use-cases {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.vm-use-cases li {
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s;
}

.vm-use-cases li:hover {
  border-color: #9d4edd;
}

.vm-use-cases li::before {
  content: "✦ ";
  color: #9d4edd;
}

.vm-advantages {
  list-style: none;
  padding: 0;
}

.vm-advantages li {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #faf5ff;
  border-left: 3px solid #9d4edd;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.vm-advantages li strong {
  color: #7c3aed;
}

/* ── Resource Links ──────────────────────────── */
.vm-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vm-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s;
}

.vm-resource-link:hover {
  border-color: #9d4edd;
  color: #9d4edd;
}

.vm-resource-link svg {
  flex-shrink: 0;
}

/* ── FAQ Section ─────────────────────────────── */
.vm-faq > div {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.vm-faq h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  padding: 14px 18px;
  margin: 0;
  background: #f8fafc;
  cursor: default;
}
.vm-faq p {
  font-size: 13.5px;
  color: #475569;
  padding: 12px 18px;
  margin: 0;
  line-height: 1.7;
}

/* ── Related Models ──────────────────────────── */
.vm-related-link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.vm-related-link:hover {
  background: #f1f5f9;
  color: #7c3aed;
  border-left-color: #7c3aed;
}

/* ── SEO Content ─────────────────────────────── */
.vm-seo-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}
.vm-seo-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin: 20px 0 8px;
}
.vm-seo-content p {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 8px;
}
.vm-seo-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.vm-seo-content li {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .vm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vm-grid {
    grid-template-columns: 1fr;
  }

  .vm-hero-title {
    font-size: 28px;
  }

  .vm-hero-desc {
    font-size: 15px;
  }

  .vm-cat-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .detail-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-title {
    font-size: 26px;
  }
}
