/**
 * LolaCore MCP Settings — Scoped Styles
 *
 * All rules are scoped under .lc-mcp-settings-wrap to avoid
 * collisions with the main LolaCore Settings page.
 * Inherits design tokens from lolacore-admin.css (:root vars).
 */

/* ===== Page Wrapper ===== */
.lc-mcp-settings-wrap {
    font-family: var(--lc-font-primary);
    color: var(--lc-text-primary);
    max-width: 960px;
}

/* ===== Header ===== */
.lc-mcp-header {
    margin-bottom: 24px;
}

.lc-mcp-header__title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.lc-mcp-header__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lc-mcp-header__title {
    margin: 0;
    font-family: var(--lc-font-primary);
    font-size: 1.65em;
    font-weight: 800;
    color: var(--lc-text-primary);
    letter-spacing: -0.02em;
}

.lc-mcp-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--lc-radius-pill);
    font-family: var(--lc-font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lc-mcp-pill--plum {
    background: var(--lc-plum-wash);
    color: var(--lc-plum);
}

.lc-mcp-header__subtitle {
    margin: 6px 0 0;
    font-size: 0.95em;
    color: var(--lc-text-secondary);
    line-height: 1.5;
}

/* ===== Tab Navigation ===== */
.lc-mcp-nav-tabs {
    border-bottom: 2px solid var(--lc-border);
    margin-bottom: 28px;
    padding-bottom: 0;
}

.lc-mcp-nav-tabs .nav-tab {
    font-family: var(--lc-font-primary);
    font-weight: 600;
    font-size: 0.95em;
    color: var(--lc-text-secondary);
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.lc-mcp-nav-tabs .nav-tab:hover {
    color: var(--lc-plum);
    background: transparent;
}

.lc-mcp-nav-tabs .nav-tab-active,
.lc-mcp-nav-tabs .nav-tab-active:focus,
.lc-mcp-nav-tabs .nav-tab-active:hover {
    color: var(--lc-plum);
    border-bottom-color: var(--lc-plum);
    background: transparent;
    box-shadow: none;
}

/* ===== Eyebrow Label ===== */
.lc-mcp-eyebrow {
    display: inline-block;
    font-family: var(--lc-font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--lc-plum);
    margin-bottom: 12px;
}

/* ===== Connect Section (Status Tab) ===== */
.lc-mcp-connect-section {
    margin-top: 8px;
}

/* ===== Config Tabs (IDE Selector) ===== */
.lc-mcp-config-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--lc-border);
    margin-bottom: 20px;
}

.lc-mcp-config-tab-btn {
    font-family: var(--lc-font-primary);
    font-weight: 600;
    font-size: 0.88em;
    color: var(--lc-text-secondary);
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.lc-mcp-config-tab-btn:hover {
    color: var(--lc-plum);
}

.lc-mcp-config-tab-btn.is-active {
    color: var(--lc-plum);
    border-bottom-color: var(--lc-plum);
}

/* ===== Config Panes ===== */
.lc-mcp-config-pane {
    display: none;
}

.lc-mcp-config-pane.is-active {
    display: block;
    animation: lc-mcp-fade-in 0.2s ease-out;
}

@keyframes lc-mcp-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Config Card (Code Block) ===== */
.lc-mcp-config-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lc-mcp-config-card__filename {
    font-family: var(--lc-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--lc-text-secondary);
    letter-spacing: 0.02em;
}

.lc-mcp-config-card__code {
    background: #1E1E2E;
    color: #CDD6F4;
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    font-family: var(--lc-font-mono);
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
}

.lc-mcp-config-card__code code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    padding: 0;
    white-space: pre;
}

/* ===== Ghost Button (used in config cards) ===== */
.lc-mcp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: var(--lc-radius-btn);
    font-weight: 600;
    font-size: 0.85em;
    font-family: var(--lc-font-primary);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.lc-mcp-button--ghost {
    background: transparent;
    color: var(--lc-text-secondary);
    border: 1px solid var(--lc-border);
}

.lc-mcp-button--ghost:hover {
    background: var(--lc-paper);
    border-color: rgba(36,24,40,0.25);
    color: var(--lc-text-primary);
}

/* ===== Configs Container ===== */
.lc-mcp-configs-container {
    margin-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 782px) {
    .lc-mcp-header__title {
        font-size: 1.3em;
    }

    .lc-mcp-header__subtitle {
        font-size: 0.88em;
    }

    .lc-mcp-config-tabs {
        flex-wrap: wrap;
    }

    .lc-mcp-config-card__code {
        padding: 14px 16px;
        font-size: 12px;
    }

    .lc-mcp-endpoint-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .lc-mcp-endpoint-row code {
        width: 100% !important;
    }
}
