/* HistorySync docs - custom styles */

:root {
  --hs-accent: #409EFF;
  --hs-hero-bg: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  --hs-card-bg: var(--md-default-bg-color);
  --hs-card-border: var(--md-default-fg-color--lightest);
  --hs-card-shadow-hover: rgba(0, 0, 0, 0.12);
}

[data-md-color-scheme="slate"] {
  --hs-accent: #66b1ff;
  --hs-hero-bg: linear-gradient(135deg, #162b4d 0%, #0a192f 100%);
  --hs-card-bg: var(--md-default-bg-color);
  --hs-card-border: var(--md-default-fg-color--lightest);
  --hs-card-shadow-hover: rgba(0, 0, 0, 0.4);
}

/* hero gradient banner on home page */
.hs-hero {
  background: var(--hs-hero-bg);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.hs-hero h1 { 
  color: #fff; 
  margin: 0 0 0.8rem; 
  font-size: 2.5rem; 
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hs-hero p { 
  color: rgba(255, 255, 255, 0.9); 
  margin: 0 auto; 
  font-size: 1.15rem; 
  max-width: 650px;
  line-height: 1.6;
}

/* hero CTA buttons - flex row so long English labels don't stack */
.hs-hero .md-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hs-hero .md-button {
  margin-top: 0;
  margin-inline: 0;
  font-weight: bold;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  transition: all 0.2s ease;
  font-size: 1rem;
  white-space: nowrap;
}
.hs-hero .md-button--primary {
  background-color: #fff;
  color: #1a73e8;
  border-color: #fff;
}
[data-md-color-scheme="slate"] .hs-hero .md-button--primary {
  color: #162b4d;
}
.hs-hero .md-button--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hs-hero .md-button:not(.md-button--primary) {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.hs-hero .md-button:not(.md-button--primary):hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* badge row */
.hs-badges { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.6rem; 
  justify-content: center; 
  margin: 1.5rem 0 0.5rem; 
}

/* feature grid */
.hs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
@media (max-width: 768px) {
  .hs-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .hs-grid { grid-template-columns: repeat(2, 1fr); }
}
.hs-card {
  background-color: var(--hs-card-bg);
  border: 1px solid var(--hs-card-border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hs-card:hover { 
  box-shadow: 0 8px 24px var(--hs-card-shadow-hover); 
  transform: translateY(-4px);
  border-color: var(--hs-accent);
}
.hs-card strong { 
  display: block; 
  font-size: 1.2rem; 
  font-weight: 700;
  margin: 1rem 0 0.6rem; 
  color: var(--md-default-fg-color);
}
.hs-card strong a {
  color: inherit;
}
.hs-card p { 
  margin: 0; 
  font-size: 0.95rem; 
  color: var(--md-default-fg-color--light); 
  line-height: 1.6;
  flex-grow: 1;
}

.hs-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--hs-accent);
  display: block;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}
.hs-card-icon--fill {
  stroke: none;
}

/* download grid - compact row */
.hs-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.hs-dl-card {
  background-color: var(--hs-card-bg);
  border: 1px solid var(--hs-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}
.hs-dl-card:hover { 
  box-shadow: 0 6px 20px var(--hs-card-shadow-hover); 
  border-color: var(--hs-accent);
  transform: translateY(-2px);
}
.hs-dl-card p { 
  margin: 0 0 1rem; 
  font-weight: 700; 
  font-size: 1.15rem; 
  color: var(--md-default-fg-color);
}
.hs-dl-card .md-button {
  display: block;
  margin: 0.6rem 0 0;
  padding: 0.6em 1em;
  font-size: 0.95rem;
  border-radius: 8px;
}

/* CLI reference styling */
.cli-flag { font-family: var(--md-code-font); font-weight: 600; color: var(--hs-accent); }

/* keyboard key styling */
kbd {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--light);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.85em;
  font-family: var(--md-code-font);
  color: var(--md-default-fg-color);
}