/* ===================================================================
   Matryoshka-Io Landing Page - Hero Styles
   Supports Material for MkDocs light/dark mode
   =================================================================== */

/* Hide navigation sidebar and TOC on landing page only (content is self-contained) */
body:has(.hero-wrapper) .md-nav,
body:has(.hero-wrapper) .md-sidebar {
  display: none !important;
}

/* Hero Wrapper - Full viewport layout */
.hero-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Hero Container - Main content area */
.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  justify-content: center;
}

/* Hero Image - Centered project logo, doubles as the primary action */
.hero-image {
  text-align: center;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.hero-image a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.hero-image a:hover {
  transform: translateY(-4px);
}

[data-md-color-scheme="default"] .hero-image a:hover img {
  box-shadow: 0 8px 28px rgba(63, 81, 181, 0.35);
}

/* Dark mode image shadow */
[data-md-color-scheme="slate"] .hero-image img {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-md-color-scheme="slate"] .hero-image a:hover img {
  box-shadow: 0 8px 28px rgba(0, 150, 136, 0.4);
}

/* Hero Buttons - Stacked vertically as lines */
.hero-buttons-top,
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin: 0.5rem auto;
  max-width: 320px;
  width: 100%;
}

.hero-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Primary Button - Light Mode */
[data-md-color-scheme="default"] .hero-button-primary {
  background-color: #3f51b5; /* indigo */
  color: white;
  border-color: #3f51b5;
}

[data-md-color-scheme="default"] .hero-button-primary:hover {
  background-color: #303f9f;
  border-color: #303f9f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

/* Primary Button - Dark Mode */
[data-md-color-scheme="slate"] .hero-button-primary {
  background-color: #009688; /* teal */
  color: white;
  border-color: #009688;
}

[data-md-color-scheme="slate"] .hero-button-primary:hover {
  background-color: #00796b;
  border-color: #00796b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}

/* Secondary Button - Light Mode */
[data-md-color-scheme="default"] .hero-button-secondary {
  background-color: transparent;
  color: #00bcd4; /* cyan */
  border-color: #00bcd4;
}

[data-md-color-scheme="default"] .hero-button-secondary:hover {
  background-color: #00bcd4;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Secondary Button - Dark Mode */
[data-md-color-scheme="slate"] .hero-button-secondary {
  background-color: transparent;
  color: #cddc39; /* lime */
  border-color: #cddc39;
}

[data-md-color-scheme="slate"] .hero-button-secondary:hover {
  background-color: #cddc39;
  color: #121212;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 220, 57, 0.3);
}

/* API button hidden on landing page - markup kept, toggle by removing this rule */
.hero-buttons-top .hero-button {
  display: none;
}

/* LOC badge - companion stat next to the API button */
.hero-loc-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-family: var(--md-code-font, monospace);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

[data-md-color-scheme="default"] .hero-loc-badge {
  background-color: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.65);
}

[data-md-color-scheme="slate"] .hero-loc-badge {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================================================
   Responsive Design
   =================================================================== */

@media screen and (max-width: 768px) {
  .hero-image { max-width: 90%; }
}

html {
  scroll-behavior: smooth;
}
