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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #1a1a1a;
    color: #ececec;
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    margin: 0;
    padding: 0;
    font-size: 16px; /* Prevent Safari auto-zoom on mobile */
}
.mobile-header {
    display: none;
    background: #1f1f1f;
    border-bottom: 1px solid #2d2d2d;
    padding: 14px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.mobile-header h1 {
    font-size: 17px;
    font-weight: 600;
    color: #ececec;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.logo-small {
    height: 22px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    position: relative;
}
.hamburger:hover,
.hamburger:active {
    background: #2d2d2d;
}
.hamburger span {
    width: 24px;
    height: 3px;
    background: #ececec;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: absolute;
    left: 50%;
    margin-left: -12px;
}
.hamburger span:nth-child(1) {
    top: 13px;
}
.hamburger span:nth-child(2) {
    top: 20.5px;
}
.hamburger span:nth-child(3) {
    top: 28px;
}
.hamburger.active span:nth-child(1) {
    top: 20.5px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    top: 20.5px;
    transform: rotate(-45deg);
}
.sidebar {
    width: 280px;
    background: #1f1f1f;
    border-right: 1px solid #2d2d2d;
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}
/* On desktop, sidebar is always visible */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
        position: relative;
        height: auto;
    }
}
/* On mobile, sidebar slides down from top */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 100%;
        top: 0;
        left: 0;
        right: 0;
        transform: translateY(-100%);
        border-right: none;
        border-bottom: 1px solid #2d2d2d;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    .sidebar.active {
        transform: translateY(0);
    }
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
/* Only show overlay on mobile */
@media (max-width: 768px) {
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}
.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid #2d2d2d;
    margin-bottom: 24px;
}
/* On mobile, add padding at top for mobile header */
@media (max-width: 768px) {
    .sidebar-header {
        padding-top: 70px; /* Space for mobile header */
    }
}
.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #ececec;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-header p {
    font-size: 16px; /* Prevent Safari auto-zoom */
    color: #b0b0b0;
}
.sidebar-header a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-header a:hover {
    color: #ececec;
    text-decoration: underline;
}
.nav-section {
    padding: 0 24px;
    margin-bottom: 24px;
}
.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.nav-item {
    display: block;
    padding: 8px 12px;
    color: #ececec;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px; /* Prevent Safari auto-zoom */
    margin-bottom: 4px;
    transition: background 0.2s;
}
.nav-item:hover {
    background: #2d2d2d;
    color: #ffffff;
}
.nav-item.active {
    background: #3a3a3a;
    color: #ffffff;
}
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 48px;
    max-width: 1000px;
    width: 100%;
}
/* On mobile, no left margin */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
}
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent Safari auto-zoom - must be at least 16px */
        padding-top: 0;
        display: block; /* Change from flex to block on mobile */
    }
    .mobile-header {
        display: flex !important;
    }
    .sidebar {
        width: 100%;
        max-width: 100%;
        top: 0;
        left: 0;
        right: 0;
        transform: translateY(-100%);
        border-right: none;
        border-bottom: 1px solid #2d2d2d;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    .sidebar.active {
        transform: translateY(0);
    }
    .main-content {
        margin-left: 0;
        padding: 20px 16px;
        padding-top: 70px; /* Account for fixed mobile header */
        width: 100%;
        max-width: 100%;
    }
    .page-header {
        margin-bottom: 32px;
    }
    .page-header h1 {
        font-size: 24px;
    }
    .page-header p {
        font-size: 16px;
        line-height: 1.5;
    }
    .endpoint {
        margin-bottom: 32px;
    }
    .endpoint-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .endpoint-title {
        font-size: 16px;
        word-break: break-all;
        line-height: 1.4;
    }
    .method {
        font-size: 12px;
        padding: 3px 10px;
        flex-shrink: 0;
    }
    .params-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px 24px;
        padding: 0 16px;
    }
    .params-table {
        min-width: 500px;
        display: table;
    }
    .params-table th,
    .params-table td {
        padding: 10px 8px;
        font-size: 14px;
        vertical-align: top;
    }
    .params-table th:first-child,
    .params-table td:first-child {
        min-width: 140px;
    }
    .params-table th:nth-child(2),
    .params-table td:nth-child(2) {
        min-width: 80px;
    }
    .param-name {
        display: block;
        margin-bottom: 4px;
        word-break: break-word;
    }
    .badge {
        display: inline-block;
        margin-left: 6px;
        margin-top: 4px;
        font-size: 10px;
        padding: 2px 6px;
        white-space: nowrap;
    }
    .param-desc {
        font-size: 14px;
        line-height: 1.5;
        word-break: break-word;
    }
    .code-block {
        padding: 12px;
        font-size: 13px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        word-break: break-word;
    }
    .code-block pre {
        font-size: 13px;
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    h2 {
        font-size: 20px;
        margin: 32px 0 16px;
    }
    .section-title {
        font-size: 16px;
        margin: 24px 0 12px;
    }
    .description {
        font-size: 16px;
        line-height: 1.6;
    }
    .response-block {
        margin-top: 20px;
    }
    .response-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    ul {
        margin-left: 20px;
    }
    ul li {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.6;
    }
}
.page-header {
    margin-bottom: 48px;
}
.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #ececec;
    margin-bottom: 8px;
}
.page-header p {
    font-size: 16px; /* Prevent Safari auto-zoom */
    color: #b0b0b0;
}
.endpoint {
    margin-bottom: 48px;
    scroll-margin-top: 24px;
}
.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}
.method.post { background: #2d5a3d; color: #ffffff; }
.method.get { background: #4a4a4a; color: #ffffff; }
.endpoint-title {
    font-size: 20px;
    font-weight: 600;
    color: #ececec;
    font-family: 'Inter Tight', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}
.description {
    color: #b0b0b0;
    margin-bottom: 24px;
    font-size: 16px; /* Prevent Safari auto-zoom */
}
.section-title {
    font-size: 16px; /* Prevent Safari auto-zoom */
    font-weight: 600;
    color: #ececec;
    margin: 32px 0 16px;
}
.params-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
}
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.params-table th {
    text-align: left;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
    border-bottom: 1px solid #2d2d2d;
}
.params-table td {
    padding: 12px;
    border-bottom: 1px solid #2d2d2d;
    font-size: 16px; /* Prevent Safari auto-zoom */
}
.param-name {
    color: #ececec;
    font-family: 'Inter Tight', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    word-break: break-word;
}
.param-type {
    color: #a0a0a0;
    font-family: 'Inter Tight', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
}
.param-desc {
    color: #b0b0b0;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}
.badge.required {
    background: #5a2a2a;
    color: #ffffff;
}
.badge.optional {
    background: #3a3a3a;
    color: #b0b0b0;
}
.code-block {
    background: #1f1f1f;
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    padding: 16px;
    margin: 24px 0;
    overflow-x: auto;
}
.code-block pre {
    margin: 0;
    font-family: 'Inter Tight', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #ececec;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.code {
    background: #2d2d2d;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Inter Tight', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    color: #a0a0a0;
}
.response-block {
    margin-top: 24px;
}
.response-title {
    font-size: 16px; /* Prevent Safari auto-zoom */
    font-weight: 600;
    color: #b0b0b0;
    margin-bottom: 12px;
}
h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ececec;
    margin: 48px 0 24px;
    padding-top: 24px;
    border-top: 1px solid #2d2d2d;
}
ul {
    margin-left: 24px;
    color: #b0b0b0;
}
ul li {
    margin-bottom: 8px;
    font-size: 16px; /* Prevent Safari auto-zoom */
}
ul li strong {
    color: #ececec;
}

