/* Semtech-inspired CSS */
:root {
  --semtech-blue: #0047ab;
  --semtech-dark-blue: #003580;
  --semtech-light-blue: #e6f2ff;
  --semtech-red: #dc2626;
  --semtech-gray: #6b7280;
  --semtech-light-gray: #f9fafb;
  --semtech-dark-gray: #374151;
  --white: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--semtech-light-gray);
  color: var(--text-primary);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--semtech-blue) 0%, var(--semtech-dark-blue) 100%);
  color: var(--white);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 71, 171, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

header img {
  flex-shrink: 0;
}

header h1 {
  flex: 1;
  text-align: left;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

nav {
  background: var(--white);
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--semtech-blue);
}

nav a {
  color: var(--semtech-blue);
  margin: 0 1.5rem;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

nav a:hover {
  background: var(--semtech-light-blue);
  color: var(--semtech-dark-blue);
  transform: translateY(-1px);
}

section {
  padding: 2.5rem;
  background: var(--white);
  margin: 2rem auto;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

section h2 {
  color: var(--semtech-blue);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--semtech-light-blue);
  padding-bottom: 0.5rem;
}

section h3 {
  color: var(--semtech-dark-blue);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

ul, ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

a {
  color: var(--semtech-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--semtech-dark-blue);
  text-decoration: underline;
}

figure {
  margin: 2rem 0;
  text-align: center;
}

figcaption {
  margin-top: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--semtech-dark-gray);
  color: var(--white);
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Code styling */
code {
  background: var(--semtech-light-gray);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: var(--semtech-red);
  font-size: 0.9rem;
}

/* Note box styling */
div[style*="background-color: #f0f8ff"] {
  background: var(--semtech-light-blue) !important;
  border-left: 4px solid var(--semtech-blue) !important;
  border-radius: 8px !important;
  padding: 1.2rem !important;
  margin: 1.5rem 0 !important;
  box-shadow: 0 2px 8px rgba(0, 71, 171, 0.1) !important;
}

/* Side-by-side layout utilities */
.side-by-side {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0;
}

.side-by-side .text-content {
  flex: 1;
}

.side-by-side .image-content {
  flex: 1;
  text-align: center;
}

.side-by-side .image-content img {
  max-width: 100%;
  height: auto;
}

/* Responsive side-by-side */
@media (max-width: 768px) {
  .side-by-side {
    flex-direction: column;
    gap: 1rem;
  }
  
  .side-by-side .image-content {
    order: -1; /* Image first on mobile */
  }
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  header h1 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }
  
  nav {
    padding: 0.8rem 1rem;
  }
  
  nav a {
    margin: 0 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  section {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* Release notes styling */
.release-entry {
  background: var(--semtech-light-gray);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.release-entry:hover {
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.1);
}

.release-entry h3 {
  color: var(--semtech-blue);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.8rem 0;
  border-bottom: 1px solid var(--semtech-light-blue);
  padding-bottom: 0.5rem;
}

.release-entry p {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.release-entry ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.release-entry li {
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}