/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @format
 */

.container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero card: full-width Get Started */
.heroCard {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--accent, var(--flow-yellow));
  border-radius: 8px;
  color: inherit;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s;
}
.heroCard:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 22px rgba(0, 0, 0, 0.16);
  color: inherit;
}

.heroIcon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent, var(--flow-yellow));
}
.heroIcon svg {
  width: 100%;
  height: 100%;
}

.heroTitle {
  margin: 0 0 0.25rem 0;
  font-size: 1.4rem;
  color: var(--flow-gray-darkest);
}

.heroDescription {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ifm-color-emphasis-700);
  line-height: 1.5;
}

/* Section cards: 2-column grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.07);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--accent, var(--flow-yellow));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.15);
  color: inherit;
}

.cardHeader {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.cardIcon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent, var(--ifm-color-emphasis-600));
}
.cardIcon svg {
  width: 100%;
  height: 100%;
}

.cardTitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.cardDescription {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ifm-color-emphasis-600);
  line-height: 1.5;
}

/* Dark mode: the light card chrome above (white hero fill, black hairline
   borders) disappears on the dark surface. Give the cards a faint raised fill
   and light hairline borders so their structure reads again, matching the
   raised-panel look used for code blocks. */
[data-theme='dark'] .heroCard {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme='dark'] .card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme='dark'] .heroCard:hover,
[data-theme='dark'] .card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
/* heroTitle was pinned to the dark gray brand color, invisible on dark. */
[data-theme='dark'] .heroTitle {
  color: var(--ifm-heading-color);
}
