/* Custom Styling matching mlego approach & Material for MkDocs */

:root {
  --md-primary-fg-color: #00796b;
  --md-primary-fg-color--light: #48a999;
  --md-primary-fg-color--dark: #004c40;
  --md-accent-fg-color: #00897b;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #26a69a;
  --md-primary-fg-color--light: #64d8cb;
  --md-primary-fg-color--dark: #00766c;
  --md-accent-fg-color: #4db6ac;
}

/* Hero Section */
.mlego-hero, .iot-hero {
  margin: 1.5rem 0 2.5rem 0;
  padding: 2.2rem 2.4rem;
  background: linear-gradient(135deg, rgba(0, 121, 107, 0.08) 0%, rgba(0, 137, 123, 0.03) 100%);
  border: 1px solid rgba(0, 121, 107, 0.2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .mlego-hero,
[data-md-color-scheme="slate"] .iot-hero {
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.12) 0%, rgba(0, 76, 64, 0.25) 100%);
  border: 1px solid rgba(77, 182, 172, 0.25);
}

.mlego-hero__eyebrow, .iot-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--md-primary-fg-color);
  background: rgba(0, 121, 107, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}

[data-md-color-scheme="slate"] .mlego-hero__eyebrow,
[data-md-color-scheme="slate"] .iot-hero__eyebrow {
  background: rgba(38, 166, 154, 0.2);
  color: #80cbc4;
}

.mlego-hero h1, .iot-hero h1 {
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 2.2rem;
  line-height: 1.2;
}

.mlego-hero p, .iot-hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 52rem;
  margin-bottom: 1.5rem;
  color: var(--md-default-fg-color--light);
}

.mlego-hero__actions, .iot-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.mlego-hero__actions .md-button, .iot-hero__actions .md-button {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
}

/* Cards & Grids */
.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Feature Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background-color: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color);
  margin-right: 0.3rem;
  vertical-align: middle;
}

.badge-primary {
  background-color: rgba(0, 121, 107, 0.15);
  color: var(--md-primary-fg-color);
}

.badge-info {
  background-color: rgba(33, 150, 243, 0.15);
  color: #1976d2;
}

[data-md-color-scheme="slate"] .badge-info {
  color: #64b5f6;
}

.badge-success {
  background-color: rgba(76, 175, 80, 0.15);
  color: #388e3c;
}

[data-md-color-scheme="slate"] .badge-success {
  color: #81c784;
}

/* Image Polish */
.md-typeset img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Table Enhancements */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.85rem;
}

.md-typeset table:not([class]) th {
  background-color: rgba(0, 121, 107, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: rgba(38, 166, 154, 0.15);
}

