/**
 * Zora Tech Custom Branding Styles
 * Documentation Site - docs.zoratech.io
 */

/* ==========================================================================
   Brand Color Variables
   ========================================================================== */

:root {
  /* Zora Primary Blue */
  --md-primary-fg-color: #2563eb;
  --md-primary-fg-color--light: #3b82f6;
  --md-primary-fg-color--dark: #1d4ed8;

  /* Zora Accent Blue */
  --md-accent-fg-color: #0ea5e9;
  --md-accent-fg-color--transparent: rgba(14, 165, 233, 0.1);

  /* Additional brand colors */
  --zora-blue: #2563eb;
  --zora-blue-dark: #1d4ed8;
  --zora-blue-light: #3b82f6;
  --zora-sky: #0ea5e9;
  --zora-gray: #374151;
}

/* Dark mode color overrides */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #3b82f6;
  --md-primary-fg-color--light: #60a5fa;
  --md-primary-fg-color--dark: #2563eb;

  --md-accent-fg-color: #0ea5e9;

  /* Dark mode backgrounds */
  --md-default-bg-color: #0f172a;
  --md-default-fg-color: #e2e8f0;
  --md-code-bg-color: #1e293b;
}

/* ==========================================================================
   Header Styling
   ========================================================================== */

/* Header gradient background */
.md-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header title styling */
.md-header__title {
  font-weight: 600;
  color: #ffffff !important;
}

.md-header__title .md-header__ellipsis {
  color: #ffffff !important;
}

/* Header links and navigation */
.md-header__button {
  color: #ffffff !important;
}

.md-header__topic {
  color: #ffffff !important;
}

.md-header a {
  color: #ffffff !important;
}

.md-header .md-nav__link {
  color: #ffffff !important;
}

/* Search bar in header */
.md-search__input {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: #ffffff !important;
}

.md-search__input:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.85) !important;
}

.md-search__icon {
  color: #ffffff !important;
}

/* ==========================================================================
   Navigation & Sidebar
   ========================================================================== */

/* Navigation tabs */
.md-tabs {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.md-tabs__link {
  color: #ffffff !important;
  opacity: 0.85;
}

.md-tabs__link:hover {
  opacity: 1;
}

.md-tabs__link--active {
  color: #ffffff !important;
  opacity: 1;
  font-weight: 600;
}

/* Active navigation item */
.md-nav__link--active {
  color: var(--md-primary-fg-color);
  font-weight: 600;
}

/* Navigation hover states */
.md-nav__link:hover {
  color: var(--md-accent-fg-color);
}

/* ==========================================================================
   Content Styling
   ========================================================================== */

/* Links */
a {
  color: var(--md-primary-fg-color);
  text-decoration: none;
}

a:hover {
  color: var(--md-accent-fg-color);
  text-decoration: underline;
}

/* Code blocks */
.md-typeset code {
  background-color: var(--md-code-bg-color);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
}

/* Inline code */
.md-typeset :not(pre) > code {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--md-primary-fg-color);
  font-weight: 500;
}

/* Code block header */
.md-typeset .highlight > pre {
  border-radius: 0.5rem;
  border-left: 4px solid var(--md-primary-fg-color);
}

/* ==========================================================================
   Admonitions (Callout Boxes)
   ========================================================================== */

/* Info admonition */
.md-typeset .admonition.info,
.md-typeset details.info {
  border-left: 4px solid var(--md-accent-fg-color);
}

/* Tip admonition */
.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-left: 4px solid #10b981;
}

/* Warning admonition */
.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-left: 4px solid #f59e0b;
}

/* Danger admonition */
.md-typeset .admonition.danger,
.md-typeset details.danger {
  border-left: 4px solid #ef4444;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Primary button styling */
.md-button--primary {
  background-color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.md-button--primary:hover {
  background-color: var(--md-primary-fg-color--dark);
  border-color: var(--md-primary-fg-color--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Tables
   ========================================================================== */

/* Table header */
.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
}

/* Table row hover */
.md-typeset table:not([class]) tr:hover {
  background-color: var(--md-accent-fg-color--transparent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Footer styling */
.md-footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Footer links */
.md-footer-meta {
  background-color: rgba(15, 23, 42, 0.8);
}

/* ==========================================================================
   Custom Homepage Styling
   ========================================================================== */

/* Hero section */
.homepage-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-radius: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.homepage-hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.homepage-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Feature cards */
.feature-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.feature-card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.feature-card h3 {
  color: var(--md-primary-fg-color);
  margin-top: 0;
}

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

@media screen and (max-width: 76.1875em) {
  .md-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

@media screen and (max-width: 44.9375em) {
  .homepage-hero h1 {
    font-size: 2rem;
  }

  .homepage-hero p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .md-header,
  .md-tabs,
  .md-sidebar,
  .md-footer {
    display: none;
  }

  .md-content {
    max-width: 100%;
  }
}
