/* =============================================================================
   ACTO Documentation - Custom Theme
   Consistent with ACTO Dashboard Design
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Import Fonts (same as Dashboard)
   ----------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* -----------------------------------------------------------------------------
   CSS Variables - Dashboard Colors (Light Mode)
   ----------------------------------------------------------------------------- */
:root {
  /* Background colors */
  --vp-c-bg: #f8f9fa;
  --vp-c-bg-alt: #ffffff;
  --vp-c-bg-elv: #ffffff;
  --vp-c-bg-soft: #f3f4f6;
  
  /* Text colors */
  --vp-c-text-1: #1a1a1a;
  --vp-c-text-2: #6b7280;
  --vp-c-text-3: #9ca3af;
  
  /* Brand colors - neutral gray/black (no blue) */
  --vp-c-brand-1: #4b5563;
  --vp-c-brand-2: #1a1a1a;
  --vp-c-brand-3: #6b7280;
  --vp-c-brand-soft: rgba(75, 85, 99, 0.12);
  
  /* Border colors */
  --vp-c-border: #e5e7eb;
  --vp-c-divider: #f3f4f6;
  
  /* Status colors */
  --acto-success: #10b981;
  --acto-error: #ef4444;
  --acto-warning: #f59e0b;
  
  /* Shadows (from dashboard) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Border radius (from dashboard) */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Sidebar */
  --vp-sidebar-bg-color: rgba(255, 255, 255, 0.95);
}


/* -----------------------------------------------------------------------------
   Typography - Dashboard Fonts
   ----------------------------------------------------------------------------- */
:root {
  /* Inter for body text */
  --vp-font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* JetBrains Mono for code */
  --vp-font-family-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Playfair Display for headings (like Dashboard) */
.vp-doc h1,
.vp-doc h2,
.VPHero .name,
.VPFeature .title {
  font-family: 'Playfair Display', serif !important;
  letter-spacing: -0.5px;
}

.vp-doc h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.vp-doc h2 {
  font-size: 24px;
  font-weight: 600;
  border-top: none;
  padding-top: 32px;
  margin-top: 32px;
}

.vp-doc h3 {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* Body text - Inter, matching dashboard */
.vp-doc p,
.vp-doc li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--vp-c-text-2);
}

/* -----------------------------------------------------------------------------
   Background - Dashboard Style
   ----------------------------------------------------------------------------- */
body {
  background-color: var(--vp-c-bg);
}

/* Hero background image on home page (like Dashboard) */
.VPHome {
  background-image: url('/hero.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Subtle gradient overlay like dashboard */
.VPContent {
  position: relative;
}

/* -----------------------------------------------------------------------------
   Navigation Bar - Dashboard Style
   ----------------------------------------------------------------------------- */
.VPNavBar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vp-c-divider);
}


/* Logo text with Playfair Display */
.VPNavBarTitle .title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.3px;
}

/* Nav links */
.VPNavBarMenuLink {
  font-size: 14px;
  font-weight: 500;
  color: var(--vp-c-text-2);
}

.VPNavBarMenuLink:hover {
  color: var(--vp-c-text-1);
}

/* -----------------------------------------------------------------------------
   Sidebar - Dashboard Style
   ----------------------------------------------------------------------------- */
.VPSidebar {
  background: var(--vp-sidebar-bg-color) !important;
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--vp-c-divider);
}

.VPSidebarItem .text {
  font-size: 14px;
  font-weight: 400;
  color: var(--vp-c-text-2);
}

.VPSidebarItem.is-active > .item .text {
  color: var(--vp-c-text-1);
  font-weight: 600;
  background: var(--vp-c-bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Sidebar group titles */
.VPSidebarItem.level-0 > .item .text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vp-c-text-3);
}

/* -----------------------------------------------------------------------------
   Cards & Containers - Dashboard Style
   ----------------------------------------------------------------------------- */
.vp-doc .custom-block {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}


.vp-doc .custom-block.info {
  border-left: 4px solid var(--vp-c-brand-1);
}

.vp-doc .custom-block.tip {
  border-left: 4px solid var(--acto-success);
}

.vp-doc .custom-block.warning {
  border-left: 4px solid var(--acto-warning);
}

.vp-doc .custom-block.danger {
  border-left: 4px solid var(--acto-error);
}

.vp-doc .custom-block .custom-block-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
}

/* -----------------------------------------------------------------------------
   Code Blocks - Dashboard Style
   ----------------------------------------------------------------------------- */
.vp-doc div[class*='language-'] {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}


/* Code block language label */
.vp-doc div[class*='language-'] > span.lang {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vp-c-text-3);
  background: var(--vp-c-bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Inline code */
.vp-doc :not(pre) > code {
  background: var(--vp-c-bg-soft);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--vp-c-text-1);
  border: 1px solid var(--vp-c-divider);
}

/* -----------------------------------------------------------------------------
   Tables - Dashboard Style
   ----------------------------------------------------------------------------- */
.vp-doc table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--vp-c-divider);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}


.vp-doc tr {
  border-top: 1px solid var(--vp-c-divider);
}

.vp-doc th {
  background: var(--vp-c-bg-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vp-c-text-2);
}

.vp-doc td, .vp-doc th {
  padding: 12px 16px;
}

/* -----------------------------------------------------------------------------
   Buttons - Dashboard Style
   ----------------------------------------------------------------------------- */
