/* FabGL2 additions to doxygen-awesome.css */

/* screenshots of the example pages (readme_filter.py): two columns, one on narrow screens */
.fabgl-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 16px 0 24px 0;
}

.fabgl-screenshots .image {
  margin: 0;
  text-align: center;
}

.fabgl-screenshots .image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.fabgl-screenshots .image .caption {
  margin-top: 6px;
  font-size: 0.9em;
  font-weight: normal;
  line-height: 1.4;
}


/* ---- main page (docs/mainpage.md) ---- */

.fabgl-hero {
  margin: 8px 0 32px 0;
  padding: 28px 32px;
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  background: linear-gradient(135deg, var(--primary-lightest-color, rgba(0,0,0,0.03)), transparent 70%);
}

.fabgl-hero .fabgl-tagline {
  font-size: 1.6em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--page-foreground-color);
}

.fabgl-hero .fabgl-lead {
  margin-top: 12px;
  max-width: 820px;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--page-secondary-foreground-color);
}

.fabgl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.fabgl-buttons a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.fabgl-buttons a:first-child {
  background: var(--primary-color);
  color: var(--page-background-color) !important;
}

.fabgl-buttons a:hover {
  background: var(--primary-dark-color);
  border-color: var(--primary-dark-color);
  color: var(--page-background-color) !important;
}

.fabgl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin: 16px 0 32px 0;
}

.fabgl-shot {
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--page-secondary-foreground-color);
}

.fabgl-shot b {
  color: var(--page-foreground-color);
}

.fabgl-shot .image {
  margin: 0 0 8px 0;
}

.fabgl-shot .image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.fabgl-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 16px 0 32px 0;
}

.fabgl-feature {
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  background: rgba(127, 127, 127, 0.07);
  font-size: 0.92em;
  line-height: 1.5;
}

.fabgl-feature b {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 1.1em;
  color: var(--primary-color);
}
