/* Simple Modern API Docs - Inspired by Stripe */

.api-reference {
    background: #0a0a0f;
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
    color: #e4e4e7;
}

.api-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #27272a;
}

.api-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.api-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #27272a;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #3f3f46;
    border-color: #52525b;
}

.btn-download i, .btn-download svg {
    width: 16px;
    height: 16px;
}

.api-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.api-meta-item {
    font-size: 14px;
    color: #a1a1aa;
}

.api-meta-item strong {
    color: #e4e4e7;
    margin-right: 8px;
}

.api-meta-item code {
    background: #18181b;
    color: #22d3ee;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', monospace;
    font-size: 13px;
}

/* Endpoint Card */
.api-endpoint-card {
    background: #18181b;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.api-endpoint-card .header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.api-endpoint-card .header:hover {
    background: #1f1f23;
}

.method {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method.post {
    background: #065f46;
    color: #34d399;
}

.method.get {
    background: #1e3a8a;
    color: #60a5fa;
}

.method.event {
    background: #581c87;
    color: #c084fc;
}

.path {
    font-family: 'SF Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.desc {
    color: #71717a;
    font-size: 14px;
    margin-left: auto;
}

/* Code Block */
.api-endpoint-card .body {
    padding: 20px;
    border-top: 1px solid #27272a;
    display: none;
}

.api-endpoint-card.open .body {
    display: block;
}

.code-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.code-box {
    background: #09090b;
    border-radius: 8px;
    overflow: hidden;
}

.code-box.full {
    grid-column: 1 / -1;
}

.code-box-header {
    padding: 10px 16px;
    background: #0f0f12;
    border-bottom: 1px solid #27272a;
    font-size: 12px;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-box-header .status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #14532d;
    color: #4ade80;
}

.code-box pre {
    margin: 0;
    padding: 16px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e4e4e7;
    overflow-x: auto;
}

/* Webhook Section */
.api-webhook {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #27272a;
}

.api-webhook h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 8px;
}

.api-webhook > p {
    color: #71717a;
    font-size: 14px;
    margin: 0 0 20px;
}

.webhook-tip {
    background: #14532d;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 14px;
    color: #86efac;
}

.webhook-tip code {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .api-reference {
        padding: 20px;
    }

    .code-grid {
        grid-template-columns: 1fr;
    }

    .api-meta {
        flex-direction: column;
        gap: 12px;
    }
}