.VPButton.brand {
  background: var(--vp-c-text-1);
  border: 1px solid var(--vp-c-text-1);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.VPButton.brand:hover {
  background: #374151;
  border-color: #374151;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.VPButton.alt {
  border: 1px solid var(--vp-c-border);
  border-radius: var(--radius-md);
  color: var(--vp-c-text-2);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.VPButton.alt:hover {
  background: var(--vp-c-bg);
  color: var(--vp-c-text-1);
  border-color: var(--vp-c-text-1);
}

/* -----------------------------------------------------------------------------
   Hero Section - Dashboard Style
   ----------------------------------------------------------------------------- */
.VPHero .name {
  font-family: 'Playfair Display', serif !important;
  font-size: 48px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -1px;
}

.VPHero .text {
  font-family: 'Playfair Display', serif !important;
  font-size: 28px;
  font-weight: 500;
  color: #1a1a1a;
}

.VPHero .tagline {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  max-width: 560px;
}

/* Hero logo size - 50% smaller */
.VPHero .image-container .image-bg,
.VPHero .image-container img,
.VPHero .VPImage {
  max-width: 40% !important;
  height: auto !important;
}

.VPHero .image-container {
  transform: scale(0.5);
  transform-origin: center center;
}

/* -----------------------------------------------------------------------------
   Feature Cards - Dashboard Style
   ----------------------------------------------------------------------------- */
.VPFeature {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}


.VPFeature:hover {
  border-color: var(--vp-c-text-1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.VPFeature .icon {
  font-size: 24px;
}

.VPFeature .title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 600;
  font-size: 18px;
  color: var(--vp-c-text-1);
}

.VPFeature .details {
  font-size: 14px;
  color: var(--vp-c-text-2);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Links - Dashboard Style (no blue, use gray/black)
   ----------------------------------------------------------------------------- */
.vp-doc a {
  color: var(--vp-c-text-1);
  text-decoration: underline;
  text-decoration-color: var(--vp-c-text-3);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.vp-doc a:hover {
  color: #000000;
  text-decoration-color: #000000;
}

/* -----------------------------------------------------------------------------
   Search - Dashboard Style
   ----------------------------------------------------------------------------- */
.VPLocalSearchBox .shell {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}


/* -----------------------------------------------------------------------------
   Badge Styles (for API methods)
   ----------------------------------------------------------------------------- */
.method-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.method-badge.get {
  background: rgba(16, 185, 129, 0.12);
  color: var(--acto-success);
}

.method-badge.post {
  background: rgba(59, 130, 246, 0.12);
  color: var(--vp-c-brand-1);
}

.method-badge.put, .method-badge.patch {
  background: rgba(245, 158, 11, 0.12);
  color: var(--acto-warning);
}

.method-badge.delete {
  background: rgba(239, 68, 68, 0.12);
  color: var(--acto-error);
}

/* -----------------------------------------------------------------------------
   Endpoint Cards - Dashboard Style
   ----------------------------------------------------------------------------- */
.endpoint-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--vp-c-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}


.endpoint-card .path {
  font-family: var(--vp-font-family-mono);
  font-size: 14px;
  color: var(--vp-c-text-2);
}

/* -----------------------------------------------------------------------------
   Content Width
   ----------------------------------------------------------------------------- */
.VPDoc.has-aside .content-container {
  max-width: 900px;
}

/* -----------------------------------------------------------------------------
   Scrollbar - Subtle
   ----------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--vp-c-divider);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vp-c-text-3);
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .VPHero .name {
    font-size: 32px;
  }
  
  .VPHero .text {
    font-size: 22px;
  }
  
  .vp-doc h1 {
    font-size: 26px;
  }
  
  .vp-doc h2 {
    font-size: 20px;
  }
}

/* -----------------------------------------------------------------------------
   Print
   ----------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
   Footer - Slim & Compact
   ----------------------------------------------------------------------------- */
.VPFooter {
  padding: 12px 24px !important;
  margin-top: 0 !important;
  border-top: 1px solid var(--vp-c-divider);
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
}

.VPFooter .message,
.VPFooter .copyright {
  font-size: 11px !important;
  line-height: 1.2 !important;
  margin: 2px 0 !important;
  color: var(--vp-c-text-3) !important;
}

.VPFooter .container {
  padding: 0 !important;
}

/* Remove excessive padding/margins on home page */
.VPHome {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: auto !important;
}

.VPContent.is-home {
  padding-bottom: 0 !important;
  min-height: auto !important;
}

.VPContent.is-home .VPHome {
  min-height: auto !important;
}

/* Home page markdown content container */
.VPHome .vp-doc {
  padding-bottom: 60px !important;
  margin-bottom: 0 !important;
}

/* The container that wraps home content */
.VPContent.is-home > .VPHome > div:last-child {
  padding-bottom: 0 !important;
}

/* Target the home content wrapper directly */
.VPHomeContent {
  padding-bottom: 0 !important;
}

main.VPHome {
  min-height: auto !important;
  padding-bottom: 0 !important;
}

/* -----------------------------------------------------------------------------
   Print
   ----------------------------------------------------------------------------- */
@media print {
  .VPNavBar,
  .VPSidebar,
  .VPLocalNav,
  .VPDocFooter {
    display: none !important;
  }
}
