/* HitHorizons US API Documentation Styles */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5b4cdb;
    --secondary-color: #a29bfe;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #d63031;
    --code-bg: #2d3436;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

/* Documentation Container */
.docs-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.docs-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-header .version {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.nav-menu li a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-menu li a:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.nav-menu li a.active {
    background: var(--bg-white);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

.nav-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    border-bottom: none !important;
}

.nav-menu .nav-section + li {
    border-top: none;
}

.nav-menu li a .method-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 3px;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.method-badge.get {
    background: #d4edda;
    color: #155724;
}

.method-badge.post {
    background: #cce5ff;
    color: #004085;
}

.method-badge.put {
    background: #fff3cd;
    color: #856404;
}

.method-badge.delete {
    background: #f8d7da;
    color: #721c24;
}

.swagger-link {
    display: block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white !important;
    text-align: center;
    font-weight: 500;
    margin: 1rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.swagger-link:hover {
    background: var(--primary-dark);
}

/* Main Content Area */
.docs-content {
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    flex: 1;
    max-width: 900px;
}

.docs-content h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

.docs-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

.docs-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-color);
}

.docs-content h4 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-color);
}

.docs-content p {
    margin: 0 0 1rem;
    color: var(--text-color);
}

.docs-content .lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Code Blocks */
.docs-content pre {
    background: var(--code-bg);
    color: #dfe6e9;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.docs-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
    font-size: 0.875em;
}

.docs-content p code,
.docs-content li code {
    background: var(--bg-light);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    color: var(--primary-dark);
}

/* Tables */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.docs-content th,
.docs-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.docs-content th {
    background: var(--bg-light);
    font-weight: 600;
}

.docs-content tr:hover {
    background: var(--bg-light);
}

/* Lists */
.docs-content ul,
.docs-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

/* Endpoint Card */
.endpoint-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.endpoint-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.endpoint-header .method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 1rem;
    text-transform: uppercase;
}

.endpoint-header .method.get {
    background: var(--success-color);
    color: white;
}

.endpoint-header .method.post {
    background: #0984e3;
    color: white;
}

.endpoint-header .path {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.9rem;
    color: var(--text-color);
}

.endpoint-body {
    padding: 1.25rem;
}

.endpoint-description {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Response Codes */
.response-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.response-code {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.response-code.success {
    background: #d4edda;
    color: #155724;
}

.response-code.error {
    background: #f8d7da;
    color: #721c24;
}

.response-code.warning {
    background: #fff3cd;
    color: #856404;
}

/* Try in Swagger Button */
.btn-swagger {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-top: 1rem;
}

.btn-swagger:hover {
    background: var(--primary-dark);
    color: white;
}

/* Info Boxes */
.info-box {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.info-box.note {
    background: #e8f4fd;
    border-color: #0984e3;
}

.info-box.warning {
    background: #ffeaa7;
    border-color: #fdcb6e;
}

.info-box.tip {
    background: #d4edda;
    border-color: #00b894;
}

.info-box p {
    margin: 0;
}

.info-box strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Parameters Table */
.params-table {
    margin: 1rem 0;
}

.params-table th:first-child,
.params-table td:first-child {
    width: 25%;
    font-weight: 500;
}

.params-table .type {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 0.85em;
}

.params-table .required {
    color: var(--error-color);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-sidebar {
        width: 240px;
    }

    .docs-content {
        margin-left: 240px;
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .docs-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .docs-content {
        margin-left: 0;
        padding: 1rem;
    }

    .docs-container {
        flex-direction: column;
    }
}
