﻿/* NectarPress Docs - Enterprise Premium Stylesheet
   Brand: Navy #163773 . Blue #0284C7 . Orange #F05028
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --nd-navy:      #163773;
  --nd-navy-dk:   #0f2850;
  --nd-navy-lt:   #1e4a96;
  --nd-blue:      #0284C7;
  --nd-orange:    #F05028;
  --nd-bg:        #f8fafc;
  --nd-border:    #e2e8f0;
  --nd-shadow:    0 1px 3px rgba(22,55,115,.08),0 1px 2px rgba(0,0,0,.04);
  --nd-shadow-md: 0 4px 16px rgba(22,55,115,.12),0 2px 6px rgba(0,0,0,.06);
  --nd-shadow-lg: 0 12px 40px rgba(22,55,115,.15),0 4px 12px rgba(0,0,0,.08);
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color:             #163773;
  --md-primary-fg-color--light:      #1e4a96;
  --md-primary-fg-color--dark:       #0f2850;
  --md-primary-bg-color:             #ffffff;
  --md-accent-fg-color:              #0284C7;
  --md-accent-fg-color--transparent: rgba(2,132,199,.1);
  --md-default-bg-color:             #f8fafc;
  --md-typeset-a-color:              #0284C7;
  --md-code-bg-color:                #0f172a;
  --md-code-fg-color:                #e2e8f0;
}
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0284C7;
  --md-accent-fg-color:  #38bdf8;
  --md-default-bg-color: #0b1120;
}

body, .md-typeset {
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.md-header {
  background: linear-gradient(90deg, #0f2850 0%, #163773 55%, #1e4a96 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.07), var(--nd-shadow-md);
  height: 62px;
}
.md-header__inner { padding: 0 24px; height: 62px; }
.md-header__button.md-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .92; transition: opacity .2s; }
.md-header__button.md-logo:hover img { opacity: 1; }
.md-header__title { font-size: 16px; font-weight: 700; color: #fff; }

/* Search */
.md-search__input { background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.15) !important; color: #fff !important; border-radius: 8px !important; font-size: 14px !important; transition: all .2s; }
.md-search__input::placeholder { color: rgba(255,255,255,.45) !important; }
.md-search__input:focus { background: rgba(255,255,255,.15) !important; border-color: rgba(255,255,255,.28) !important; box-shadow: 0 0 0 3px rgba(255,255,255,.07) !important; }
.md-search__icon { color: rgba(255,255,255,.55) !important; }

