/* Ascent Partners Brand Overrides for MkDocs Material */

/* ── Google Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Titillium+Web:wght@400;600;700&display=swap');

/* ── Color Variables ──────────────────────────────────────────────── */
:root {
  --md-primary-fg-color: #0083AB;
  --md-primary-fg-color--light: #00a3d4;
  --md-primary-fg-color--dark: #006585;
  --md-accent-fg-color: #0083AB;
  --md-accent-fg-color--transparent: rgba(0, 131, 171, 0.1);
  --md-typeset-color: #2D2D2D;
  --md-typeset-a-color: #0083AB;
  --md-default-fg-color: #373737;
}

/* ── Typography ───────────────────────────────────────────────────── */
.md-typeset {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: #2D2D2D;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: 'Titillium Web', 'Open Sans', sans-serif;
  color: #373737;
  font-weight: 600;
}

.md-typeset a {
  color: #0083AB;
}

.md-typeset a:hover {
  color: #006585;
}

/* ── Header / Navigation ──────────────────────────────────────────── */
.top-bar {
  background-color: #006585;
  color: #FFFFFF;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-family: 'Open Sans', sans-serif;
}

.top-bar-inner a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.top-bar-inner a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.top-bar-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.md-header {
  background-color: #FFFFFF;
  color: #373737;
  border-bottom: 2px solid #0083AB;
}

.md-header__title {
  color: #373737;
}

.md-header__topic {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 600;
}

.md-search__input {
  background-color: #f5f5f5;
  color: #2D2D2D;
}

.md-search__input::placeholder {
  color: #888;
}

/* ── Sidebar / Navigation ─────────────────────────────────────────── */
.md-sidebar__scrollwrap {
  border-right: 1px solid #e8e8e8;
}

.md-nav__link {
  color: #373737;
}

.md-nav__link--active {
  color: #0083AB;
  font-weight: 600;
}

.md-nav__link:hover {
  color: #0083AB;
}

.md-nav__item--nested > .md-nav__link {
  color: #555;
}

/* ── Table of Contents ────────────────────────────────────────────── */
.md-nav--secondary .md-nav__link {
  color: #555;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.md-footer {
  background-color: #1A1A1A;
  color: #FFFFFF;
}

.md-footer-meta {
  background-color: #111111;
}

.md-footer__inner {
  color: #ccc;
}

.md-footer a {
  color: #00a3d4;
}

.md-footer a:hover {
  color: #FFFFFF;
}

/* ── Code Blocks ──────────────────────────────────────────────────── */
.md-typeset code {
  background-color: #f0f7fa;
  color: #006585;
  border: 1px solid #d0e8f0;
}

.md-typeset pre > code {
  background-color: #f0f7fa;
  color: #2D2D2D;
  border: none;
}

/* ── Tables ───────────────────────────────────────────────────────── */
.md-typeset table:not([class]) th {
  background-color: #0083AB;
  color: #FFFFFF;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background-color: #f5f9fb;
}

/* ── Admonitions ──────────────────────────────────────────────────── */
.md-typeset .admonition,
.md-typeset details {
  border-color: #0083AB;
}

.md-typeset .admonition-title,
.md-typeset summary {
  background-color: rgba(0, 131, 171, 0.1);
  border-color: #0083AB;
  color: #006585;
}

/* ── Logo in Header ───────────────────────────────────────────────── */
.md-header__button.md-logo {
  padding: 0.4rem;
  margin: 0.4rem 0;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 2rem;
  width: auto;
}

/* ── Hero / Landing Page ──────────────────────────────────────────── */
.md-main__inner {
  margin-top: 0;
}

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0083AB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #006585;
}

/* ── Book Hero Section ────────────────────────────────────────────── */
.book-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f9fb 0%, #ffffff 100%);
  border-radius: 8px;
  border: 1px solid #e0eef3;
}

.book-cover {
  flex-shrink: 0;
  width: 200px;
}

.book-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-info {
  flex: 1;
  min-width: 0;
}

.book-info h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #0083AB;
  font-size: 1.75rem;
}

.book-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #373737;
  margin: 0.25rem 0;
}

.book-subtitle-2 {
  font-size: 0.95rem;
  color: #555;
  margin: 0.25rem 0 0.5rem;
}

.book-series {
  font-size: 0.85rem;
  color: #0083AB;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.book-author {
  font-size: 1rem;
  color: #373737;
  margin: 0.25rem 0 0.75rem;
}

.book-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 0.75rem;
}

.book-features {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

.amazon-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%);
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 153, 0, 0.3);
}

.amazon-btn:hover {
  background: linear-gradient(135deg, #E68A00 0%, #FFA833 100%);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.4);
}

/* ── Responsive: Book Hero ────────────────────────────────────────── */
@media (max-width: 768px) {
  .book-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 160px;
  }

  .book-info h2 {
    font-size: 1.5rem;
  }

  .amazon-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Custom Hero Section ──────────────────────────────────────────── */
.custom-hero {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f5f9fb 0%, #e8f4f8 50%, #ffffff 100%);
  border-radius: 0;
  margin: -1.5rem -1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.custom-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 131, 171, 0.05) 100%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: 'Titillium Web', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0083AB;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #373737;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.hero-tagline {
  font-size: 1rem;
  color: #666;
  margin: 0 0 1.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%);
  color: #000000;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E68A00 0%, #FFA833 100%);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: #0083AB;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #0083AB;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #0083AB;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.hero-book-cover {
  flex-shrink: 0;
  width: 220px;
  position: relative;
  z-index: 1;
}

.hero-book-cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Stats Bar ────────────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  margin: 0 0 2rem;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Titillium Web', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0083AB;
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0 0;
}

/* ── Architecture Cards ───────────────────────────────────────────── */
.arch-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.arch-card {
  padding: 2rem;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #e0eef3;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.arch-card:hover {
  border-color: #0083AB;
  box-shadow: 0 4px 16px rgba(0, 131, 171, 0.1);
  transform: translateY(-2px);
}

.arch-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.arch-card h3 {
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0083AB;
  margin: 0 0 0.75rem;
}

.arch-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.arch-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0083AB;
  text-decoration: none;
}

.arch-card-link:hover {
  color: #006585;
}

/* ── Quick Start Section ──────────────────────────────────────────── */
.quick-start-section {
  margin: 2rem 0;
  padding: 2rem;
  background: #f5f9fb;
  border-radius: 8px;
  border: 1px solid #e0eef3;
}

.quick-start-section h2 {
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0083AB;
  margin: 0 0 1rem;
}

/* ── Footer Cross-Links ───────────────────────────────────────────── */
.footer-crosslinks {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.footer-crosslink {
  color: #00a3d4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-crosslink:hover {
  color: #FFFFFF;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .arch-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .custom-hero {
    flex-direction: column-reverse;
    gap: 2rem;
    padding: 2rem 1rem;
    text-align: center;
  }

  .hero-book-cover {
    width: 160px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .arch-cards {
    grid-template-columns: 1fr;
  }

  .footer-crosslinks {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
