/* Import base docs CSS */
@import url('../docs/docs.css');

/* API-specific enhancements */

/* Code blocks */
pre {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #334155;
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

pre code {
    color: #e2e8f0 !important;
    background: none !important;
    padding: 0 !important;
    display: block;
    white-space: pre;
    word-wrap: normal;
}

/* Inline code */
:not(pre) > code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: 500;
}

/* Endpoint cards */
.endpoint-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.method-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.method-get {
    background: #dbeafe;
    color: #1e40af;
}

.method-post {
    background: #dcfce7;
    color: #166534;
}

.method-put {
    background: #fef3c7;
    color: #92400e;
}

.method-delete {
    background: #fee2e2;
    color: #991b1b;
}

.endpoint-path {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

.endpoint-description {
    color: #64748b;
    margin-bottom: 1rem;
}

/* Section headers */
.docs-content h2 {
    color: #0f172a;
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.docs-content h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Info boxes */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.success-box {
    background: #dcfce7;
    border-left: 4px solid #10b981;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Response codes */
.response-code {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.875rem;
    font-weight: 600;
}

.response-200 {
    background: #dcfce7;
    color: #166534;
}

.response-400 {
    background: #fef3c7;
    color: #92400e;
}

.response-403 {
    background: #fee2e2;
    color: #991b1b;
}

.response-500 {
    background: #fee2e2;
    color: #991b1b;
}

/* Table styling for parameters */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

thead {
    background: #f8fafc;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

tbody tr:hover {
    background: #f8fafc;
}

/* Links in API docs */
.docs-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.docs-content a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Better list styling */
.docs-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.docs-content li {
    margin: 0.5rem 0;
    line-height: 1.7;
}

/* Quick navigation */
.quick-nav {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.quick-nav h3 {
    margin-top: 0;
    font-size: 1.125rem;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav li {
    margin: 0.5rem 0;
}

.quick-nav a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.quick-nav a:hover {
    color: #2563eb;
}

/* API Navigation - Menu sections and submenu items */
.docs-sidebar li.menu-section {
    font-weight: 600;
    color: #1e293b;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.docs-sidebar li.submenu {
    padding-left: 1rem;
}

.docs-sidebar li.submenu a {
    font-size: 0.9375rem;
    color: #64748b;
}

.docs-sidebar li.submenu a:hover {
    color: #2563eb;
}

/* HTTP Method badges */
.http-method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.http-method.get {
    background: #dbeafe;
    color: #1e40af;
}

.http-method.post {
    background: #dcfce7;
    color: #166534;
}

.http-method.put {
    background: #fef3c7;
    color: #92400e;
}

.http-method.patch {
    background: #fef3c7;
    color: #92400e;
}

.http-method.delete {
    background: #fee2e2;
    color: #991b1b;
}

/* Type badges */
.type-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-weight: 500;
}

/* Required badge */
.required-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Endpoint sections */
.endpoint-section {
    margin: 3rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.endpoint-section:last-of-type {
    border-bottom: none;
}

/* Schema sections */
.schema-section {
    margin-top: 3rem;
}

.schema-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.schema-card h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Info sections */
.info-section {
    margin: 2rem 0;
}

.info-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
}

.info-card h3 {
    margin-top: 0;
    color: #1e40af;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-card p {
    margin: 0;
    color: #1e40af;
    line-height: 1.6;
}

/* Params and response tables */
.params-table,
.response-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9375rem;
}

.params-table thead,
.response-table thead {
    background: #f8fafc;
}

.params-table th,
.response-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.params-table td,
.response-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.params-table tbody tr:hover,
.response-table tbody tr:hover {
    background: #f8fafc;
}

/* Subtitle styling */
.subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}
