/* Metals-API MCP page — brand accents match about/symbol (#4f46e5) */

.mcp-page {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: #111827;
}

.mcp-hero {
    padding: 3rem 0 2.5rem;
}

.mcp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.mcp-badge-dot {
    position: relative;
    display: flex;
    width: 0.5rem;
    height: 0.5rem;
}

.mcp-badge-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #22c55e;
    opacity: 0.55;
    animation: mcp-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.mcp-badge-dot::after {
    content: '';
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #22c55e;
}

@keyframes mcp-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.mcp-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111827;
    margin: 1.25rem 0 1rem;
}

.mcp-hero-title span {
    color: #4f46e5;
}

.mcp-hero-lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #4b5563;
    max-width: 36rem;
}

.mcp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.mcp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: #4f46e5;
    border: 1px solid #4f46e5;
    color: #fff !important;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mcp-btn-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff !important;
    transform: translateY(-1px);
}

.mcp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: #fff;
    border: 1px solid rgba(79, 70, 229, 0.35);
    color: #4f46e5 !important;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mcp-btn-outline:hover {
    background: rgba(79, 70, 229, 0.06);
    border-color: #4f46e5;
    color: #4338ca !important;
}

.mcp-code-window {
    overflow: hidden;
    border-radius: 1rem;
    background: #111827;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.mcp-code-window__chrome {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #171717;
    padding: 0.75rem 1rem;
}

.mcp-code-window__chrome span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
}

.mcp-demo-panel {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #e5e7eb;
    padding: 1.25rem;
}

.mcp-demo-label {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #374151;
    font-size: 0.75rem;
    color: #9ca3af;
}

.mcp-demo-quote {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-style: italic;
    color: #e5e7eb;
}

.mcp-demo-key { color: #93c5fd; }
.mcp-demo-value { color: #86efac; }
.mcp-demo-brace { color: #fbbf24; }

.mcp-demo-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #374151;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #9ca3af;
}

.mcp-demo-footer strong {
    color: #e5e7eb;
}

.mcp-section {
    padding-top: 3.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    scroll-margin-top: 6rem;
}

.mcp-section:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.mcp-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 0.75rem;
}

.mcp-section-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 0;
}

.mcp-sidebar {
    position: sticky;
    top: 6rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #fff;
    padding: 1rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.mcp-sidebar__label {
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f46e5;
}

.mcp-sidebar__link {
    display: block;
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mcp-sidebar__link:hover {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5 !important;
}

.mcp-feature-card {
    height: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcp-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.mcp-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0.85rem 0 0.5rem;
}

.mcp-feature-card p {
    font-size: 0.925rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.mcp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-size: 1.1rem;
}

.mcp-tool-card {
    height: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    padding: 1.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcp-tool-card:hover {
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
}

.mcp-tool-name {
    display: inline-block;
    border-radius: 0.375rem;
    background: rgba(79, 70, 229, 0.08);
    padding: 0.2rem 0.55rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4f46e5;
}

.mcp-tool-category {
    margin-left: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}

.mcp-tool-card p {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
}

.mcp-info-card {
    border-radius: 1rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: 1.5rem;
}

.mcp-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #312e81;
    margin: 0;
}

.mcp-endpoint-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #374151;
    background: #111827;
    padding: 0.875rem 1rem;
}

.mcp-endpoint-input {
    flex: 1;
    min-width: 0;
    min-height: 1.5rem;
    resize: none;
    overflow: hidden;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #e5e7eb !important;
    outline: none;
    word-break: break-all;
    width: 100%;
}

.mcp-copy-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    margin-top: 0.125rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: #4f46e5;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mcp-copy-btn:hover {
    background: #4338ca;
    border-color: #fff;
    color: #fff;
}

.mcp-copy-btn.is-copied {
    background: #16a34a;
    border-color: #16a34a;
}

.mcp-code-block {
    overflow: hidden;
    border-radius: 0.75rem;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.mcp-code-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #374151;
    background: #0f172a;
    padding: 0.75rem 1rem;
}

.mcp-code-block__title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9ca3af;
}

.mcp-code-block__body {
    overflow-x: auto;
    padding: 1.25rem;
}

.mcp-code-block__body pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #e5e7eb;
    white-space: pre-wrap;
    word-break: break-word;
}

.mcp-alert {
    border-radius: 0.75rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: #eef2ff;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

.mcp-alert code,
.mcp-page code {
    border-radius: 0.25rem;
    background: rgba(79, 70, 229, 0.1);
    padding: 0.05rem 0.35rem;
    font-size: 0.85em;
    color: #4338ca;
}

.mcp-page a.mcp-inline-link {
    font-weight: 600;
    color: #4f46e5 !important;
    text-decoration: none !important;
}

.mcp-page a.mcp-inline-link:hover {
    color: #4338ca !important;
    text-decoration: underline !important;
}

.mcp-faq-item {
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mcp-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    background: transparent;
    padding: 1rem 1.15rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.mcp-faq-trigger svg {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    color: #4f46e5;
    transition: transform 0.2s ease;
}

.mcp-faq-item.is-open .mcp-faq-trigger svg {
    transform: rotate(180deg);
}

.mcp-faq-panel {
    display: none;
    padding: 0 1.15rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b5563;
}

.mcp-faq-item.is-open .mcp-faq-panel {
    display: block;
}

.mcp-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
}

.mcp-step p {
    color: #4b5563;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .mcp-hero-title {
        font-size: 2.1rem;
    }

    .mcp-hero-actions .mcp-btn-primary,
    .mcp-hero-actions .mcp-btn-outline {
        width: 100%;
    }

    .mcp-hero-lead {
        max-width: none;
    }
}
