/* Hide Liebling's original header and footer */
.m-header { display: none !important; }
.m-footer { display: none !important; }

/* ShortAPI Shared Header & Footer — isolated from Liebling CSS */
.shortapi-header { position: relative; z-index: 100; background: #fff !important; border-bottom: 1px solid #E5E7EB; font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; line-height: 1.5; }
.shortapi-header *, .shortapi-header *::before, .shortapi-header *::after { box-sizing: border-box; margin: 0; padding: 0; }
.shortapi-header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; max-width: 100%; }
.shortapi-header-left { display: flex; align-items: center; gap: 4px; }
.shortapi-logo { display: inline-flex !important; align-items: center; gap: 8px; text-decoration: none !important; opacity: 1 !important; }
.shortapi-logo:hover { opacity: 0.8 !important; }
.shortapi-logo svg { flex-shrink: 0; }
.shortapi-logo-text { font-size: 18px !important; font-weight: 700 !important; color: #171717 !important; line-height: 1 !important; }
.shortapi-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: #171717; }
.shortapi-nav { display: flex; align-items: center; gap: 2px; font-weight: 600; }
.shortapi-nav-link { display: inline-flex !important; align-items: center; gap: 4px; height: 32px; padding: 0 12px; font-size: 14px !important; font-weight: 600 !important; color: #525252 !important; text-decoration: none !important; border-radius: 4px; border: none; background: none; cursor: pointer; white-space: nowrap; transition: background-color 0.15s; line-height: 1 !important; opacity: 1 !important; }
.shortapi-nav-link:hover { background: #F5F5F5; opacity: 1 !important; color: #171717 !important; }
.shortapi-dropdown { position: relative; }
.shortapi-dropdown-trigger { font-family: inherit !important; }
.shortapi-dropdown-trigger svg { transition: transform 0.2s; width: 16px; height: 16px; }
.shortapi-dropdown:hover .shortapi-dropdown-trigger svg { transform: rotate(180deg); }
.shortapi-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 440px; padding: 12px; background: #fff; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.12); z-index: 100; }
.shortapi-dropdown:hover .shortapi-dropdown-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.shortapi-dropdown-item { display: flex !important; align-items: center; gap: 10px; padding: 6px 8px; font-size: 14px !important; color: #525252 !important; text-decoration: none !important; border-radius: 6px; transition: background 0.15s; opacity: 1 !important; }
.shortapi-model-icon { width: 20px; height: 20px; padding: 2px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; flex-shrink: 0; object-fit: contain; }
.shortapi-dropdown-item:hover { background: #F5F5F5; color: #171717 !important; opacity: 1 !important; }
.shortapi-dropdown-more { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 4px 8px; margin-top: 4px; font-size: 14px; color: #71717A !important; text-decoration: none !important; opacity: 1 !important; }
.shortapi-dropdown-more:hover { color: #525252 !important; opacity: 1 !important; }
.shortapi-header-right { display: flex; align-items: center; gap: 12px; }
.shortapi-btn-primary { display: inline-flex !important; align-items: center; justify-content: center; height: 32px; padding: 0 16px; font-size: 14px !important; font-weight: 600 !important; color: #fff !important; background: #171717 !important; border: none; border-radius: 8px; cursor: pointer; text-decoration: none !important; transition: background 0.15s; opacity: 1 !important; }
.shortapi-btn-primary:hover { background: #333 !important; opacity: 1 !important; color: #fff !important; }

/* Drawer */
.shortapi-drawer { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 200; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; }
.shortapi-drawer.is-open { display: block; transform: translateX(0); }
.shortapi-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 199; }
.shortapi-drawer-overlay.is-open { display: block; }
.shortapi-drawer-header { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid #E5E7EB; }
.shortapi-drawer-header button { background: none; border: none; cursor: pointer; color: #171717; }
.shortapi-drawer-link { display: flex; align-items: center; justify-content: space-between; padding: 16px; font-size: 16px; font-weight: 500; color: #525252; text-decoration: none; border-bottom: 1px solid #E5E7EB; background: none; border-left: none; border-right: none; border-top: none; width: 100%; cursor: pointer; }
.shortapi-drawer-toggle svg { transition: transform 0.2s; }
.shortapi-drawer-toggle.is-open svg { transform: rotate(180deg); }
.shortapi-drawer-list { display: none; padding: 0 16px 16px; }
.shortapi-drawer-list.is-open { display: block; }
.shortapi-drawer-list a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-size: 14px; color: #525252; text-decoration: none; border-radius: 8px; }
.shortapi-drawer-list a:hover { background: #F5F5F5; opacity: 1; }

/* Footer */
.shortapi-footer { background: #000; color: #fff; }
.shortapi-footer a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s; }
.shortapi-footer a:hover { color: #fff; opacity: 1; }
.shortapi-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.shortapi-footer-top { display: flex; flex-direction: column; gap: 32px; overflow: hidden; padding-top: 48px; }
.shortapi-footer-brand { display: flex; flex-direction: column; gap: 20px; }
.shortapi-footer-logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; color: #fff; }
.shortapi-footer-logo span { color: #fff; }
.shortapi-footer-tagline { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); margin: 0; }
.shortapi-footer-discord { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #242424; border-radius: 6px; color: #fff !important; transition: background 0.2s; }
.shortapi-footer-discord:hover { background: #333; }
.shortapi-footer-mobile { display: flex; flex-direction: column; }
.shortapi-footer-msection { border-bottom: 1px solid rgba(255,255,255,0.16); }
.shortapi-footer-mtoggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font-size: 16px; font-weight: 600; color: #fff; background: none; border: none; cursor: pointer; text-align: left; }
.shortapi-footer-mtoggle svg { color: #fff; transition: transform 0.2s; flex-shrink: 0; }
.shortapi-footer-mtoggle.is-open svg { transform: rotate(180deg); }
.shortapi-footer-mlist { display: none; flex-direction: column; gap: 8px; padding-bottom: 16px; }
.shortapi-footer-mlist.is-open { display: flex; }
.shortapi-footer-mlist a { font-size: 14px; color: rgba(255,255,255,0.8); padding: 2px 0; }
.shortapi-footer-columns { display: none; }
.shortapi-footer-col h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #fff; }
.shortapi-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shortapi-footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.8); }
.shortapi-footer-col ul li a:hover { color: #fff; }
.shortapi-footer-bottom { padding: 48px 0; font-size: 12px; color: rgba(255,255,255,0.8); }
.shortapi-footer-bottom a { font-weight: 500; text-decoration: underline; color: rgba(255,255,255,0.8); }
.shortapi-footer-bottom a:hover { color: #fff; }

@media (min-width: 768px) {
    .shortapi-header-inner { padding: 0 32px; }
    .shortapi-header-left { gap: 32px; }
    .shortapi-nav { gap: 2px; }
    .shortapi-footer-top { flex-direction: row; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.16); padding-bottom: 48px; }
    .shortapi-footer-mobile { display: none; }
    .shortapi-footer-columns { display: flex; gap: 80px; }
}
@media (max-width: 767px) {
    .shortapi-header-inner { padding: 0 16px; }
    .shortapi-nav { display: none; }
    .shortapi-burger { display: flex; }
    .shortapi-logo-text { display: none; }
    .shortapi-footer-columns { display: none; }
}
