/* Global layout tweaks */
.md-main__inner {
  max-width: 1200px;
}

/* Card-like feeling for content */
.md-content {
  background: radial-gradient(circle at top right, rgba(0,255,255,0.06), transparent);
}

/* Headings: più tech */
.md-typeset h1,
.md-typeset h2 {
  letter-spacing: 0.03em;
}

/* Sidebar più “flat” */
.md-nav {
  font-size: 0.9rem;
}

/* Link hover effetto high-tech */
.md-typeset a:hover {
  text-decoration: none;
  border-bottom: 1px solid rgba(0,255,255,0.8);
}

/* Code blocks: box più moderni */
.md-typeset pre > code {
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

/* Inline code un po' più leggibile */
.md-typeset code {
  border-radius: 4px;
  padding: 0.1em 0.25em;
}

/* Piccolo “hero” spacing per la prima sezione della home */
.md-typeset h1:first-of-type {
  margin-bottom: 0.3rem;
}

.md-typeset h1:first-of-type + p {
  font-size: 1.05rem;
  color: #cfd8dc;
}

/* Pulsanti stile call-to-action usando i link nelle liste */
.md-typeset .cta-list a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,255,255,0.5);
  text-decoration: none !important;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.md-typeset .cta-list a:hover {
  background: rgba(0,255,255,0.1);
  border-color: rgba(0,255,255,0.9);
}

/* --- NVIDIA-style footer, adapted to MkDocs Material dark/light themes --- */

.nvidia-footer-container {
  padding: 32px 24px;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--md-default-fg-color); /* automatic text color */
}

/* Subtle divider line */
.nvidia-footer-line {
  height: 1px;
  background: var(--md-default-fg-color--light);
  opacity: 0.15;
  margin-bottom: 24px;
}

/* Layout */
.nvidia-footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.nvidia-footer-left {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Links */
.nvidia-footer-right {
  display: flex;
  align-items: center;
}

.nvidia-footer-right a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--md-default-fg-color); /* dynamic */
  opacity: 0.6;
  font-size: 0.85rem;
}

.nvidia-footer-right a:hover {
  opacity: 1;
}

/* Copyright */
.nvidia-footer-copyright {
  font-size: 0.75rem;
  opacity: 0.55;
  text-align: center;
  margin-top: 12px;
}

/* --- Dark mode adjustments --- */
[data-md-color-scheme="slate"] .nvidia-footer-line {
  opacity: 0.25;
}

[data-md-color-scheme="slate"] .nvidia-footer-right a {
  opacity: 0.75;
}

/* --- LIGHT MODE FIX FOR FOOTER --- */

[data-md-color-scheme="default"] .nvidia-footer-container,
[data-md-color-scheme="default"] .nvidia-footer-left {
  color: #ECEFF1 !important; /* testo chiaro */
}

[data-md-color-scheme="default"] .nvidia-footer-right a {
  color: #CFD8DC !important; /* link chiari */
  opacity: 0.8;
}

[data-md-color-scheme="default"] .nvidia-footer-right a:hover {
  opacity: 1;
}

[data-md-color-scheme="default"] .nvidia-footer-line {
  background: #B0BEC5 !important; /* linea chiara */
  opacity: 0.3;
}

[data-md-color-scheme="default"] .nvidia-footer-copyright {
  color: #B0BEC5 !important;
  opacity: 0.8;
}

/* Container fixed in the top-right of the page */
.download-button-container {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 1000;
}

/* Button style */
.download-button {
  display: flex;
  align-items: center;
  gap: 6px;

  background: var(--md-primary-bg-color);
  color: var(--md-primary-fg-color);
  border-radius: 6px;
  padding: 6px 12px;

  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;

  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.download-button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Icon size */
.download-button .material-icons {
  font-size: 20px;
}

/* --- Pulizia barra announce di Material (niente riga nera) --- */
.md-banner {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Inner container: spinge il bottone a destra */
.md-banner__inner {
  max-width: 100%;
  margin: 0;
  padding: 0.25rem 1.5rem 0.25rem 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* Wrapper logico (se in futuro vuoi aggiungere altro) */
.sb-download-banner {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* --- Bottone DOWNLOAD SDK --- */
.sb-download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  background: var(--md-primary-bg-color);
  color: var(--md-primary-fg-color);
  border-radius: 999px;

  padding: 0.3rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  border: none;

  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sb-download-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* In dark mode manteniamo leggibilità e contrasto */
[data-md-color-scheme="slate"] .sb-download-button {
  background: var(--md-primary-bg-color);
  color: var(--md-primary-fg-color);
}
