/* SpotTheSplat API Docs */

#sts-api-docs {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.sts-docs-header { margin-bottom: 24px; }
.sts-docs-header h2 { font-size: 28px; color: #1e3a5f; margin: 0 0 6px 0; }
.sts-docs-version { font-size: 14px; color: #888; font-weight: normal; }
.sts-docs-header p { color: #555; margin: 0; }
.sts-docs-header code { background: #f0f0f0; padding: 3px 8px; border-radius: 4px; font-size: 14px; }

/* Auth */
.sts-docs-auth {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.sts-docs-auth h3 { margin: 0 0 8px 0; font-size: 16px; color: #1e3a5f; }
.sts-docs-auth p { margin: 0 0 8px 0; font-size: 14px; color: #444; }
.sts-docs-auth pre { margin: 0; font-size: 13px; background: #e9ecef; padding: 8px 12px; border-radius: 4px; }

/* TOC */
.sts-docs-toc { margin-bottom: 24px; }
.sts-docs-toc h3 { font-size: 16px; color: #1e3a5f; margin: 0 0 8px 0; }
.sts-docs-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sts-docs-toc li { display: inline-block; }
.sts-docs-toc a {
    display: inline-block;
    padding: 6px 14px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.sts-docs-toc a:hover { background: #bbdefb; }
.sts-docs-count {
    font-size: 11px;
    background: #1565c0;
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 4px;
}

/* Categories */
.sts-docs-category {
    margin-bottom: 30px;
    border-top: 2px solid #1e3a5f;
    padding-top: 16px;
}
.sts-docs-category h3 { font-size: 20px; color: #1e3a5f; margin: 0 0 6px 0; }
.sts-docs-cat-desc { color: #555; font-size: 14px; margin: 0 0 16px 0; }

/* Endpoints */
.sts-docs-endpoint {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.sts-docs-ep-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.15s;
}
.sts-docs-ep-header:hover { background: #e9ecef; }

.sts-method-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    min-width: 40px;
    text-align: center;
}
.sts-method-get { background: #2e7d32; }
.sts-method-post { background: #1565c0; }

.sts-docs-path { font-size: 13px; color: #333; flex-shrink: 0; }
.sts-docs-summary { font-size: 13px; color: #666; flex-grow: 1; }

.sts-docs-public-badge {
    font-size: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Endpoint Details */
.sts-docs-ep-detail {
    display: none;
    padding: 14px;
    border-top: 1px solid #dee2e6;
    background: white;
}
.sts-docs-ep-detail.sts-open { display: block; }
.sts-docs-ep-detail p { font-size: 14px; color: #333; line-height: 1.5; margin: 0 0 12px 0; }

/* Params Table */
.sts-docs-params {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 2px solid #999;
    border-radius: 6px;
    overflow: hidden;
}
.sts-docs-params th {
    background: #1e3a5f;
    color: white;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
}
.sts-docs-params td {
    padding: 8px 10px;
    border-top: 1px solid #ddd;
    vertical-align: top;
    background: white;
}
.sts-docs-params code { background: #f0f0f0; padding: 1px 4px; border-radius: 3px; }

/* Breakfast choices */
.sts-docs-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 16px;
}
.sts-docs-choice {
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}
.sts-docs-choice code { background: #1e3a5f; color: white; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.sts-choice-label { font-weight: 600; color: #333; }
.sts-choice-short { color: #888; font-size: 12px; }

/* Responsive */
@media (max-width: 640px) {
    .sts-docs-ep-header { flex-wrap: wrap; }
    .sts-docs-summary { display: none; }
}
