/* Azure Digital Natives Guide — Custom Styles */

/* ── Brand colors ─────────────────────────────────── */
:root {
  --azure-blue: #0078d4;
  --azure-dark: #004578;
  --azure-light: #deecf9;
  --success-green: #107c10;
  --warning-amber: #d83b01;
  --surface-bg: #fafbfc;
  --callout-border: #0078d4;
  --callout-bg: #f3f8fd;
  --tip-border: #107c10;
  --tip-bg: #f0faf0;
  --warning-bg: #fef7f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--surface-bg);
  color: #24292f;
}

/* ── Quick check callout boxes ───────────────────── */
/* Style the Quick check sections that appear in doc pages */
.main-content strong:first-child {
  /* Ensures bold items are prominent */
}

.main-content blockquote {
  border-left: 4px solid var(--azure-blue);
  background: var(--callout-bg);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

/* ── Code block improvements ─────────────────────── */
.main-content pre {
  border-radius: 6px;
  border: 1px solid #d0d7de;
}

.main-content code {
  font-size: 0.875em;
}

/* ── Table styling ───────────────────────────────── */
.main-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

.main-content table th {
  background-color: var(--azure-light);
  color: var(--azure-dark);
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c8d1d9;
}

.main-content table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d0d7de;
  vertical-align: top;
}

.main-content table tr:nth-child(even) {
  background-color: #f6f8fa;
}

/* ── Checkbox (checklist) improvements ───────────── */
.task-list-item {
  list-style: none;
  margin-left: -1.5rem;
  padding: 0.25rem 0;
}

.task-list-item input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.15);
  cursor: pointer;
  accent-color: var(--azure-blue);
}

/* ── Override theme purple (#7253ed) with Azure blue ── */
a {
  color: var(--azure-blue);
}

a:not([class]):hover {
  text-decoration-color: rgba(0, 120, 212, 0.45);
}

.icon {
  color: var(--azure-blue);
}

/* Nav links */
.nav-list .nav-list-item .nav-list-link {
  color: #24292f;
}

.nav-list .nav-list-item .nav-list-link:hover,
.nav-list .nav-list-item .nav-list-link.active {
  color: var(--azure-blue);
  background-image: linear-gradient(-90deg, var(--azure-light) 0%, rgba(222, 236, 249, 0.8) 80%, rgba(222, 236, 249, 0) 100%);
}

/* Child nav links */
.nav-list .nav-list-item > .nav-list .nav-list-item .nav-list-link {
  color: #5c5962;
}

.nav-list .nav-list-item > .nav-list .nav-list-item .nav-list-link:hover,
.nav-list .nav-list-item > .nav-list .nav-list-item .nav-list-link.active {
  color: var(--azure-blue);
}

/* Category nav links */
.nav-list.nav-category-list > .nav-list-item > .nav-list > .nav-list-item > .nav-list-link {
  color: var(--azure-blue);
}

.nav-list.nav-category-list > .nav-list-item > .nav-list > .nav-list-item > .nav-list-expander {
  color: var(--azure-blue);
}

/* Expander arrows */
.nav-list .nav-list-item .nav-list-expander {
  color: var(--azure-blue);
}

.nav-list .nav-list-item > .nav-list .nav-list-item .nav-list-expander {
  color: #5c5962;
}

/* Site title */
.site-title {
  color: var(--azure-dark) !important;
}

.site-title:hover {
  color: var(--azure-blue) !important;
  background-image: linear-gradient(-90deg, var(--azure-light) 0%, rgba(222, 236, 249, 0.8) 80%, rgba(222, 236, 249, 0) 100%);
}

/* Anchor heading icons */
.main-content .anchor-heading svg {
  color: var(--azure-blue);
}

/* Search input focus */
.search-input:focus {
  border-color: var(--azure-blue);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
}

/* Search icon — override purple on focus (theme: .search-input:focus+.search-label .search-icon) */
.search-input:focus + .search-label .search-icon {
  color: var(--azure-blue);
}

.search-label .search-icon {
  color: #959396;
}

/* Search result icons (theme: .search-result-doc .search-result-icon) */
.search-result-doc .search-result-icon {
  color: var(--azure-blue);
}

/* Search result hover background */
.search-result:hover,
.search-result.active {
  background-color: var(--azure-light);
}

/* Search results link color */
.search-result-title {
  color: var(--azure-blue);
}

/* Search button (mobile) — override purple border */
.search-button {
  border-color: rgba(0, 120, 212, 0.3);
}

/* Buttons — override purple text */
.btn {
  color: var(--azure-blue);
}

.btn:hover,
.btn.zeroclipboard-is-hover {
  color: var(--azure-dark);
}

.btn-outline {
  color: var(--azure-blue);
  box-shadow: inset 0 0 0 2px #c8d1d9;
}

.btn-outline:hover,
.btn-outline:active {
  color: var(--azure-dark);
  box-shadow: inset 0 0 0 3px #c8d1d9;
}

/* Code copy button focus */
div.highlighter-rouge > button:focus,
div.listingblock > div.content > button:focus,
figure.highlight > button:focus {
  outline: 2px solid var(--azure-blue);
}

/* Button hover */
.site-button:hover {
  background-image: linear-gradient(-90deg, var(--azure-light) 0%, rgba(222, 236, 249, 0.8) 100%);
}

/* Nav expander hover background */
.nav-list .nav-list-item .nav-list-expander:hover {
  background-image: linear-gradient(-90deg, var(--azure-light) 0%, rgba(222, 236, 249, 0.8) 100%);
}

/* ── Main content link styling ───────────────────── */
.main-content a {
  color: var(--azure-blue);
  text-decoration: none;
}

.main-content a:hover {
  text-decoration: underline;
}

/* ── Horizontal rule styling ─────────────────────── */
.main-content hr {
  border: none;
  border-top: 2px solid #d0d7de;
  margin: 2rem 0;
}

/* ── Image diagrams (SVG) ────────────────────────── */
.main-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Landing page enhancements ───────────────────── */
.main-content > h1:first-of-type {
  font-size: 2.25rem;
  color: var(--azure-dark);
  border-bottom: 3px solid var(--azure-blue);
  padding-bottom: 0.5rem;
}

/* ── Navigation improvements ─────────────────────── */
.site-title {
  font-weight: 700;
}

/* ── Print styling ───────────────────────────────── */
@media print {
  .site-nav, .site-header, .site-footer {
    display: none;
  }
  .main-content {
    max-width: 100%;
  }
}
