<template>
  <div class="fdsa-app">
    <Layout>
      <template #layout-top>
        <!-- Site-wide banner could go here -->
      </template>
    </Layout>
  </div>
</template>

<script setup>
import DefaultTheme from 'vitepress/theme'
const { Layout } = DefaultTheme
</script>

<style>
/* FDSA premium wrapper for all content pages */
.fdsa-app {
  background: var(--vp-c-bg);
  min-height: 100vh;
}

/* Subtle gradient background on content pages */
.fdsa-app::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(217,92,65,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure VitePress elements sit above the gradient */
.VPNav, .VPSidebar, .VPContent {
  position: relative;
  z-index: 1;
}

/* Glass card around main content */
.VPDoc:not(.VPDoc--blank) > .container > .content {
  background: var(--vp-c-bg-soft) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(128,128,128,0.08) !important;
  border-top: 1px solid rgba(128,128,128,0.12) !important;
  border-radius: 12px !important;
}

/* Nav: match landing page */
.VPNav {
  background: rgba(0,0,0,0.85) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--vp-c-border) !important;
}

/* FDSA brand in nav */
.VPNavBarTitle .title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: var(--vp-c-text-1) !important;
}
.VPNavBarTitle .title::before {
  content: 'terminal';
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  color: var(--vp-c-brand-1);
}
.VPNavBarTitle .logo {
  display: none !important;
}
.VPNavBarMenuLink:hover, .VPNavBarMenuLink.active {
  color: var(--vp-c-brand-1) !important;
}

/* Sidebar: FDSA styling */
.VPSidebar {
  background: transparent !important;
  border-right: 1px solid var(--vp-c-border) !important;
}
.VPSidebar .item .text { 
  font-size: 13px !important; 
  font-weight: 500 !important; 
}
.VPSidebar .item.active .text { 
  color: var(--vp-c-brand-1) !important; 
  font-weight: 600 !important; 
}
.VPSidebar .item .text:hover { 
  color: var(--vp-c-brand-1) !important; 
}
.VPSidebar .group + .group { 
  border-top: 1px solid var(--vp-c-border) !important; 
}

/* Content area: padding inside glass card */
.vp-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 40px 48px;
}

/* Typography */
.vp-doc h1 {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.1 !important;
  margin-bottom: 24px !important;
  color: var(--vp-c-text-1) !important;
}
.vp-doc h2 {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
  padding-top: 32px !important;
  margin-top: 40px !important;
  margin-bottom: 16px !important;
  border-top: 1px solid var(--vp-c-border) !important;
  color: var(--vp-c-text-1) !important;
}
.vp-doc h3 {
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  margin-top: 28px !important;
  margin-bottom: 12px !important;
  color: var(--vp-c-text-1) !important;
}
.vp-doc p {
  font-size: 0.9375rem !important;
  line-height: 1.7 !important;
  color: var(--vp-c-text-1) !important;
  margin-bottom: 16px !important;
}
.vp-doc a {
  color: var(--vp-c-brand-1) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vp-doc a:hover { color: var(--vp-c-brand-2) !important; }

/* Code blocks */
.vp-doc div[class*='language-'] {
  border-radius: 10px !important;
  border: 1px solid var(--vp-c-border) !important;
  background: rgba(0,0,0,0.3) !important;
  margin: 24px 0 !important;
}
.vp-code {
  font-family: 'DM Mono', ui-monospace, monospace !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}
.vp-doc code {
  font-family: 'DM Mono', ui-monospace, monospace !important;
  font-size: 0.8125rem !important;
  background: var(--vp-c-bg-mute) !important;
  border: 1px solid var(--vp-c-border) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  color: var(--vp-c-text-1) !important;
}

/* Tables */
.vp-doc table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--vp-c-border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.875rem !important;
  margin: 24px 0 !important;
}
.vp-doc th {
  background: var(--vp-c-bg-mute);
  font-weight: 600;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vp-c-text-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--vp-c-border);
}
.vp-doc td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--vp-c-divider);
  font-size: 0.875rem !important;
  color: var(--vp-c-text-1);
}
.vp-doc tr:last-child td { border-bottom: none; }
.vp-doc tr:hover td { background: var(--vp-c-bg-soft); }

/* Blockquotes */
.vp-doc blockquote {
  border-left: 3px solid var(--vp-c-brand-1) !important;
  background: var(--vp-c-brand-soft) !important;
  padding: 16px 24px !important;
  border-radius: 0 10px 10px 0 !important;
  margin: 24px 0 !important;
}
.vp-doc blockquote p {
  font-size: 0.875rem !important;
  color: var(--vp-c-text-2) !important;
  font-style: italic !important;
}

/* Dividers */
.vp-doc hr {
  border: none;
  border-top: 1px solid var(--vp-c-divider);
  margin: 48px 0;
}

/* Custom blocks */
.custom-block {
  border-radius: 10px !important;
  border: 1px solid var(--vp-c-border) !important;
  padding: 16px 20px !important;
  margin: 24px 0 !important;
  background: var(--vp-c-bg-soft) !important;
}
.custom-block.tip {
  border-color: rgba(217,92,65,0.3) !important;
  background: var(--vp-c-brand-soft) !important;
}

/* Footer */
.VPFooter {
  border-top: 1px solid var(--vp-c-divider) !important;
  background: transparent !important;
  padding: 24px 0 !important;
}
.VPFooter .message {
  font-size: 13px !important;
  color: var(--vp-c-text-3) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .vp-doc { padding: 24px 20px; }
  .vp-doc h1 { font-size: 1.75rem !important; }
  .vp-doc h2 { font-size: 1.125rem !important; }
}
</style>
