/* ==========================================================================
   MCP PAGE STYLES
   Extracted from mcp.html inline <style> block.
   Requires: dark-theme.css (loaded before this file)
   ========================================================================== */

/* Page-specific variable overrides */
.dark-page {
    --mcp-accent: #CA65A7;
    --mcp-accent-light: #F2B4D6;
    --mcp-teal: #4ECDC4;
    --card-border: rgba(202, 101, 167, 0.18);
}

.mcp-hero {
    position: relative;
    padding: 140px 20px 70px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    overflow: hidden;
}

.mcp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(202, 101, 167, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.mcp-hero h1 {
    position: relative;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.mcp-hero h1 i {
    color: var(--mcp-accent-light);
    margin-right: 12px;
}

.mcp-hero p.tagline {
    position: relative;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.55;
}

.mcp-hero .cta-row {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.mcp-hero .cta-row a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
}

.mcp-hero .cta-primary {
    background: linear-gradient(135deg, #CA65A7 0%, #a8548b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(202, 101, 167, 0.35);
}

.mcp-hero .cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(202, 101, 167, 0.5); }

.mcp-hero .cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.mcp-hero .cta-secondary:hover { background: rgba(255, 255, 255, 0.14); }

.mcp-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.mcp-card {
    background: linear-gradient(180deg, rgba(25, 45, 75, 0.95) 0%, rgba(18, 35, 60, 0.98) 100%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mcp-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin: 44px 0 18px;
    padding-top: 32px;
    border-top: 1px solid rgba(202, 101, 167, 0.12);
}

.mcp-card h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mcp-card h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

.mcp-card h3 .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(202, 101, 167, 0.18);
    color: var(--mcp-accent-light);
    border: 1px solid rgba(202, 101, 167, 0.35);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 10px;
}

.mcp-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.1em;
}

.mcp-card ul {
    margin: 16px 0 20px;
    padding-left: 0;
    list-style: none;
}

.mcp-card li {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 24px;
    font-size: 1rem;
}

.mcp-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, var(--mcp-accent) 0%, var(--mcp-teal) 100%);
    border-radius: 50%;
}

.mcp-card strong { color: #fff; font-weight: 600; }

.mcp-card a {
    color: var(--mcp-accent-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 180, 214, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mcp-card a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Override the global `code { color: #666667; background: light; font-size: 75% !important }` rule */
.mcp-card code {
    background: rgba(0, 0, 0, 0.35) !important;
    background-color: rgba(0, 0, 0, 0.35) !important;
    color: #f0f0f0 !important;
    padding: 2px 7px !important;
    border-radius: 5px;
    margin: 0;
    font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
    font-size: 0.88em !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mcp-card pre {
    background: rgba(0, 0, 0, 0.45);
    color: #e8e8e8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 20px;
    overflow-x: auto;
    font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 14px 0 22px;
}

/* Override the global `pre code { background: #fafafa !important }` rule */
.mcp-card pre code {
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    padding: 0 !important;
    color: #e8e8e8 !important;
    font-size: inherit;
    display: block;
}

.mcp-card pre .c { color: #7ec699; }
.mcp-card pre .k { color: #e6c07b; }

.tools-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 0.95rem;
    background: transparent;
}

/* Override global `table tbody tr:nth-child(2n+1) { background: #ececec }` */
.tools-table tbody tr,
.tools-table tbody tr:nth-child(2n+1),
.tools-table tbody tr:first-child,
.tools-table tbody tr:last-child {
    background: transparent !important;
    background-color: transparent !important;
    border: none;
}

.tools-table th,
.tools-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.82);
    vertical-align: top;
    background: transparent;
}

.tools-table th {
    color: #fff;
    font-weight: 600;
    background: rgba(202, 101, 167, 0.1) !important;
    border-bottom: 1px solid rgba(202, 101, 167, 0.3) !important;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tools-table td code {
    font-size: 0.85em !important;
    padding: 1px 6px !important;
}

.callout {
    background: rgba(78, 205, 196, 0.08);
    border-left: 3px solid var(--mcp-teal);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 22px 0;
}

.callout p { margin: 0; color: rgba(255, 255, 255, 0.88); }

.callout.warning {
    background: rgba(202, 101, 167, 0.08);
    border-left-color: var(--mcp-accent);
}

.mcp-toc {
    margin: -8px 0 34px;
    padding: 20px 24px 22px;
    background: linear-gradient(180deg, rgba(202, 101, 167, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(202, 101, 167, 0.18);
    border-radius: 16px;
}
.mcp-toc strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mcp-accent-light);
    margin-bottom: 14px;
    font-weight: 700;
}
.mcp-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
.mcp-toc li { padding: 0; margin: 0; }
.mcp-toc li::before { display: none; }
.mcp-toc a {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.15s ease;
}
.mcp-toc a:hover,
.mcp-toc a:focus-visible {
    color: #fff;
    background: rgba(202, 101, 167, 0.14);
    border-color: rgba(202, 101, 167, 0.45);
    transform: translateY(-1px);
    outline: none;
}

.mcp-card details {
    margin: 14px 0 22px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 18px;
}
.mcp-card details[open] { padding-bottom: 18px; }
.mcp-card summary {
    cursor: pointer;
    color: var(--mcp-accent-light);
    font-weight: 600;
    font-size: 0.92rem;
    list-style: none;
}
.mcp-card summary::-webkit-details-marker { display: none; }
.mcp-card summary::before {
    content: '\25B8';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.15s ease;
}
.mcp-card details[open] summary::before { transform: rotate(90deg); }

.eval-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0 8px;
}
.eval-stat {
    flex: 1 1 140px;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.25);
    border-radius: 12px;
    padding: 14px 18px;
}
.eval-stat .num {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--mcp-teal);
    line-height: 1.1;
}
.eval-stat .lbl {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.last-updated {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: normal;
    letter-spacing: 0.02em;
}

.last-updated span + span::before {
    content: '\00B7';
    margin-right: 14px;
    color: rgba(255, 255, 255, 0.25);
}

.last-updated strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

@media (max-width: 600px) {
    .mcp-card { padding: 24px 16px; border-radius: 18px; }
}

@media (max-width: 768px) {
    .mcp-hero { padding: 120px 20px 50px; }
    .mcp-card { padding: 30px 22px; border-radius: 20px; }
    .mcp-card h2 { font-size: 1.18rem; }
    .tools-table { font-size: 0.88rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tools-table th, .tools-table td { padding: 10px 8px; }
    .mcp-toc ul { gap: 8px; }
    .mcp-toc a { padding: 5px 11px; font-size: 0.82rem; }
    .last-updated { font-size: 0.74rem; gap: 6px 10px; }
    .last-updated span + span::before { margin-right: 10px; }
    .eval-stat-row { gap: 10px; }
    .eval-stat { flex: 1 1 100%; padding: 12px 16px; }
    .eval-stat .num { font-size: 1.4rem; }
    .eval-stat .lbl { font-size: 0.72rem; }
}