/* Nav tabs */
.md-tabs { background: var(--nd-navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.md-tabs__link { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.62) !important; height: 46px; padding: 0 16px; transition: color .18s; }
.md-tabs__link:hover, .md-tabs__link--active { color: #fff !important; }
.md-tabs__link--active { font-weight: 600; border-bottom: 2.5px solid #F05028; margin-bottom: -1px; }

/* Banner */
.md-banner { background: linear-gradient(90deg, #0f2850, #163773); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; padding: 9px 20px; color: rgba(255,255,255,.82); }
.md-banner a { color: #fff !important; font-weight: 600; }
.md-banner__button { color: rgba(255,255,255,.45); }

/* Sidebar */
.md-sidebar { background: #fff; border-right: 1px solid var(--nd-border); }
.md-sidebar--secondary { border-left: 1px solid var(--nd-border); border-right: none; }
.md-nav__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: #94a3b8; padding: 16px 16px 6px; }
.md-nav__link { font-size: 13px; color: #475569; border-radius: 6px; margin: 1px 8px; padding: 6px 10px !important; transition: all .15s; position: relative; }
.md-nav__link:hover { background: rgba(2,132,199,.07); color: #0284C7 !important; }
.md-nav__link--active { color: #163773 !important; font-weight: 600; background: rgba(22,55,115,.07); }
.md-nav__link--active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 55%; background: #0284C7; border-radius: 0 3px 3px 0; }
.md-nav__item--nested > .md-nav__link { font-size: 13px; font-weight: 600; color: #334155; }

/* Content */
.md-main { background: var(--nd-bg); }
.md-content { background: #fff; border-radius: 12px; box-shadow: var(--nd-shadow); margin: 20px; }
.md-content__inner { padding: 40px 48px 52px !important; max-width: 820px; }

/* Headings */
.md-typeset h1 { font-size: 29px; font-weight: 800; color: #163773; letter-spacing: -.6px; line-height: 1.2; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid #e2e8f0; }
.md-typeset h2 { font-size: 20px; font-weight: 700; color: #1e293b; letter-spacing: -.3px; margin-top: 40px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.md-typeset h3 { font-size: 16px; font-weight: 700; color: #163773; margin-top: 28px; }
.md-typeset h4 { font-size: 13px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .5px; }

/* Links */
.md-typeset a { color: #0284C7; font-weight: 500; text-decoration: none; transition: color .15s; }
.md-typeset a:hover { color: #163773; text-decoration: underline; text-underline-offset: 2px; }

/* Tables */
.md-typeset table:not([class]) { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; box-shadow: var(--nd-shadow); font-size: 14px; }
.md-typeset table:not([class]) th { background: #163773; color: #fff; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; padding: 12px 16px; border: none; }
.md-typeset table:not([class]) td { padding: 11px 16px; border-top: 1px solid #e2e8f0; color: #334155; }
.md-typeset table:not([class]) tr:first-child td { border-top: none; }
.md-typeset table:not([class]) tr:hover td { background: rgba(2,132,199,.04); }

/* Code */
.md-typeset pre { border-radius: 10px; border: 1px solid #1e293b; box-shadow: var(--nd-shadow-md); }
.md-typeset code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; padding: 2px 6px; font-size: 13px; color: #b91c1c; font-family: JetBrains Mono, Fira Code, monospace; }
.md-typeset pre code { background: transparent; border: none; color: #e2e8f0; padding: 0; font-size: 13.5px; }

/* Admonitions */
.md-typeset .admonition { border-radius: 10px; border-width: 0 0 0 4px; box-shadow: var(--nd-shadow); font-size: 14px; }
.md-typeset .admonition-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 10px 16px; }
.md-typeset .admonition.tip     { border-color: #0284C7; }
.md-typeset .admonition.tip     > .admonition-title { background: rgba(2,132,199,.08); color: #0369a1; }
.md-typeset .admonition.note    { border-color: #163773; }
.md-typeset .admonition.note    > .admonition-title { background: rgba(22,55,115,.07); color: #163773; }
.md-typeset .admonition.warning { border-color: #F05028; }
.md-typeset .admonition.warning > .admonition-title { background: rgba(240,80,40,.08); color: #c2410c; }
.md-typeset .admonition.danger  { border-color: #dc2626; }
.md-typeset .admonition.danger  > .admonition-title { background: rgba(220,38,38,.07); color: #dc2626; }

/* Grid cards */
.md-typeset .grid.cards > :is(ul,ol) > li { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; box-shadow: var(--nd-shadow); transition: all .2s; position: relative; overflow: hidden; }
.md-typeset .grid.cards > :is(ul,ol) > li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#163773,#0284C7); opacity: 0; transition: opacity .2s; }
.md-typeset .grid.cards > :is(ul,ol) > li:hover { border-color: rgba(2,132,199,.3); box-shadow: var(--nd-shadow-md); transform: translateY(-3px); }
.md-typeset .grid.cards > :is(ul,ol) > li:hover::before { opacity: 1; }

/* Footer */
.md-footer { background: #163773; border-top: 3px solid rgba(255,255,255,.07); }
.md-footer-meta { background: #0f2850; }
.md-footer__title { font-weight: 600; color: #fff; }
.md-footer__link  { color: rgba(255,255,255,.62) !important; font-size: 13px; }
.md-footer__link:hover { color: #fff !important; }
.md-footer-copyright { font-size: 12px; color: rgba(255,255,255,.42); }
.md-footer__button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 18px; transition: all .18s; color: rgba(255,255,255,.8) !important; }
.md-footer__button:hover { background: rgba(255,255,255,.15); color: #fff !important; }

/* TOC */
.md-nav--secondary .md-nav__link { font-size: 12.5px; color: #64748b; padding: 4px 8px !important; border-radius: 5px; margin: 0; }
.md-nav--secondary .md-nav__link--active { color: #0284C7 !important; font-weight: 600; background: rgba(2,132,199,.07); }

/* Search results */
.md-search__output { border-radius: 12px; box-shadow: var(--nd-shadow-lg); border: 1px solid #e2e8f0; overflow: hidden; }
.md-search-result__meta { background: #163773; font-size: 11px; color: rgba(255,255,255,.6); padding: 8px 16px; text-transform: uppercase; letter-spacing: .5px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============ HOME PAGE HERO ============ */

.nd-hero { background: linear-gradient(135deg, #0f2850 0%, #163773 55%, #1e4a96 100%); color: #fff; padding: 72px 48px 60px; margin: -40px -48px 48px; position: relative; overflow: hidden; }
.nd-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(2,132,199,.22) 0%, transparent 70%); pointer-events: none; }
.nd-hero::after  { content: ''; position: absolute; bottom: -40px; left: 25%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(240,80,40,.1) 0%, transparent 70%); pointer-events: none; }
.nd-hero__badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.82); margin-bottom: 20px; letter-spacing: .3px; }
.nd-dot { width:6px; height:6px; background:#F05028; border-radius:50%; animation:nd-pulse 2s ease-in-out infinite; display:inline-block; }
@keyframes nd-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }
.nd-hero h1 { font-size: 44px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin: 0 0 16px; color: #fff; border: none; padding: 0; }
.nd-hero h1 span { background: linear-gradient(135deg,#38bdf8,#7dd3fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nd-hero p { font-size: 17px; color: rgba(255,255,255,.72); max-width: 560px; line-height: 1.65; margin: 0 0 32px; }
.nd-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.nd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: all .18s; cursor: pointer; border: none; }
.nd-btn-primary { background: #0284C7; color: #fff !important; box-shadow: 0 2px 8px rgba(2,132,199,.4),0 1px 0 rgba(255,255,255,.15) inset; }
.nd-btn-primary:hover { background: #0369a1; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(2,132,199,.5); text-decoration: none !important; }
.nd-btn-outline { background: rgba(255,255,255,.1); color: #fff !important; border: 1.5px solid rgba(255,255,255,.25); }
.nd-btn-outline:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); text-decoration: none !important; }

.nd-stats { display: flex; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; margin-bottom: 48px; box-shadow: var(--nd-shadow); background: #fff; }
.nd-stat { flex: 1; padding: 20px 24px; text-align: center; border-right: 1px solid #e2e8f0; }
.nd-stat:last-child { border-right: none; }
.nd-stat__value { display: block; font-size: 22px; font-weight: 800; color: #163773; letter-spacing: -.5px; margin-bottom: 3px; }
.nd-stat__label { display: block; font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .7px; }

.nd-quick-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 14px; margin: 28px 0; }
.nd-quick-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; text-decoration: none !important; display: block; transition: all .2s; box-shadow: var(--nd-shadow); position: relative; overflow: hidden; }
.nd-quick-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#163773,#0284C7); opacity: 0; transition: opacity .2s; }
.nd-quick-card:hover { border-color: rgba(2,132,199,.3); box-shadow: var(--nd-shadow-md); transform: translateY(-3px); text-decoration: none !important; }
.nd-quick-card:hover::after { opacity: 1; }
.nd-quick-icon  { font-size: 26px; margin-bottom: 10px; display: block; }
.nd-quick-title { font-size: 14px; font-weight: 700; color: #163773; margin-bottom: 5px; display: block; }
.nd-quick-desc  { font-size: 12.5px; color: #64748b; line-height: 1.5; display: block; }

.nd-section-title { font-size: 13px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin: 40px 0 16px; display: flex; align-items: center; gap: 12px; }
.nd-section-title::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

/* Dark mode */
[data-md-color-scheme="slate"] .md-content  { background: #0f172a; border: 1px solid #1e293b; }
[data-md-color-scheme="slate"] .md-sidebar  { background: #0b1120; }
[data-md-color-scheme="slate"] .md-typeset h1 { color: #f1f5f9; border-color: #1e293b; }
[data-md-color-scheme="slate"] .md-typeset h2 { color: #e2e8f0; border-color: #1e293b; }
[data-md-color-scheme="slate"] .md-typeset code { background: #1e293b; border-color: #334155; color: #93c5fd; }
[data-md-color-scheme="slate"] .nd-stats     { background: #0f172a; border-color: #1e293b; }
[data-md-color-scheme="slate"] .nd-stat      { border-color: #1e293b; }
[data-md-color-scheme="slate"] .nd-quick-card { background: #0f172a; border-color: #1e293b; }
[data-md-color-scheme="slate"] .md-typeset table:not([class]) { border-color: #1e293b; }
[data-md-color-scheme="slate"] .md-typeset table:not([class]) td { border-color: #1e293b; color: #cbd5e1; }

/* Mobile */
@media (max-width: 959px) {
  .nd-hero { padding: 48px 24px 40px; margin: -24px -24px 32px; }
  .nd-hero h1 { font-size: 28px; }
  .nd-stats { flex-direction: column; }
  .nd-stat  { border-right: none; border-bottom: 1px solid #e2e8f0; }
  .md-content { margin: 12px; }
  .md-content__inner { padding: 24px 20px 32px !important; }
}
@media (max-width: 600px) {
  .nd-hero h1 { font-size: 23px; }
  .nd-hero__actions { flex-direction: column; }
  .nd-btn { justify-content: center; }
}
