@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

/* ==========================================================================
   API Reference & Documentation Page Styles
   ========================================================================== */

/* Base Page Styling */
.api-docs-page {
  background-color: #ffffff;
  padding-top: 84px;
  padding-bottom: 64px;
}

/* Hero Banner Wrapper */
.hero-banner-container {
  position: relative;
  max-width: 1240px;
  margin: 0 auto 26px auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px -12px rgba(8, 3, 29, 0.4);
  background: 
    linear-gradient(90deg, rgba(8, 4, 30, 0.88) 0%, rgba(8, 4, 30, 0.58) 45%, rgba(8, 4, 30, 0.12) 78%),
    url('/assets/images/docs/banners/top_banner_bg.png') no-repeat right center / cover;
  padding: 24px 34px 20px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .hero-banner-container {
    padding: 20px 18px;
  }
}

.banner-script-font {
  font-family: 'Caveat', cursive, serif;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

/* 3 Hero Action Cards */
.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  max-width: 800px;
}

@media (max-width: 860px) {
  .hero-cards-grid {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }
}

.hero-action-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -3px rgba(0, 0, 0, 0.3);
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.hero-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1px;
}

.hero-card-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 4px;
}

.hero-card-link {
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.hero-action-card:hover .hero-card-link {
  transform: translateX(3px);
}

/* Filter Buttons */
.filter-pill {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.filter-pill.active {
  background: #5a2a9c !important;
  color: #ffffff !important;
  border-color: #5a2a9c !important;
  box-shadow: 0 4px 12px rgba(90, 42, 156, 0.3) !important;
}

/* 3-Column Card Grid */
.api-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .api-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .api-grid-container {
    grid-template-columns: 1fr;
  }
}

/* Card Base */
.api-box-card {
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  background: 
    linear-gradient(125deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 34%, rgba(255, 255, 255, 0.72) 52%, rgba(255, 255, 255, 0.08) 70%, rgba(255, 255, 255, 0) 84%),
    var(--card-bg-img) no-repeat right center / cover;
  border: 1px solid var(--card-border-color);
}

.api-box-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px -5px rgba(0, 0, 0, 0.08), 0 6px 10px -4px rgba(0, 0, 0, 0.03);
}

/* Tag Pills with Category Background Color */
.sub-tag-pill {
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: var(--tag-bg-color);
  color: var(--tag-txt-color);
}

/* Category Circular Icon */
.category-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.category-icon-circle i,
.category-icon-circle svg {
  width: 28px;
  height: 28px;
}

.api-box-card:hover .category-icon-circle,
.geo-wide-card:hover .category-icon-circle {
  transform: scale(1.06);
}

/* Circular Action Button */
.circle-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

/* White Capsule Documentation Bar across bottom of cards */
.doc-capsule-bar {
  background: #ffffff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.5px 4px 3.5px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.doc-capsule-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.doc-capsule-bar:hover .circle-action-btn {
  transform: scale(1.08);
}

.doc-capsule-text {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Full-width Geo Location Card */
.geo-wide-card {
  grid-column: 1 / -1;
  background: 
    linear-gradient(105deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 28%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 65%),
    url('/assets/images/docs/categories/geo-location.jpg') no-repeat right center / cover;
  border: 1px solid #fee2e2;
  border-radius: 20px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.geo-wide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px -5px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .geo-wide-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Bottom CTA Banner Wrapper */
.cta-banner-container {
  position: relative;
  max-width: 1240px;
  margin: 40px auto 20px auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px -12px rgba(8, 3, 29, 0.4);
  background: 
    linear-gradient(180deg, rgba(8, 4, 30, 0.38) 0%, rgba(8, 4, 30, 0.68) 100%),
    url('/assets/images/docs/banners/bottom_banner_bg.png') no-repeat center center / cover;
  padding: 34px 28px 26px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .cta-banner-container {
    padding: 28px 18px 22px 18px;
  }
}

.cta-gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 800;
  padding: 9px 24px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 20px -3px rgba(245, 158, 11, 0.45);
  transition: all 0.25s ease;
}

.cta-gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -3px rgba(245, 158, 11, 0.6);
  filter: brightness(1.04);
}

.cta-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
  color: rgba(254, 243, 199, 0.95);
  font-size: 12px;
  font-weight: 600;
}
